SageTV Community  

Go Back   SageTV Community > Hardware Support > Hardware Support
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1081  
Old 06-25-2016, 06:34 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
The idea is that if there's a communications issue, maybe the IP address has changed, so detection is kicked off and will find new devices and update the IP addresses of existing devices if they have changed.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1082  
Old 06-28-2016, 08:10 AM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by EnterNoEscape View Post
Keep in mind that if you're using Windows, you'll need to install VS2015 and set things up per the directions on the SageTV GitHub to be able to compile JavaRemuxer2.dll. Linux is a little easier. Just make sure if you're running Ubuntu that build-essential is installed and you should be able to make libJavaRemuxer2.so. This would be in addition to compiling a new Sage.jar. If you only compile a new Sage.jar, the new library will not be able to load and you will not be writing anything to disk. Eventually new install packages for Windows and Linux will be released, so if this looks daunting, I would just wait.
I've built this, but not sure where to put it. Do I just need to stick it in .../SageTV/SageTV along with the updated Sage.jar?

EDIT: Looks like it. The new version seems to be working.
__________________
Home Network: https://karylstein.com/technology.html

Last edited by KarylFStein; 06-28-2016 at 08:24 AM.
Reply With Quote
  #1083  
Old 06-28-2016, 09:43 AM
troll5501 troll5501 is offline
Sage Advanced User
 
Join Date: Jun 2006
Posts: 136
I started testing the new MediaServerConsumerImpl (OpenDCT 0.5.7 and SageTV 9.0.4.291 built from latest repo) and in general it's working and the channel tuning is fast. But for some reason it takes a very long time or even fails to tune a few channels. When this happens, I see OpenDCT get into a loop like this:

Code:
11:22:44.521 [MediaServerConsumerImpl-131:DCT-HDHomeRun Prime Tuner 13191941-2] INFO  NIOSageTVMediaServer - Sending 'REMUX_CONFIG INIT' to SageTV server...
11:22:44.521 [MediaServerConsumerImpl-131:DCT-HDHomeRun Prime Tuner 13191941-2] DEBUG NIOSageTVMediaServer - messageInBytes = 0
11:22:44.521 [MediaServerConsumerImpl-131:DCT-HDHomeRun Prime Tuner 13191941-2] DEBUG NIOSageTVMediaServer - Received 7 bytes from SageTV server.
11:22:44.521 [MediaServerConsumerImpl-131:DCT-HDHomeRun Prime Tuner 13191941-2] DEBUG NIOSageTVMediaServer - messageInBytes = 7
11:22:44.521 [MediaServerConsumerImpl-131:DCT-HDHomeRun Prime Tuner 13191941-2] INFO  NIOSageTVMediaServer - Received message from SageTV server 'FALSE'
and SageTV is in a loop like this:

Code:
Tue 6/28 11:23:25.424 [VideoFrame-001d6a4bfae8@77672b28] VF processing job VFJob[LoadMF r=0.0 t=0 file=MediaFile[id=39852355 A[39659357,64665,"SportsCenter",59976@0628.11:00,60,T] mask=TV host=sagelinux encodedBy=DCT-HDHomeRun Prime Tuner 13191941-2 on sagelinux.bitbytes.com:9000 ESPNWHD format=MPEG2-TS 0:00:00 0 kbps [] /sagedata/SportsCenter-39659357-1.ts, Seg0[Tue 6/28 11:22:45.696-Wed 12/31 19:00:00.000]] ifn=null] nPlayin=false
Tue 6/28 11:23:25.424 [VideoFrame-001d6a4bfae8@77672b28] VF network encoder playback detected: true
Tue 6/28 11:23:25.424 [VideoFrame-001d6a4bfae8@77672b28] VF waiting for data to appear in new file...liveWait=-38228
Tue 6/28 11:23:25.424 [VideoFrame-001d6a4bfae8@77672b28] VF thread is now waiting for 0:00:00.200
It seems like something is having trouble detecting the video format. One time it tuned the channel after several minutes but usually when this happens it just stays stuck in this looping pattern and never successfully tunes the channel.

If I run the HDHomeRun Config utility, I can see that the tuner is tuned to the correct channel and is streaming data.

