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
  #1  
Old 04-13-2016, 09:56 PM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
recording gaps - tuner lost

i'm having regular loss of tuner/signal, about 1 per hour on average since setting up a linux v9 server to replace my old v7/XP machine.

the baseball game tonight had 4 occurrences and i've captured the logs for sage and opendct. i've uploaded partial logs that capture before and after an anomalous event.

config:
hdhr-prime tuners with latest opendct load
latest sage v9 on ubuntu

if i can help with any other tests/logs, please let me know.

sage-debug-log-1.txt

opendct-debuglog-1.txt
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #2  
Old 04-14-2016, 03:04 AM
trallyus trallyus is offline
Sage Aficionado
 
Join Date: Jul 2010
Posts: 392
Seems like me and others are not the only one experiencing this problem. I did not know it affected linux as I thought it was only windows users having problems.
Reply With Quote
  #3  
Old 04-14-2016, 03:49 AM
m1k3g m1k3g is offline
Sage User
 
Join Date: Sep 2008
Posts: 47
Windows - just started experiencing the same

I was puzzling over this last night. About half of our channels (OTA) have no data and no signal. Very strange.

I also have TVHeadend running on another system and it's working fine.
Reply With Quote
  #4  
Old 04-14-2016, 07:20 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by cat6man View Post
i'm having regular loss of tuner/signal, about 1 per hour on average since setting up a linux v9 server to replace my old v7/XP machine.

the baseball game tonight had 4 occurrences and i've captured the logs for sage and opendct. i've uploaded partial logs that capture before and after an anomalous event.

config:
hdhr-prime tuners with latest opendct load
latest sage v9 on ubuntu

if i can help with any other tests/logs, please let me know.

Attachment 15427

Attachment 15428
You're using the old consumer I will be removing that soon. Make sure you stop OpenDCT before making changes to opendct.properties. Change all entries for sagetv.device.<unique_id>.consumer to FFmpegTransSageTVConsumerImpl in opendct.properties. That should fix this problem you're seeing. The old consumer was unable to deal with anomalies in the stream.
__________________
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
  #5  
Old 04-14-2016, 08:30 AM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
it looks like the consumer is already changed (see attached).

however, i see the file opendct.properties.backup in /opt/opendct/conf.moved so i'm wondering where the real opendct.properties file went? if i remember correctly, opendct.properties used to be in subdir conf, not conf.moved
Attached Files
File Type: txt opendct.properties.backup.txt (3.2 KB, 151 views)
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #6  
Old 04-14-2016, 08:37 AM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
just saw that opendct.properties is now in /etc/opendct/conf

adding upload of correct file
Attached Files
File Type: txt opendct.properties.txt (7.5 KB, 149 views)
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #7  
Old 04-14-2016, 08:42 AM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
Quote:
Originally Posted by EnterNoEscape View Post
You're using the old consumer I will be removing that soon. Make sure you stop OpenDCT before making changes to opendct.properties. Change all entries for sagetv.device.<unique_id>.consumer to FFmpegTransSageTVConsumerImpl in opendct.properties. That should fix this problem you're seeing. The old consumer was unable to deal with anomalies in the stream.

i'm getting blind.............i see now the difference is the "Trans" between "mpeg" and "Sage" so let me go correct that now

will test for gaps in next couple of hours.

just ran one test of liveTV and hd300 hung up again after a minute of two.
these logs capture it.
Attached Files
File Type: txt opendct.log2.txt (46.9 KB, 168 views)
File Type: zip sagetv_0-2.txt.zip (180.1 KB, 137 views)
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.

Last edited by cat6man; 04-14-2016 at 09:25 AM.
Reply With Quote
  #8  
Old 04-14-2016, 10:48 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by cat6man View Post
just saw that opendct.properties is now in /etc/opendct/conf

adding upload of correct file
Somehow the last configuration upgrade missed some things in your configuration.

You'll want to change hdhr.enabled to true, remove HDHR3-CC from hdhr.exp_ignore_models and remove schemas-dkeystone-com from upnp.new.device.search_strings_csv and upnp.new.device.schema_filter_strings_csv.


Quote:
Originally Posted by cat6man View Post
i'm getting blind.............i see now the difference is the "Trans" between "mpeg" and "Sage" so let me go correct that now

will test for gaps in next couple of hours.

just ran one test of liveTV and hd300 hung up again after a minute of two.
these logs capture it.
Also change consumer.ffmpeg.upload_id_enabled to false, maybe the media server is hanging up on you only when you are watching live.

Unfortunately the log isn't revealing anything that should be significant. All that's happening at least according to what's being logged is the content is being remuxed.
__________________
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; 04-14-2016 at 10:51 AM.
Reply With Quote
  #9  
