![]() |
|
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 |
#41
|
|||
|
|||
Ok, I figured out that it was missing a few dll files: libbz2-1.dll, libgcc_s_dw2-1.dll, & libwinpthread-1.dll. I pulled those files from the mingw32 files and it runs now. However it still doesn't work. Here is the resulting log file. They are nearest the end of the file.
__________________
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 |
#42
|
||||
|
||||
I think there's something wrong with the EXE you're building. What happens if you try to run this command (remove all the commas from it):
C:\Program Files (x86)\SageTV\SageTV\SageTVTranscoder.exe -v 3 -y -threads 2 -sn -vsync 0 -async 1 -stdinctrl -i \\htpc\video3\12Monkeys-Splinter-20158925-0.ts -threads 5 -f dvd -vcodec mpeg4 -s 352x240 -ac 2 -g 300 -bf 2 -acodec mp2 -r 30 -b 1000000 -ar 48000 -ab 128000 -packetsize 2048 -aspect 16:9 -muxrate 2000000 -rc_init_cplx 808 -maxrate 1000000 -minrate 0 -bufsize 1000000 -mbd 2 -rc_eq isI*200+isP*75+isB*75 -priority belownormal - Basically what I'm seeing in the log data is when it tries to launch the executable, it just fails immediately with no output at all so it never reads any data from it. Running it by hand usually gives you the reason why (although you did say you already ran it by hand..but maybe you didn't copy it to the right filename or location or something like that)
__________________
Jeffrey Kardatzke Founder of SageTV |
#43
|
|||
|
|||
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 |
#44
|
|||
|
|||
BTW, I just tried piping the output to a file and playing that in VLC. It plays the audio but no video. Of course the same thing happens with the original ffmpeg. I suppose the important part is that MediaInfo sees the file as a MPEG program stream with MPEG 4 H.263 video and MP2 audio. Here is the output:
Code:
General Complete name : C:\Users\jbean\Desktop\video.mpg Format : MPEG-PS File size : 4.40 MiB Duration : 50s 733ms Overall bit rate : 728 Kbps Writing library : Lavc52.83.0 Video ID : 224 (0xE0) Format : MPEG-4 Visual Format profile : Advanced Simple@L1 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Duration : 50s 733ms Bit rate : 585 Kbps Width : 352 pixels Height : 240 pixels Display aspect ratio : 16:9 Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Stream size : 3.54 MiB (80%) Writing library : Lavc52.83.0 Audio ID : 192 (0xC0) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Duration : 50s 208ms Bit rate mode : Constant Bit rate : 128 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Compression mode : Lossy Delay relative to video : -67ms Stream size : 785 KiB (17%)
__________________
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 |
#45
|
||||
|
||||
This is now very weird.
![]() What I'd do to debug this next is to look at the exit code that the process is giving, as that should give a clue as to why it's terminating abruptly. So there's a few edits you should make in sage.FFMPEGTranscoder.java to get this info. I don't know if you know Java...so I'll give you the code here. Replace the didTranscodeCompleteOK() function block with this: Code:
public boolean didTranscodeCompleteOK() { if (!xcodeDone) return false; if (xcodeProcess != null) { try { lastExitCode = xcodeProcess.exitValue(); System.out.println("FLAG1-lastExitCode: " + lastExitCode); } catch (IllegalThreadStateException ise) { lastExitCode = -1; System.out.println("FLAG1-ITSE:" + ise.toString()); } } return xcodeDone && lastExitCode == 0; } Code:
if (xcodeProcess != null) { try { lastExitCode = xcodeProcess.exitValue(); System.out.println("FLAG2-lastExitCode: " + lastExitCode); } catch (IllegalThreadStateException ise) { System.out.println("FLAG1-ITSE:" + ise.toString()); lastExitCode = -1; } xcodeProcess.destroy(); } Of course feel free to post your log file as well if this doesn't point you to the solution. ![]()
__________________
Jeffrey Kardatzke Founder of SageTV |
#46
|
|||
|
|||
Ok, now I really feel like a dunce. The exit code was -1073741515. I used Process Explorer to filter "SageTVTranscoder.exe" and discovered that it wasn't finding xvidcore.dll. Apparently the last time I copied it over I forgot to copy it also.
__________________
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 |
#47
|
|||
|
|||
Different problem now though. I tried converting a video manually. Any of the conversion options that specify H.264 don't work. FFMPEG exits with "FFMPEG has crashed with signal 11 !!!".
__________________
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 |
#48
|
||||
|
||||
That would likely be an issue with x264. What also sounds odd here is that you need to copy over these DLL files...we were statically linking it before so that the EXE was standalone. I'd recommend doing the same thing. The crash with h264 may simply be due to a failure loading the x264 DLL.
__________________
Jeffrey Kardatzke Founder of SageTV |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageDTC 2.7.0.2 with ffmpeg | mtenboer | Hardware Support | 1 | 11-13-2013 02:47 PM |
Failed creating menu item-now getting error | scm | Phoenix | 2 | 07-31-2011 08:05 PM |
ffmpeg help | ChePazzo | SageTV Linux | 4 | 12-04-2006 09:52 AM |
ffmpeg v0.4.9 pre for Windows? | jsturtevant | SageTV Customizations | 14 | 06-06-2006 05:24 PM |
Creating 2300 thumbnail pictures... gets stuck at around 1200 | mkanet | SageTV Beta Test Software | 7 | 08-26-2005 10:41 AM |