I switched back to FFmpegTransSageTVConsumerImpl and tuned the same channel and it worked, although it also took about 12 seconds. Here is part of the log from that:

Code:
11:35:09.353 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  HDHRNativeCaptureDevice - Starting the encoding for the channel '852' from the device 'DCT-HDHomeRun Prime Tuner 13191941-1' to the file '/sagedata/SportsCenter-39659357-2.ts'...
11:35:09.353 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG HDHomeRunControl - key: '/tuner1/vchannel' value: '852' lockKey: '1062674819' sendLength: 39 address: 192.168.222.219
11:35:09.362 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  HDHRNativeCaptureDevice - Configuring and starting the new RTP producer...
11:35:09.362 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG RTPCaptureDeviceServices - Producer was not running.
11:35:09.363 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG HDHomeRunControl - key: '/tuner1/target' value: 'rtp://192.168.222.125:8458' lockKey: '1062674819' sendLength: 60 address: 192.168.222.219
11:35:09.363 [NIORTPProducerImpl-153:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  NIORTPProducerImpl - Producer thread is running.
11:35:09.363 [NIORTPProducerImpl-153:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG NIORTPProducerImpl - Thread priority is 9.
11:35:09.363 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG HDHomeRunControl - key: '/tuner1/program' value: 'null' lockKey: '0' sendLength: 26 address: 192.168.222.219
11:35:09.364 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  HDHRNativeCaptureDevice - Configuring and starting the new SageTV consumer...
11:35:09.366 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
11:35:09.366 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG HDHomeRunControl - key: '/tuner1/vstatus' value: 'null' lockKey: '0' sendLength: 26 address: 192.168.222.219
11:35:09.366 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread is now running.
11:35:09.366 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegTransSageTVConsumerImpl - Thread priority is 8.
11:35:09.366 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
11:35:10.069 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=201348 bytes_read=201348 seek_count=0. probesize: 165628 analyzeduration: 2000000.
11:35:10.866 [SageTVRequestHandler-89:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG HDHomeRunControl - key: '/tuner1/vstatus' value: 'null' lockKey: '0' sendLength: 26 address: 192.168.222.219
11:35:11.189 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] ERROR mpeg2video - [0x7f1a684ef2c0] Invalid frame dimensions -693817184x0.
11:35:11.190 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  mpegts - Repeated 6 times: [0x7f1a684ef2c0] Invalid frame dimensions -693817184x0..
11:35:11.190 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  mpegts - [0x7f1a684b9c80] decoding for stream -693817184 failed
11:35:11.190 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1530508
11:35:11.190 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1530508, returnValue = 1542353
11:35:11.190 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1530508
11:35:11.190 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1530508, returnValue = 1542353
11:35:11.267 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 1042353, readIndex = 1597624
11:35:11.267 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 1042353, readIndex = 1042353, returnValue = 1042353
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1566641
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1566641, returnValue = 1597625
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 1566641
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 1597625
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=2121912 seek_count=2. probesize: 165628 analyzeduration: 2000000.
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - current container duration = 1.117778 seconds
11:35:11.268 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - avformat_find_stream_info() failed with error code 1. Trying again with more data.
...
...
11:35:18.619 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 10341169, readIndex = 10341169, returnValue = 10341169
11:35:18.695 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 10729348
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 10729348, returnValue = 10729349
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 10729348
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 10730665
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=20758543 seek_count=3. probesize: 9779384 analyzeduration: 8774422.
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - current container duration = 8.575222 seconds
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegUtil - program stream index 0 is null
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Desired program set. Stream details unavailable for one or more streams.  Trying again with an extended probe.
11:35:18.696 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
11:35:18.700 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 10739876
11:35:18.700 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:18.700 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=0 bytes_read=10739876 seek_count=1. probesize: 10730852 analyzeduration: 9575222.
11:35:19.518 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 11599224
11:35:19.518 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 11599224, returnValue = 11600541
11:35:19.519 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 11599224
11:35:19.519 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 11599224, returnValue = 11601857
11:35:19.519 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 11351857, readIndex = 11599224
11:35:19.519 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 11351857, readIndex = 11351857, returnValue = 11351857
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 11101857, readIndex = 11683448
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 11101857, readIndex = 11101857, returnValue = 11101857
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 11626145
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 11626145, returnValue = 11683449
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 11626145
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 11683449
11:35:19.571 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=23194979 seek_count=4. probesize: 10730852 analyzeduration: 9575222.
11:35:19.572 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - current container duration = 9.376022 seconds
11:35:19.572 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegUtil - program stream index 0 is null
11:35:19.572 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Desired program set. Stream details unavailable for one or more streams.  Trying again with an extended probe.
11:35:19.572 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
11:35:19.576 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 11683448
11:35:19.576 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:19.576 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=0 bytes_read=11683448 seek_count=1. probesize: 11683636 analyzeduration: 10376022.
11:35:20.220 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 12583592
11:35:20.220 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 12583592, returnValue = 12584909
11:35:20.221 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 12583592
11:35:20.221 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 12583592, returnValue = 12587541
11:35:20.221 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 12337541, readIndex = 12583592
11:35:20.221 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 12337541, readIndex = 12337541, returnValue = 12337541
11:35:20.272 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 12087541, readIndex = 12662552
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 12087541, readIndex = 12087541, returnValue = 12087541
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 12611829
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 12611829, returnValue = 12662553
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 12611829
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 12662553
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=25116339 seek_count=4. probesize: 11683636 analyzeduration: 10376022.
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - current container duration = 10.176822 seconds
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegUtil - program stream index 0 is null
11:35:20.273 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Desired program set. Stream details unavailable for one or more streams.  Trying again with an extended probe.
11:35:20.274 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
11:35:20.278 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 12669132
11:35:20.278 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:20.278 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=0 bytes_read=12669132 seek_count=1. probesize: 12662740 analyzeduration: 11176822.
11:35:20.340 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] ERROR mpeg2video - Repeated 116 times: [0x7f1a68066620] Invalid frame dimensions -693817184x0..
11:35:20.340 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] ERROR mpeg2video - [0x7f1a680386e0] Invalid frame dimensions -693817184x0.
11:35:21.002 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 13642972
11:35:21.002 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 13642972, returnValue = 13642973
11:35:21.002 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 13642972
11:35:21.002 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 13642972, returnValue = 13644289
11:35:21.002 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 13394289, readIndex = 13642972
11:35:21.002 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 13394289, readIndex = 13394289, returnValue = 13394289
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 13144289, readIndex = 13737724
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 13144289, readIndex = 13144289, returnValue = 13144289
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 13668577
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 13668577, returnValue = 13737725
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 13668577
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 13737725
11:35:21.080 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=27179827 seek_count=4. probesize: 12662740 analyzeduration: 11176822.
11:35:21.081 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - current container duration = 11.077722 seconds
11:35:21.081 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegUtil - program stream index 0 is null
11:35:21.081 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Desired program set. Stream details unavailable for one or more streams.  Trying again with an extended probe.
11:35:21.081 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
11:35:21.086 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 13631488
11:35:21.086 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:21.086 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=0 bytes_read=13631488 seek_count=1. probesize: 13481692 analyzeduration: 12077722.
11:35:21.860 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 14543116
11:35:21.860 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 14543116, returnValue = 14543117
11:35:21.860 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 14543116
11:35:21.860 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 14543116, returnValue = 14543117
11:35:21.860 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 14261224, readIndex = 14543116
11:35:21.860 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 14261224, readIndex = 14261224, returnValue = 14261224
11:35:21.912 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 14043117, readIndex = 14628656
11:35:21.912 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 14043117, readIndex = 14043117, returnValue = 14043117
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 14567405
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 14567405, returnValue = 14628657
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 14567405
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 14628657
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=29066324 seek_count=3. probesize: 13481692 analyzeduration: 12077722.
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegStreamDetection - current container duration = 11.728378 seconds
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegStreamDetection - FFmpeg stream detection done in 12547ms,
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegTranscoder - Initializing FFmpeg transcoder stream output.
11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegContext - Primary:
Input #0, mpegts, from 'input-mpeg-ts.ts':
  Duration: 00:00:11.73, start: 10871.220744, bitrate: 9978 kb/s
  Program 2