Old 04-14-2016, 05:37 PM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
Quote:
Originally Posted by cat6man View Post
i'm getting blind.............i see now the difference is the "Trans" between "mpeg" and "Sage" so let me go correct that now

will test for gaps in next couple of hours.

just ran one test of liveTV and hd300 hung up again after a minute of two.
these logs capture it.
update: i made 15 recordings today and not a single gap or warning.
outstanding!!!!

by the way, it seems this was also the cause of problems i was having playing back recordings with skip forward/back acting weird.....family is very pleased now that we can skip ahead/around commercials again

i'll look into updating the properties file next and retest the liveTV.

thanks for the great support
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #10  
Old 04-14-2016, 05:56 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by cat6man View Post
update: i made 15 recordings today and not a single gap or warning.
outstanding!!!!

by the way, it seems this was also the cause of problems i was having playing back recordings with skip forward/back acting weird.....family is very pleased now that we can skip ahead/around commercials again

i'll look into updating the properties file next and retest the liveTV.

thanks for the great support
You're welcome!

OpenDCT can completely rebuild the opendct.properties file if it's missing, so if you ever want to be sure you're on the current defaults, you can just stop the service, rename opendct.properties, then start it again. I wouldn't delete it completely in case somehow things are worse than before you renamed it.

In the future once we finally get to that elusive web interface, there will be a little more work if you do that because I will have it set up to detect everything, but not enable any devices by default similar to how SageTV does 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

Last edited by EnterNoEscape; 04-14-2016 at 06:00 PM.
Reply With Quote
  #11  
Old 04-15-2016, 08:29 AM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
i've made all the suggested changes, and loss of tuner/gaps are a thing of the past.

i still crash the hd300 in less than a minute with live tv.

here is a log from this morning
Attached Files
File Type: txt sagetv_0-3.txt (566.6 KB, 153 views)
File Type: txt opendct.log.3.txt (30.9 KB, 164 views)
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #12  
Old 04-15-2016, 10:04 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by cat6man View Post
i've made all the suggested changes, and loss of tuner/gaps are a thing of the past.

i still crash the hd300 in less than a minute with live tv.

here is a log from this morning
I can't find anything of interest in either one of those logs. The fact that live TV was crashing the HD300 on both the old and new consumer makes me think this is not an OpenDCT issue. I own an HD300 and haven't have seen them crash before on certain types of content. After getting to know the Android miniclient a little bit, I am aware that when you are watching something live TV, SageTV is sending the data to the player as opposed to when you're watching something already recorded, in which case the player pulls from the server. I don't suppose you have more than one HD300 to test with?

You could also try going back to the last 0.3 stable. If you do that, you will need to uninstall the version of 0.4 you have installed, then I would rename opendct.properties to something else. Then install 0.3 stable and see if the problem goes away. I really think the upgrade might have just been a coincidence.
__________________
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
  #13  
Old 04-15-2016, 12:30 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by EnterNoEscape View Post
After getting to know the Android miniclient a little bit, I am aware that when you are watching something live TV, SageTV is sending the data to the player as opposed to when you're watching something already recorded, in which case the player pulls from the server.
This isn't true for the HD300 (and shouldn't be true for the Android Miniclient either). Push mode is always used for any content that is in MPEG-PS or MPEG-TS containers (whether live or recorded). Pull mode is used for everything else. Push mode is also always used for remote placeshifting when it transcodes (since the result is MPEG2-PS).
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #14  
Old 04-15-2016, 12:53 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by Narflex View Post
This isn't true for the HD300 (and shouldn't be true for the Android Miniclient either). Push mode is always used for any content that is in MPEG-PS or MPEG-TS containers (whether live or recorded). Pull mode is used for everything else. Push mode is also always used for remote placeshifting when it transcodes (since the result is MPEG2-PS).
Thanks for correcting me there. I clearly misunderstood what was happening.

The Android miniclient at least does exhibit different playback behavior based on if the content is live or not.
__________________
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; 04-15-2016 at 12:58 PM.
Reply With Quote
  #15  
Old 04-16-2016, 08:15 AM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
could be a buffering or smoothing that the live tv/hd300 case is more sensitive to?

i'm going to do two tests, one where i record a show, then start watching it 30 or 60 seconds later and another with live tv

Q: no else seeing this problem?

edit:
tests show that recording, then watching after 30s works fine.
watching directly give hd300 blank screen within a couple of minutes......perhaps buffer underflow to hd300?
going to check sage.properties and see if there are any parameters to play with
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.

Last edited by cat6man; 04-16-2016 at 09:01 AM.
Reply With Quote
  #16  
