SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 02-24-2016, 02:25 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
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.
Attached Files
File Type: zip sagetv_0.zip (246.1 KB, 119 views)
__________________
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
Reply With Quote
  #42  
Old 02-25-2016, 06:41 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
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
Google
Founder of SageTV
Reply With Quote
  #43  
Old 02-25-2016, 07:29 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by Narflex View Post
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)
Yeah, I tried running by hand. That's how I figured out I needed several more dll's from the mingw32 package. When I run that manually it starts displaying what I assume is the ANSI'ized binary output of the converted video. I've updated the One Drive file with the needed dll's.
__________________
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
Reply With Quote
  #44  
Old 02-25-2016, 07:41 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
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
Reply With Quote
  #45  
Old 02-26-2016, 01:08 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
This is now very weird. If there was an actual problem executing the program..then I'd expect the Runtime.exec() call to throw an exception..but it doesn't. If the program launches then I'd expect to see output from it...but there isn't any. When you run it by hand...it gives you the output that you should see.

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;
  }
Then in the stopTranscode() function, replace the block similar to the code below with the code I'm pasting here:

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();
    }
Then reproduce and look at the log file. If it prints out the lastExitCode and it's a non-zero value...then lookup what that means on Windows. I'm strongly expecting it to be a non-zero value based on the code paths that are being executed.

Of course feel free to post your log file as well if this doesn't point you to the solution.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #46  
Old 02-26-2016, 02:11 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
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
Reply With Quote
  #47  
Old 02-26-2016, 03:21 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
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
Reply With Quote
  #48  
Old 02-27-2016, 12:11 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
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
Google
Founder of SageTV
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -6. The time now is 02:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.