11:35:21.913 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] DEBUG FFmpegContext - Calling avformat_alloc_output_context2
11:35:21.914 [FFmpegTransSageTVConsumerImpl-157:DCT-HDHomeRun Prime Tuner 13191941-1] INFO  FFmpegContext - Primary:
Output #0, mpegts, to '/sagedata/SportsCenter-39659357-2.ts':
    Stream #0:0, 0, 1/90000: Video: mpeg2video, yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, max. 20000 kb/s, 90k tbn, 119.88 tbc
    Stream #0:1, 0, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Could this be fixed in your latest commit that is not yet released: "Added option to force MPEG2-PS when using the Media Server."? Or do you have any other thoughts?
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage
SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit
Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender
Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7
Reply With Quote
  #1084  
Old 06-28-2016, 09:43 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Correct. The DLL goes in the same folder as the JAR (Linux and Windows). If you're using PS (.mpg), there's a small bug I missed that will effect SWITCH for that format. The fix is really simple, but it's waiting on Narflex to come back from vacation. I changed over to PS myself when I noticed that once in a long while, I'd get a recording that's completely intact, but the extenders and a few other programs really didn't like the way the audio was remuxed.

Considering the audio itself was actually fine according to VideoRedo and FFmpeg, I'm not sure what the remuxer is doing/not doing that's causing this anomaly. I don't think it has anything to do with the higher level code that I wrote to expose the remuxer to the JVM. If it did, I would expect all kinds of errors in the stream. I think this issue has just gone unnoticed because we usually only remux to PS in SageTV. I did create an issue on GitHub for this anomaly that I've only seen twice, but I'm probably not the best candidate to fix it.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1085  
Old 06-28-2016, 10:23 AM
troll5501 troll5501 is offline
Sage Advanced User
 