Old 04-16-2016, 08:35 AM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
I have never experienced this on my Prime SageTV server or my Infinitv4 SageTV server. Both systems use HD300's with recorded and/or live television.
Reply With Quote
  #17  
Old 04-18-2016, 11:32 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by cat6man View Post
could be a buffering or smoothing that the live tv/hd300 case is more sensitive to?

i'm going to do two tests, one where i record a show, then start watching it 30 or 60 seconds later and another with live tv

Q: no else seeing this problem?

edit:
tests show that recording, then watching after 30s works fine.
watching directly give hd300 blank screen within a couple of minutes......perhaps buffer underflow to hd300?
going to check sage.properties and see if there are any parameters to play with
Buffer underflow won't be the problem...when that happens playback just stalls temporarily and then starts up again. If you post SageTV server logs from when it works and then also from when it doesn't work that may help identify what the actual problem is.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #18  
Old 04-20-2016, 09:04 AM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
Quote:
Originally Posted by Narflex View Post
Buffer underflow won't be the problem...when that happens playback just stalls temporarily and then starts up again. If you post SageTV server logs from when it works and then also from when it doesn't work that may help identify what the actual problem is.

here are a few cases with log files for Sage and Opendct (not working live tv cases)

there are no working live tv cases.
case that works is to record, then begin watching.........will log that next

thanks
Attached Files
File Type: txt opendct.log-4-20.txt (57.4 KB, 129 views)
File Type: zip sagetv_0.txt-4-20.txt.zip (150.5 KB, 128 views)
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #19  
Old 04-20-2016, 09:18 AM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
logs for 'good' case (record, wait ~20s, watch)
Attached Files
File Type: txt opendct.log-4-20-good.txt (9.3 KB, 134 views)
File Type: txt sagetv_0-4-20-good.txt (426.3 KB, 135 views)
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #20  
Old 04-20-2016, 01:23 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
This is very interesting...here's the failure:

Code:
Wed 4/20 10:45:40.776 [Pusher@3ffcb577] Error with MiniPlayer, closing UI: java.io.EOFException
Wed 4/20 10:45:40.776 [Pusher@3ffcb577] java.io.EOFException
Wed 4/20 10:45:40.777 [Pusher@3ffcb577] 	at sage.BufferedFileChannel.read(BufferedFileChannel.java:183)
Wed 4/20 10:45:40.777 [Pusher@3ffcb577] 	at sage.FastMpeg2Reader.read(FastMpeg2Reader.java:987)
Wed 4/20 10:45:40.777 [Pusher@3ffcb577] 	at sage.FastMpeg2Reader.transfer(FastMpeg2Reader.java:880)
Wed 4/20 10:45:40.777 [Pusher@3ffcb577] 	at sage.MiniPlayer.pushBuffer0(MiniPlayer.java:3339)
Wed 4/20 10:45:40.777 [Pusher@3ffcb577] 	at sage.MiniPlayer$1.run(MiniPlayer.java:2076)
Wed 4/20 10:45:40.777 [Pusher@3ffcb577] 	at java.lang.Thread.run(Thread.java:745)
That exception occurs when it's trying to read from the file...but then the file is shorter than is expected. This should NOT be happening, because it checks the length of the file before it does this read. It also isn't relying on any other information (such as asking OpenDCT how many bytes it's recorded)...so this check should be very solid.

The reason it works if you wait 20 seconds is that then there's enough data in the file so it can never get to the end of it....although I would assume that if you waited 20 seconds to start playback, and then skipped forward until you hit live...that you would encounter the same problem. Please verify that's the case, because if not, that's a very important data point.

The only reason I can think this would happen is if OpenDCT is shortening the file length at certain points in time. SageTV assumes that recording files always grow in size and will never be smaller than any size they have had before (during playback only, if you stop and transcode it later, that's fine).

Can the OpenDCT dev weigh in on that point? If you don't think OpenDCT is doing this, then I'll create a JAR file that has more debugging to verify my theory is correct...because I'm wrong sometimes of course.
__________________
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
HDHomeRun Prime - Preventing Tuner-Induced Halts in Recording or Lost Recordings jgsouthard Hardware Support 23 04-29-2023 04:07 PM
Lost tuner functionality? pjpjpjpj SageTV Software 4 03-07-2008 12:17 PM
Lost my a single HDHomeRun tuner mattdcknsn Hardware Support 2 02-01-2008 12:25 PM
Lost 2nd Tuner on terratec cinergy dual tuner michaeldjcox Hardware Support 2 07-10-2007 01:57 AM
Lost Tuner Settings peterjb SageTV Software 2 06-08-2004 05:31 PM


All times are GMT -6. The time now is 05:50 PM.


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