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
  #21  
Old 12-05-2016, 01:05 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Have you checked to see if this works probably with SageTV 7? I'd expect the same behavior in either version since we didn't change anything in the native code on Windows at all.

My main guess here is some kind of video driver problem at this point....if you have another graphics card lying around, give that a try (or also try a different video card driver).
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #22  
Old 12-11-2016, 06:47 PM
SDeGonge's Avatar
SDeGonge SDeGonge is offline
Sage Aficionado
 
Join Date: Jun 2009
Location: NY
Posts: 253
Same problem here

FYI I'm having the exact same problem. Just upgraded from V7 to V9. V7 did not have this problem. Now, while watching live TV it will freeze on the :30 and 1:00 transition, or when the program changes (not exactly sure which). Wouldn't expect it to be the video card since all was well with V7. Could be codec/driver i guess. BTW the recording continues but the screen just freezes. If I skip fwd or back it will sync up and all is good.
__________________
SageTV User Since 2009
Server Hardware: AMD FX6100, 6 Cores, 3.3GHz, 8GB RAM, TA970XE MB, 3TB HD, HVR-2250, HD-PVR, nVidia 9600GT 512MB
Server Software: SageTV 9, Windows 10 64bit, EventGhost
Client Hardware: HD200 x2, INT-422-3 & WR7 Remote
Service Provider: Cablevision (QAM to 2250, SamsungBox to HDPVR)
Reply With Quote
  #23  
Old 12-12-2016, 03:36 PM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Same here, windows clients, live tv transitions. I don't watch live TV, but my wife says it only started a few weeks ago (ish).
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #24  
Old 12-12-2016, 06:34 PM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
I've been playing about with this a bit. Watching live TV for me has a long pause after pressing play on a channel on the client, around 45 seconds, and after video starts playing the 45 seconds is in the buffer ready to play (green section of the seek bar). Obviously this is a real PITA to the people in the house who watch live TV, who are rather vocal.

This happens again when a new program starts, 45 seconds then video in the buffer. HOWEVER, if I turn off the option for "Always Tune Channel" the transition from program to program is instant, no problem.

So the issue seems to be the huge video buffer building up. This couldn't have been an issue when you first put SDEPG in the core, as I would have gone crazy checking all the channels.

Logs here, client and server, which should show the long delay tuning "Bad Robots" on ch 18 4MUSIC, then a smooth switchover to the next program.

These problems don't exist using Placeshifter, any downside to using Placeshifter instead?
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #25  
Old 12-13-2016, 05:39 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Does this still happen if you are watching the most recent part of the recording? I noticed this last year when people were having problems with the seamless transitions on the client and they ended up just changing fast_network_encoder_switch=true to false. The transitions only seemed to work if you were as close as possible to the end of the recording when the transition needed to happen. Otherwise, you would get the end of the recording and the transition would just hang. It's very reproducible, but I could never figure out why it was happening.
__________________
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
  #26  
Old 12-13-2016, 05:48 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
In my case, I'm not using network encoders so don't even have that switch as far as I can see. See my message above, it seems to be a delay between tuning and presenting the video file in the client.
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #27  
Old 12-13-2016, 09:03 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by rickgillyon View Post
In my case, I'm not using network encoders so don't even have that switch as far as I can see. See my message above, it seems to be a delay between tuning and presenting the video file in the client.
Sorry, I missed that part. In Sage.properties, you should have a global setting. Change fast_mux_switch=true to false.
__________________
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
  #28  
Old 12-13-2016, 09:23 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Quote:
Originally Posted by EnterNoEscape View Post
Sorry, I missed that part. In Sage.properties, you should have a global setting. Change fast_mux_switch=true to false.
Thanks, have already tried that, but I'll switch it again. Yep, no change.

And as to my message and logs above, on one client the program change is smooth with "always tune" turned off (but still slow to start first time), on other clients the pause is still there on program change.

Wife confirms only an issue a few weeks, I wonder if it's related to me setting encode_digital_tv_as_program_stream to false as advised here:
https://forums.sagetv.com/forums/showthread.php?t=63729

Will try when the house is empty!
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #29  
Old 12-13-2016, 10:07 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by rickgillyon View Post
Thanks, have already tried that, but I'll switch it again. Yep, no change.

And as to my message and logs above, on one client the program change is smooth with "always tune" turned off (but still slow to start first time), on other clients the pause is still there on program change.

Wife confirms only an issue a few weeks, I wonder if it's related to me setting encode_digital_tv_as_program_stream to false as advised here:
https://forums.sagetv.com/forums/showthread.php?t=63729

Will try when the house is empty!
Yes, actually it very likely does have to do with that. I think I remember the behavior being different between PS and TS files on the client in regards to live TV.
__________________
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
  #30  
Old 12-13-2016, 10:36 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Quote:
Originally Posted by EnterNoEscape View Post
Yes, actually it very likely does have to do with that. I think I remember the behavior being different between PS and TS files on the client in regards to live TV.
So currently I have a choice of good live TV or ability to watch HD on the Android clients - not both. Ouch.

I'd replace the lot and use Android clients, but a lot of the TVs are old with no HDMI...