Join Date: Jun 2006
Posts: 136
Quote:
Originally Posted by troll5501 View Post
I started testing the new MediaServerConsumerImpl (OpenDCT 0.5.7 and SageTV 9.0.4.291 built from latest repo)
Forgot to mention that I'm running all of the default settings in opendct.properties except for hdhr.allow_http_tuning=false to enable UDP.
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage
SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit
Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender
Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7
Reply With Quote
  #1086  
Old 06-28-2016, 11:44 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by troll5501 View Post
Could this be fixed in your latest commit that is not yet released: "Added option to force MPEG2-PS when using the Media Server."? Or do you have any other thoughts?
Nope. That commit will not fix that situation you are seeing. If you can get me a raw copy of the TS from one of those problem channels, I'm interesting to see what I can find.

Edit: Sorry, I thought you were talking about my SageTV commit for SWITCH not catching the pack header in MPEG-PS. The commit you're talking about allows you to override the implicit format that SageTV asks for based on the file extension. I add that because most people using OpenDCT are set up for TS and I've noticed that the SageTV remuxer works better in PS mode.

You can change that in Sage.properties for each capture device by changing encode_digital_tv_as_program_stream to true. You'll want the commit that hasn't yet been merged into the core if you're going to use PS because otherwise you'll possibly have some files that won't playback very well.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG

Last edited by EnterNoEscape; 06-28-2016 at 11:53 AM.
Reply With Quote
  #1087  
Old 06-28-2016, 11:57 AM
troll5501 troll5501 is offline
Sage Advanced User
 
Join Date: Jun 2006
Posts: 136
Quote:
Originally Posted by EnterNoEscape View Post
Edit: Sorry, I thought you were talking about my SageTV commit for SWITCH not catching the pack header in MPEG-PS. The commit you're talking about allows you to override the implicit format that SageTV asks for based on the file extension. I add that because most people using OpenDCT are set up for TS and I've noticed that the SageTV remuxer works better in PS mode.

You can change that in Sage.properties for each capture device by changing encode_digital_tv_as_program_stream to true. You'll want the commit that hasn't yet been merged into the core if you're going to use PS because otherwise you'll possibly have some files that won't playback very well.
Thanks, I will try setting encode_digital_tv_as_program_stream=true first, to see if it helps. If that doesn't work, I will capture the raw stream for your analysis.

Can you remind me again of URL syntax for capturing the raw stream?
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage
SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit
Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender
Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7
Reply With Quote
  #1088  
Old 06-28-2016, 12:23 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by troll5501 View Post
Thanks, I will try setting encode_digital_tv_as_program_stream=true first, to see if it helps. If that doesn't work, I will capture the raw stream for your analysis.

