|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Video Conversion Problems
I've recently started having issues with video conversion. Started out with an automatic video conversion I've have set up for our daughter's show. Just says it failed. I've looked in the log and there's no apparent reason why. Attached is the log. It's a Sofia the First episode. The recording started at 8:00AM this morning and finished at 8:30AM. Conversion was initiated shortly thereafter but no error seems to appear in the log. "Ministry" doesn't report anything else. I guess Jesus isn't building any more hot rods?
On a lighter note I'm having flashbacks of Dune when I see "Seeker awoken" in the log.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#2
|
||||
|
||||
I don't see any info on why it failed either...try setting: media_server/transcode_debug=true and then it'll log a lot more about what's happening with the transcoder.
__________________
Jeffrey Kardatzke Founder of SageTV |
#3
|
||||
|
||||
Also set:
xcode_cmdline_debug=TRUE so it'll print out the exact command line it's using to execute FFMPEG and then you can also try to replicate the failure.
__________________
Jeffrey Kardatzke Founder of SageTV |
#4
|
|||
|
|||
Ok, here are the results. Here is the output when I run the command manually:
Code:
C:\Users\jbean>"C:\Program Files (x86)\SageTV\SageTV\SageTVTranscoder.exe", -v, 3, -y, -threads, 2, -sn, -vsync, 1, -async, 100, -stdinctrl, -i, F:\video3\SofiatheFirst-PrincessAdventureClub-21731469-0.ts, -threads, 5, -f, matroska, -vcodec, libx264, -b, 1500000, -s, 720x480, -r, 29.97, -acodec, AC-3, /, 0X332D6361, -ac, 6, -ar, 48000, -ab, 384000, -aspect, 16:9, -coder, 1, -flags, +loop, -cmp, +chroma, -partitions, +parti8x8+parti4x4-partp8x8-partb8x8, -me_method, dia, -subq, 1, -me_range, 16, -g, 250, -keyint_min, 25, -sc_threshold, 40, -i_qfactor, 0.71, -b_strategy, 1, -qcomp, 0.6, -qmin, 10, -qmax, 51, -qdiff, 4, -bf, 3, -refs, 1, -directpred, 1, -trellis, 0, -flags2, +bpyramid-mixed_refs+wpred+dct8x8+fastpskip-mbtree, -wpredp, 0, -rc_lookahead, 0, -priority, idle, F:\video3\SofiatheFirst-PrincessAdventureClub-21731469-0.tmp FFmpeg version SVN-r93, Copyright (c) 2000-2010 the FFmpeg developers built on Jan 28 2011 10:48:22 with gcc 4.2.4 configuration: --target-os=mingw32 --prefix=/cygdrive/c/dev/src/buildwin/stage --disable-ffplay --disable-ffserver --enable-gpl --enable-nonfree --disable-encoder=aac --disable-demuxer=ea --disable-devices --enable-libxvid --enable-libx264 --enable-libfaac --enable-libfaad --enable-static --disable-shared --enable-pthreads --disable-debug --enable-memalign-hack --arch=x86 --extra-cflags='-fno-common -march=i686 -mtune=i686 -DWIN32 -I/cygdrive/c/dev/src/buildwin/stage/include' --extra-ldflags=-L/cygdrive/c/dev/src/buildwin/stage/lib --enable-cross-compile --cross-prefix=i686-pc-mingw32- libavutil 50.22. 0 / 50.22. 0 libavcodec 52.83. 0 / 52.83. 0 libavformat 52.73. 0 / 52.73. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.22. 0 / 1.22. 0 libswscale 0.11. 0 / 0.11. 0 Unable to find a suitable output format for ','
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#5
|
|||
|
|||
Ok, if I take out all the comas here is the output:
Code:
C:\Users\jbean>"C:\Program Files (x86)\SageTV\SageTV\SageTVTranscoder.exe" -v 3 -y -threads 2 -sn -vsync 1 -async 100 -stdinctrl -i F:\video3\SofiatheFirst-PrincessAdventureClub-21731469-0.ts -threads 5 -f matroska -vcodec libx264 -b 1500000 -s 720x480 -r 29.97 -acodec AC-3 / 0X332D6361 -ac 6 -ar 48000 -ab 384000 -aspect 16:9 -coder 1 -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4-partp8x8-partb8x8 -me_method dia -subq 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -directpred 1 -trellis 0 -flags2 +bpyramid-mixed_refs+wpred+dct8x8+fastpskip-mbtree -wpredp 0 -rc_lookahead 0 -priority idle F:\video3\SofiatheFirst-PrincessAdventureClub-21731469-0.tmp FFmpeg version SVN-r93, Copyright (c) 2000-2010 the FFmpeg developers built on Jan 28 2011 10:48:22 with gcc 4.2.4 configuration: --target-os=mingw32 --prefix=/cygdrive/c/dev/src/buildwin/stage --disable-ffplay --disable-ffserver --enable-gpl --enable-nonfree --disable-encoder=aac --disable-demuxer=ea --disable-devices --enable-libxvid --enable-libx264 --enable-libfaac --enable-libfaad --enable-static --disable-shared --enable-pthreads --disable-debug --enable-memalign-hack --arch=x86 --extra-cflags='-fno-common -march=i686 -mtune=i686 -DWIN32 -I/cygdrive/c/dev/src/buildwin/stage/include' --extra-ldflags=-L/cygdrive/c/dev/src/buildwin/stage/lib --enable-cross-compile --cross-prefix=i686-pc-mingw32- libavutil 50.22. 0 / 50.22. 0 libavcodec 52.83. 0 / 52.83. 0 libavformat 52.73. 0 / 52.73. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.22. 0 / 1.22. 0 libswscale 0.11. 0 / 0.11. 0 [NULL @ 0x19f7270] Probed with size=2048 and score=100 [mpegts @ 0x19f7270] stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV [mpegts @ 0x19f7270] stream=1 stream_type=81 pid=1100 prog_reg_desc=HDMV [h264 @ 0x19e8960] no picture [mpegts @ 0x19f7270] Probe buffer size limit 5000000 reached Input #0, mpegts, from 'F:\video3\SofiatheFirst-PrincessAdventureClub-21731469-0.ts': Duration: 00:29:47.83, start: 5510.798600, bitrate: 12742 kb/s Program 1 Stream #0.0[0x1011], 206, 1/90000: Video: h264, yuv420p, 1280x720, 1001/60000, AR: 16:9, progressive, 59.96 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0.1[0x1100], 108, 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s Unknown encoder 'AC-3'
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#6
|
||||
|
||||
OK, thanks. Fixed and uploaded to GitHub.
We had code in there which would substitute FFMPEG names of codecs for SageTV names of codecs....and then when we invoked the transcoder, it would use that map in the reverse direction...and many of those should never go back in the reverse direction. (this was from a change we made on Fiber that added more formats to this list)
__________________
Jeffrey Kardatzke Founder of SageTV |
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
Yes, that will fix it. Just updated my copy of the source and rebuilt. Have a conversion going right now.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#9
|
||||
|
||||
Funny - I was just trying to do the first conversion since upgrading yesterday, and noticed it was failing instantly. Didn't get a change to look into it.. glad now I don't have to.. :-)
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#10
|
|||
|
|||
Would you mind posting your updated sagetv.jar? Guess I'm going to have to set up my own build environment at some point so I don't have to keep asking.
|
#11
|
|||
|
|||
Check the link in my sig.
|
#12
|
|||
|
|||
Did this fix make it back into the repo? I'm using the latest .deb from stuckless (http://forums.sagetv.com/forums/showthread.php?t=62422), and I'm seeing the exact same symptoms where the conversion fails instantly. I haven't turned on debugging yet to verify its the same, but that is next.
|
#13
|
|||
|
|||
Quote:
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#14
|
|||
|
|||
I'm running sage 9.0.4.220 (on Ubuntu Desktop 14.04.3
Quote:
It may be a different problem with the same symptoms. I turned on the two debugging options previously noted and then... In my original file I saw this Quote:
Quote:
Last edited by SageWizdom; 02-06-2016 at 12:39 PM. |
#15
|
|||
|
|||
Better Log. I'm keep debugging, but in case someone takes a look.
Quote:
|
#16
|
||||
|
||||
It looks like it is having issue with two command line options:
-wpredp -rc_lookahead full command line. Quote:
Quote:
Quote:
Quote:
Last edited by SageWizdom; 02-06-2016 at 02:58 PM. |
#17
|
|||
|
|||
Yeah, this looks like a different problem specific to Linux. My main SageTV server is Windows. Conversion works fine on Windows. I attempted to run a conversion on my 32-bit Linux test system and it failed.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#18
|
|||
|
|||
I looked at the argument handling in cmdutils.c and it seems there's code in there that always causes unknown arguments to be "renamed" to '-default' and to expect arguments. That's why it complains about no arguments until you add them, and then it complains about being unrecognized. Not sure why it's that way but at any rate, 'wpredp' is not an option in the current ffmpeg code in third_party/ffmpeg. I see where Ministry.java and FFMPEGTranscoder.java use this argument. Is this ffmpeg source code not the correct version?
|
#19
|
|||
|
|||
I was thinking of writing a shim to sit in front of ffmpeg and filter out the two offending commands. I guess its time to also submit a bug. Thanks for helping track down the issue.
|
#20
|
||||
|
||||
Yeah...this is interesting. Apparently the FFMPEG we have in GitHub isn't the exact same one we had in the final V7 release. What I'm pretty sure happened is that we updated it further and we're using the updated version for the other things that use FFMPEG (like components in the extender, and also the Windows Demux DirectShow filter) but didn't end up recompiling the FFMPEG EXE as well (probably because the changes didn't fix any bugs there).
So this is why its out of sync regarding these options. I know I didn't come up with all those options myself...they were likely from some other examples I found online for x264 encoding options. Feel free to submit a code change that removes their usage...and ideally, also figure out if they need to be replaced by something else or not (but they'll likely be fine at their defaults).
__________________
Jeffrey Kardatzke Founder of SageTV |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Video conversion | BBCritical | General Discussion | 3 | 08-03-2011 01:41 PM |
HD Video Conversion Problems in V7 | Ted@TNT | SageTV Software | 1 | 01-27-2011 09:21 AM |
Conversion/Compression Problems | ethanreedy | SageTV Software | 3 | 01-05-2010 08:22 AM |
h.264 conversion problems -- what gives? | dblaine2 | General Discussion | 5 | 01-21-2007 10:46 AM |
PSP Video Conversion | Deadbolt | SageTV Software | 7 | 12-26-2006 06:40 PM |