Getting a lot of these errors too:
Code:
Tue 12/13 16:31:30.525 [AWTThreadWatcher-SAGETV_PROCESS_LOCAL_UI@37675d] EventThread-SAGETV_PROCESS_LOCAL_UI Hang Detected - hang time = 193574 UILocker=null
Tue 12/13 16:31:30.867 [AWT-EventQueue-0@1f99aa6] Calling GraphCreated for the PluginHandler
Tue 12/13 16:31:30.867 [AWT-EventQueue-0@1f99aa6] Done calling GraphCreated for the PluginHandler
Tue 12/13 16:31:30.867 [AWT-EventQueue-0@1f99aa6] NATIVE RenderAudio called stream=1
Tue 12/13 16:31:30.867 [AWT-EventQueue-0@1f99aa6] AUDIO not rendered. No source pin found!
Tue 12/13 16:31:30.868 [AWT-EventQueue-0@1f99aa6] NATIVE RenderVideo called
Tue 12/13 16:31:30.868 [AWT-EventQueue-0@1f99aa6] Exception from line: 791
Tue 12/13 16:31:30.868 [AWT-EventQueue-0@1f99aa6] Built:sage.PlaybackException: ERROR (-4,0x80004005): There was a problem rendering the video portion of the content for playback. errCode=-4 nativeErrCode=-2147467259
Tue 12/13 16:31:30.869 [AWT-EventQueue-0@1f99aa6] VideoFrame had an error loading the file. It must abort the file load.
Tue 12/13 16:31:30.870 [AWT-EventQueue-0@1f99aa6] Tearing down playback graph
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #31  
Old 12-13-2016, 01:11 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
The main delay in that log is from the DirectShow Demux Filter (something we wrote); likely relating to it being Transport Stream instead of Program Stream (although I'm surprised it's THAT bad). I'm surprised you need that for Android...are you using IJKPlayer or ExoPlayer? I wrote the Program Stream demux for ExoPlayer...so it *should* be working fine.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #32  
Old 12-13-2016, 01:14 PM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
No, this is a windows client. The Android client is fine.
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #33  
Old 12-13-2016, 01:20 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by rickgillyon View Post
No, this is a windows client. The Android client is fine.
Then what's the problem with having it record everything in Program Stream?
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #34  
Old 12-13-2016, 01:24 PM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Quote:
Originally Posted by Narflex View Post
Then what's the problem with having it record everything in Program Stream?
See here: https://forums.sagetv.com/forums/showthread.php?t=63729

Summary: the HD recordings don't play back well on Android (or in many programs other than Sage). According to EnterNoEscape:
Quote:
While I can see that there should be an audio track in that video, I only have a few programs that can play it back with the audio working.

The problem as I see it is that the file is an MPEG-PS file and that container doesn't support H.264 which the video definitely is
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #35  
Old 12-13-2016, 02:19 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by rickgillyon View Post
See here: https://forums.sagetv.com/forums/showthread.php?t=63729

Summary: the HD recordings don't play back well on Android (or in many programs other than Sage). According to EnterNoEscape:
Quote:
Originally Posted by Narflex View Post
Then what's the problem with having it record everything in Program Stream?
We covered this situation back when I exposed the built in remuxer so that it it could be used by the media server. It was agreed that PS was preferred, but that TS was needed if the video stream is H.264. When H.264 is encoded into a PS by SageTV, very few programs beyond the SageTV client can even work with the file.
__________________
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
  #36  
Old 12-13-2016, 03:38 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
I'm doing some testing in this thread to see if I can re-create this issue.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #37  
Old 12-14-2016, 01:14 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
We covered this situation back when I exposed the built in remuxer so that it it could be used by the media server. It was agreed that PS was preferred, but that TS was needed if the video stream is H.264. When H.264 is encoded into a PS by SageTV, very few programs beyond the SageTV client can even work with the file.
Yeah....OK...now I remember. The actual problem with the huge startup delay seems to lie in the SageTV MpegDeMux DirectShow filter....and AFAIK there's nobody that's working on that code at all currently so I'm not sure what can be done about that issue.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #38  
Old 12-15-2016, 02:39 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Narflex View Post
Yeah....OK...now I remember. The actual problem with the huge startup delay seems to lie in the SageTV MpegDeMux DirectShow filter....and AFAIK there's nobody that's working on that code at all currently so I'm not sure what can be done about that issue.
Out of curiosity, what is the sagetv demux doing that can't be done with a more off-the-shelf demux at this point?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #39  
Old 12-15-2016, 11:54 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by Fuzzy View Post
Out of curiosity, what is the sagetv demux doing that can't be done with a more off-the-shelf demux at this point?
I'm not sure what off the shelf options there are currently...but back in the day, there wasn't anything that was part of DirectShow that handled MPEG2 demuxing properly so we were required to write our own (I don't even think it had any kind of DirectShow filter for this when we started SageTV, there was a sample in the old DXSDK which is what we based our filter off which is why the code for it is in third_party/Microsoft)

There is a registry setting that can be used to change the Demux filter for MPEG2 PS/TS content. It requires the GUID for the DShow Filter to be set at:

HKLM\Software\Frey Technologies\Common\DirectShow\CustomDemuxGuid

The code for this option is in native/dll/DShowPlayer-2/CPlayerData.cpp
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #40  
Old 12-15-2016, 06:34 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I was just thinking, with the program being open sourced now, we might be able to look using something more mature and capable, like Haali, or LAV, unless there are special sage specific parameters being passed in. I think the LAV splitter is based on ffmpeg, so it should be pretty capable and stable.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
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
Why does Live TV Freeze after end of each show? sportera SageTV Software 14 06-23-2007 05:26 PM
Pressing watch live tv make placeshifter to freeze talonmike SageTV Placeshifter 3 03-10-2007 10:45 AM
Video freeze on FF past end of show (2.2.8/PVR150) a_b SageTV Software 0 09-27-2005 07:32 PM
livetv show change freeze Glycerine SageTV Beta Test Software 1 02-23-2005 05:36 PM
Client freeze on new show Grasshopper SageTV Software 2 06-06-2004 08:35 PM


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


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