Can you remind me again of URL syntax for capturing the raw stream?
http://<ip_address>:5004/auto/v<channel_number>?duration=120

As you probably expected being a first go at at this, we're going to discover a few things that just don't work well. One of the things that might be inhibiting performance on a channel that takes 12 seconds to come in on FFmpeg could be the INIT polling. It might still take a while for the channel to come in, but the polling is probably only adding to it. It's not really required, but it allows for channel surfing to look a little smoother (the channel doesn't change until the new video is actually streaming). Also when it comes to MPEG-PS, prior to the most recent commit from Narflex, it was also needed to help make sure that the stream didn't come in as audio only. I'm going to disable this polling by default in the next release.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1089  
Old 06-28-2016, 01:24 PM
troll5501 troll5501 is offline
Sage Advanced User
 
Join Date: Jun 2006
Posts: 136
Quote:
Originally Posted by EnterNoEscape View Post
http://<ip_address>:5004/auto/v<channel_number>?duration=120

As you probably expected being a first go at at this, we're going to discover a few things that just don't work well. One of the things that might be inhibiting performance on a channel that takes 12 seconds to come in on FFmpeg could be the INIT polling. It might still take a while for the channel to come in, but the polling is probably only adding to it. It's not really required, but it allows for channel surfing to look a little smoother (the channel doesn't change until the new video is actually streaming). Also when it comes to MPEG-PS, prior to the most recent commit from Narflex, it was also needed to help make sure that the stream didn't come in as audio only. I'm going to disable this polling by default in the next release.
Forcing SageTV to use program stream did not help. I sent a PM with a link to the raw capture file.
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage
SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit
Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender
Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7
Reply With Quote
  #1090  
Old 06-28-2016, 03:00 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by troll5501 View Post
Forcing SageTV to use program stream did not help. I sent a PM with a link to the raw capture file.
One thing really stood out about that file is MediaInfo couldn't tell me anything about that file. RemuxFile (./native/ax/Native2.0/RemuxFile) couldn't figure out what was in the file. I've been using RemuxFile as a sanity check to make sure it's not the native code that I wrote at fault. FFmpeg was able to work with the file. The TS packets appear to be correctly structured.

There's probably something very unique about the stream as you may have guessed. Later tonight, I'll put a minute of it up on my Google Drive and open a new issue on GitHub for Narflex to take a look. He knows the innards of this thing a lot better than I do and probably will know exactly why it's failing. Hopefully it's just a matter of using the right parameters when configuring the remuxer.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1091  
Old 06-28-2016, 03:41 PM
troll5501 troll5501 is offline
Sage Advanced User
 
Join Date: Jun 2006
Posts: 136
Quote:
Originally Posted by EnterNoEscape View Post
One thing really stood out about that file is MediaInfo couldn't tell me anything about that file. RemuxFile (./native/ax/Native2.0/RemuxFile) couldn't figure out what was in the file. I've been using RemuxFile as a sanity check to make sure it's not the native code that I wrote at fault. FFmpeg was able to work with the file. The TS packets appear to be correctly structured.

There's probably something very unique about the stream as you may have guessed. Later tonight, I'll put a minute of it up on my Google Drive and open a new issue on GitHub for Narflex to take a look. He knows the innards of this thing a lot better than I do and probably will know exactly why it's failing. Hopefully it's just a matter of using the right parameters when configuring the remuxer.
Thanks very much for looking into this. I noticed the same issue last night on ESPN also (the clip I sent was ESPNews).

I really like the idea of using the internal SageTV remuxer. But I can say that I've been running 0.5.5 for over a month with the FFmpegTransSageTVConsumerImpl consumer and UDP and haven't had any issues. Very solid!
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage
SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit
Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender
Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7
Reply With Quote
  #1092  
Old 06-28-2016, 04:52 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by troll5501 View Post
Thanks very much for looking into this. I noticed the same issue last night on ESPN also (the clip I sent was ESPNews).

I really like the idea of using the internal SageTV remuxer. But I can say that I've been running 0.5.5 for over a month with the FFmpegTransSageTVConsumerImpl consumer and UDP and haven't had any issues. Very solid!
If I recall you have done a little bit of development in for the SageTV core. If you're bored or just curious, you can always take a stab the the remuxer code. RemuxFile will build for both Windows and Linux.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1093  
Old 06-29-2016, 05:20 AM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
This new version doesn't seem to play well with Placeshifter on PC or ExoPlayer through the Android mini client. Skipping is off, (like in Placeshifter I have to skip way forward past where I want and it'll snap back), and I have one recording that just plays audio (Placeshifter) / crashes the app (ExoPlayer). I know that these are the pickiest players , but the last version I was running made it so ExoPlayer would work for once, (which I want for 5.1 audio from the SHIELD TV). The HD300 chugs through everything fine.

To go back do I just change the consumer.dynamic.default line or should I load the older binary too?
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #1094  
Old 06-29-2016, 01:27 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
I'll look into the players not working. I didn't test this on Android prior to release, but I also didn't really do anything interesting to the FFmpeg remuxer other than remove the code that adjusts the PTS and DTS values so they roughly start at 0. I can't imagine these players are that level of picky, so something else must be wrong. If you can post your configuration (opendct.properties), that might help a little.

I'm not sure why you're asking about the consumer.dynamic.default line. Did you change the consumer to something else?
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1095  
Old 06-29-2016, 01:51 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by EnterNoEscape View Post
I'll look into the players not working. I didn't test this on Android prior to release, but I also didn't really do anything interesting to the FFmpeg remuxer other than remove the code that adjusts the PTS and DTS values so they roughly start at 0. I can't imagine these players are that level of picky, so something else must be wrong. If you can post your configuration (opendct.properties), that might help a little.

I'm not sure why you're asking about the consumer.dynamic.default line. Did you change the consumer to something else?
Hm, I thought in order to use the new core remuxer I had to change the consumer.dynamic.default line to opendct.consumer.MediaServerConsumerImpl. (All my tuners use opendct.consumer.DynamicConsumerImpl.) Am I doing this wrong? I changed the default line to back to opendct.consumer.FFmpegTransSageTVConsumerImpl.

Anyway, my properties file is attached. If there are any tweaks I should make to get the best compatibility with InfiniTV 6 and Placeshifter/Android feel free to point those out . It should be stock--I don't remember changing anything but the consumer default line. EDIT: It looks like I also made the music channels (401-450) to be raw, (didn't help to get them working in Placeshifter, but think I remember they tune faster on the HD300).
Attached Files
File Type: txt opendct.properties.txt (8.2 KB, 191 views)
__________________
Home Network: https://karylstein.com/technology.html

Last edited by KarylFStein; 06-29-2016 at 01:55 PM.
Reply With Quote
  #1096  
Old 06-29-2016, 01:56 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Sorry, I didn't understand, but I do now. I thought you were saying the the FFmpeg consumer wasn't working. I forgot you were testing the Media Server consumer.

You're not doing anything wrong.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1097  
Old 06-29-2016, 02:13 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
I just loaded up the Android miniclient on my Nexus Player and everything looks great in ijkplayer. ExoPlayer won't play anything PS or TS. I did a little bit of live TV and recorded TV in my short test.

OpenDCT has many consumers so you have some options. Technically the Media Server should be the best choice since it's designed for this exact purpose, but we might discover a few issues along the way. I'd keep my eye out for new versions of SageTV that mention things about the internal remuxer or native core. The fact that the files playback well for you on the HD300 at least means OpenDCT probably isn't doing anything wrong.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1098  
Old 07-04-2016, 10:29 AM
jm9843 jm9843 is offline
Sage Aficionado
 
Join Date: Oct 2003
Posts: 288
I'm still using the latest beta and have noticed that one of my SD local channels displays 'No Signal' with the MediaServer consumer. While the FFmpeg consumer eventually begins streaming properly after ~30 seconds of 'No Signal'.

I've attached the OpenDCT log entries for examples of each.
Attached Files
File Type: txt MediaServer-log.txt (3.8 KB, 182 views)
File Type: txt FFmpeg-log.txt (45.9 KB, 175 views)
Reply With Quote
  #1099  
Old 07-04-2016, 01:23 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by jm9843 View Post
I'm still using the latest beta and have noticed that one of my SD local channels displays 'No Signal' with the MediaServer consumer. While the FFmpeg consumer eventually begins streaming properly after ~30 seconds of 'No Signal'.

I've attached the OpenDCT log entries for examples of each.
Your situation is likely similar to the one troll5501 reported. The reason I would think it's taking even longer is because SD channels produce even less data and the tipping point for when FFmpeg and SageTV's remuxer decide to build their own PAT and PMT packets is based on how much data has been processed, not how much time has passed.

For the ones of you having this kind of issue, you'll want to watch for if the following issue gets resolved. I'm working on a few other things at the moment, but I will try to get around to fixing this one if someone doesn't get to it before me.
https://github.com/google/sagetv/issues/152
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #1100  
Old 07-06-2016, 05:40 AM
Greg2dot0's Avatar
Greg2dot0 Greg2dot0 is offline
Sage Advanced User
 
Join Date: Dec 2008
Posts: 82
Quote:
Originally Posted by Greg2dot0 View Post
Just wanted to let you know that I loaded 5.7 up this morning and was watching a bunch of live TV and that seems to have improved an issue that I was seeing with 5.6 with lots of "corrections" in the stream. It was so bad that I had to roll back to the stable version. I'm using the "opendct.consumer.FFmpegTransSageTVConsumerImpl" consumer and pooling.
I once again had to roll back to stable version. I was trying to watch golf on Sunday and it seemed that it was dropping a single almost constantly (log attached). I did also test this on a fresh test box with the new build (.287) and the new media server consumer and got the exact same results (log also attached).

Code:
15:38:16.952 [NIORTPProducerImpl-728:DCT-HDHomeRun Prime Tuner 13142E5A-0] WARN  RTPPacketProcessor - Expected frame number 29920, got 29921
15:38:16.987 [NIORTPProducerImpl-728:DCT-HDHomeRun Prime Tuner 13142E5A-0] WARN  RTPPacketProcessor - Expected frame number 29975, got 29976
15:38:21.586 [NIORTPProducerImpl-728:DCT-HDHomeRun Prime Tuner 13142E5A-0] WARN  RTPPacketProcessor - Expected frame number 37086, got 37087
15:38:23.721 [NIORTPProducerImpl-728:DCT-HDHomeRun Prime Tuner 13142E5A-0] WARN  RTPPacketProcessor - Expected frame number 40619, got 40620
15:38:24.605 [NIORTPProducerImpl-728:DCT-HDHomeRun Prime Tuner 13142E5A-0] WARN  RTPPacketProcessor - Expected frame number 42105, got 42106
15:38:26.957 [NIORTPProducerImpl-728:DCT-HDHomeRun Prime Tuner 13142E5A-0] WARN  RTPPacketProcessor - Expected frame number 45544, got 45545
15:38:33.454 [NIORTPProducerImpl-728:DCT-HDHomeRun Prime Tuner 13142E5A-0] WARN  RTPPacketProcessor - Expected frame number 55402, got 55403
After having rolling back to 4.9, I hardly have any issues. I know you've got a bunch of other things that you're focused on but wanted to let you know that this is what I'm experiencing.

I do have a dedicated test box and sage fork, so can do any kind of testing that may be necessary when you finally are ready to look at it.
Attached Files
File Type: zip opendct.2016-07-03-1.log.zip (75.2 KB, 171 views)
File Type: zip SAGETV-TEST-opendct.2016-07-03-1.log.zip (4.5 KB, 178 views)
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB
Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM)
Clients: 1x HD300, 2x HD200, 2x Placeshifters
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 7 (0 members and 7 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
ATI TV Wonder Digital Cable Tuner & SageTV nyle Hardware Support 4 02-17-2009 10:12 PM
ATI TV Wonder Digital Cable Tuner rajczi Hardware Support 4 01-14-2008 08:24 PM
ATI TV Wonder™ Digital Cable Tuner dadams Hardware Support 4 01-09-2007 10:55 AM
Digital Cable - one guide - need HD on one tuner reg tv on other Kimper SageTV Beta Test Software 14 11-27-2006 08:15 PM
Multi-tuner Digital Cable mlbdude SageTV Software 0 06-26-2003 01:08 PM


All times are GMT -6. The time now is 02:10 PM.


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