SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-26-2020, 12:00 AM
gordyp's Avatar
gordyp gordyp is offline
Sage User
 
Join Date: Jun 2008
Location: St. Paul, MN
Posts: 59
How to Re-Enable Subtitles?

I just rebuilt my Sage server because of some issues I was having with Windows, and somehow I broke the function that enables subtitles, as .srt files are not being created. I can extract them manually but that is a pain to do so for every recording. On the plus side comskip is working now on channels that it had stopped working on (I thought it was an Xfinity thing as discussed previously), but I really want the subtitles. I'll even take SyFy's jumbling of the Spanish and English subtitles at this point...

Thanks!
__________________
SageTV Server:
i5-3470, 24GB, Radeon R7-240 2GB, 12TB, Win10 Pro 20H2, HDHR PRIME for Xfinity with OpenDCT 0.5.32; HDHR Connect Duo for OTA, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
SageTV Client:
i5-6600K, 16GB, GeForce GT730 2GB, Win10 Pro 20H2, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
Reply With Quote
  #2  
Old 06-26-2020, 05:58 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Maybe it was a setting in Comskip since you mentioned using Comskip.
Way back in my mind, I think I recall there might be a parm setting for Comskip to export srt files?

Just a guess
Reply With Quote
  #3  
Old 06-26-2020, 04:28 PM
gordyp's Avatar
gordyp gordyp is offline
Sage User
 
Join Date: Jun 2008
Location: St. Paul, MN
Posts: 59
Quote:
Originally Posted by graywolf View Post
Maybe it was a setting in Comskip since you mentioned using Comskip.
Way back in my mind, I think I recall there might be a parm setting for Comskip to export srt files?

Just a guess
Thanks, but comskip had not been working on channels that it used to be working on for some time (i.e. stopped working on CW, but has always worked on CBS - but is now working again on CW!). Just to be sure I went through the comskip menus just now to be sure. I am fairly certain that it is a setup issue that I am having a brain cramp over - it's driving me nuts, and I have been using Sage for like 15 years now.
The lack of .srt file extraction is a more recent issue...
__________________
SageTV Server:
i5-3470, 24GB, Radeon R7-240 2GB, 12TB, Win10 Pro 20H2, HDHR PRIME for Xfinity with OpenDCT 0.5.32; HDHR Connect Duo for OTA, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
SageTV Client:
i5-6600K, 16GB, GeForce GT730 2GB, Win10 Pro 20H2, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
Reply With Quote
  #4  
Old 06-26-2020, 05:36 PM
Denali Denali is offline
Sage Advanced User
 
Join Date: Aug 2008
Location: South Florida
Posts: 169
Comskip.ini

output_srt=1
__________________
HTPC: Gigabyte GA-Z170XP-SLI, I7-6700, 16GB, Windows 10 Pro x64, Hauppauge HVR-1600, WinTV-dualHD, Colossus 2, Samsung 850 EVO 120GB, Seagate 3TB, WD 3TB, 3TB, 5TB, Java v1.8.0_231, SageTVx64 v9.2.1.826, Samsung UN60EH6003F, Dish ViP222K, ViewHD 1x2 HDMI Splitter.
Reply With Quote
  #5  
Old 06-30-2020, 07:57 PM
gordyp's Avatar
gordyp gordyp is offline
Sage User
 
Join Date: Jun 2008
Location: St. Paul, MN
Posts: 59
Quote:
Originally Posted by Denali View Post
Comskip.ini

output_srt=1
Thanks, that got the .srt files to be created, but they are coming out as gibberish. Running the .ts files through CCExtractor produces clean files, so the issue is not with the embedded subtitles. Previously, I was getting clean files created as <filename>.CC1.srt and .CC2.srt, but only one of the files (CC1) had valid subtitling. More tweaking of the comskip.ini file required, maybe?
__________________
SageTV Server:
i5-3470, 24GB, Radeon R7-240 2GB, 12TB, Win10 Pro 20H2, HDHR PRIME for Xfinity with OpenDCT 0.5.32; HDHR Connect Duo for OTA, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
SageTV Client:
i5-6600K, 16GB, GeForce GT730 2GB, Win10 Pro 20H2, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
Reply With Quote
  #6  
Old 06-30-2020, 08:11 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by gordyp View Post
Thanks, that got the .srt files to be created, but they are coming out as gibberish. Running the .ts files through CCExtractor produces clean files, so the issue is not with the embedded subtitles. Previously, I was getting clean files created as <filename>.CC1.srt and .CC2.srt, but only one of the files (CC1) had valid subtitling. More tweaking of the comskip.ini file required, maybe?
Are you using the Donators Comskip ... if not you should it handles H264 and the SRT files are great.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #7  
Old 06-30-2020, 08:21 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by gordyp View Post
I just rebuilt my Sage server because of some issues I was having with Windows, and somehow I broke the function that enables subtitles, as .srt files are not being created. I can extract them manually but that is a pain to do so for every recording. On the plus side comskip is working now on channels that it had stopped working on (I thought it was an Xfinity thing as discussed previously), but I really want the subtitles. I'll even take SyFy's jumbling of the Spanish and English subtitles at this point...

Thanks!
If You are using OPENDCT maybe you had it set to extract CC.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #8  
Old 07-01-2020, 11:51 PM
gordyp's Avatar
gordyp gordyp is offline
Sage User
 
Join Date: Jun 2008
Location: St. Paul, MN
Posts: 59
Quote:
Originally Posted by nyplayer View Post
If You are using OPENDCT maybe you had it set to extract CC.
Thank you for the reminder - I was and I did, that is what was producing the CC1 and CC2 .srt files. I had saved off the old SageTV install folder, but forgot about the \ProgramData\OpenDCT\config\opendct.properties and .backup files. Thinking about it, I believe there were other changes I had made that I will have to try to re-create... :-(
__________________
SageTV Server:
i5-3470, 24GB, Radeon R7-240 2GB, 12TB, Win10 Pro 20H2, HDHR PRIME for Xfinity with OpenDCT 0.5.32; HDHR Connect Duo for OTA, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
SageTV Client:
i5-6600K, 16GB, GeForce GT730 2GB, Win10 Pro 20H2, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
Reply With Quote
  #9  
Old 07-02-2020, 07:27 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by gordyp View Post
Thank you for the reminder - I was and I did, that is what was producing the CC1 and CC2 .srt files. I had saved off the old SageTV install folder, but forgot about the \ProgramData\OpenDCT\config\opendct.properties and .backup files. Thinking about it, I believe there were other changes I had made that I will have to try to re-create... :-(
Can you post what you do to make it work ? When you get it to work.

Thanks
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #10  
Old 07-08-2020, 06:38 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by gordyp View Post
Thank you for the reminder - I was and I did, that is what was producing the CC1 and CC2 .srt files. I had saved off the old SageTV install folder, but forgot about the \ProgramData\OpenDCT\config\opendct.properties and .backup files. Thinking about it, I believe there were other changes I had made that I will have to try to re-create... :-(
Once you enable cc to true you need to set the settings below also.

consumer.ffmpeg.upload_id_enabled=false
consumer.raw.upload_id_enabled=false
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #11  
Old 07-17-2020, 11:36 PM
gordyp's Avatar
gordyp gordyp is offline
Sage User
 
Join Date: Jun 2008
Location: St. Paul, MN
Posts: 59
Quote:
Originally Posted by nyplayer View Post
Once you enable cc to true you need to set the settings below also.

consumer.ffmpeg.upload_id_enabled=false
consumer.raw.upload_id_enabled=false
Thanks again. I have now got the CC1 and CC2 files being created, but I might have over-corrected; I now have subtitles showing on the screen on recordings whether I enable them or not. If I enable subtitles through the menu, I then have two sets of subtitles showing at times; the 'enabled' subtitles are (mostly) in sync with the recording. The un-enabled ones are wildly out of sync, and seem to repeat themselves in loops, sometimes from the previous program. I removed the output_srt=1 from comskip.ini that someone had previously suggested adding, as it was not having an effect one way or the other. I have seen other threads where others have reported 'unmanaged' subtitles, but those all seem to be related to .mkv recordings. Open to suggestions. I have attached a screenshot FWIW. Thanks!
Attached Images
File Type: jpg 2020-07-18 00_29_42-Greenshot.jpg (99.8 KB, 159 views)
__________________
SageTV Server:
i5-3470, 24GB, Radeon R7-240 2GB, 12TB, Win10 Pro 20H2, HDHR PRIME for Xfinity with OpenDCT 0.5.32; HDHR Connect Duo for OTA, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
SageTV Client:
i5-6600K, 16GB, GeForce GT730 2GB, Win10 Pro 20H2, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
Reply With Quote
  #12  
Old 07-18-2020, 08:45 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by gordyp View Post
Thanks again. I have now got the CC1 and CC2 files being created, but I might have over-corrected; I now have subtitles showing on the screen on recordings whether I enable them or not. If I enable subtitles through the menu, I then have two sets of subtitles showing at times; the 'enabled' subtitles are (mostly) in sync with the recording. The un-enabled ones are wildly out of sync, and seem to repeat themselves in loops, sometimes from the previous program. I removed the output_srt=1 from comskip.ini that someone had previously suggested adding, as it was not having an effect one way or the other. I have seen other threads where others have reported 'unmanaged' subtitles, but those all seem to be related to .mkv recordings. Open to suggestions. I have attached a screenshot FWIW. Thanks!
There is a subtitle debugging mode you can enable that will somewhat explode your SageTV logs, but might provide an inkling about what's happening. I believe the property is debug_subtitles. You just need to stop SageTV, change that to true, then start it again. When you're playing a video, it will dump all the text as it's decoded into the logs.

It might also provide some insight if you start watching live and skip back a few seconds to see if the issue corrects itself. If that's the case, it's possible we're seeing some kind of timing issue.
__________________
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 07-25-2020, 02:43 AM
gordyp's Avatar
gordyp gordyp is offline
Sage User
 
Join Date: Jun 2008
Location: St. Paul, MN
Posts: 59
Quote:
Originally Posted by EnterNoEscape View Post
There is a subtitle debugging mode you can enable that will somewhat explode your SageTV logs, but might provide an inkling about what's happening. I believe the property is debug_subtitles. You just need to stop SageTV, change that to true, then start it again. When you're playing a video, it will dump all the text as it's decoded into the logs.

It might also provide some insight if you start watching live and skip back a few seconds to see if the issue corrects itself. If that's the case, it's possible we're seeing some kind of timing issue.
After more experimenting, I think I have a better understanding of what is happening, but not as to the cause.

To ENE's suggestions:

- Took me a little time to figure out that the debug_subtitles property needs to be set on the client and not the server :-) but it only ever shows one set of subtitles even when there are overlapping ones during that time period;

- Skipping back playback did not correct the issue; this is how I found that the subtitle file was replaying from the beginning (see next) -

What appears to be happening is that Sage is restarting the CC1.srt file from the beginning, whether the recording is actually started from the beginning, restarted, or fast-forwarded, and even whether subtitles are enabled or not. Enabling the subtitles from the Sage menu displays subtitles that play properly and display as expected, but superimposed over what is already being improperly displayed, per the previous screenshot. I normally use ffdshow as my decoder, but I also tried LAV and the default decoders and there was no difference in the behavior.

Opening the file in a different player (in this case MPC-BE), it automatically picked up the CC1.srt file and displayed it properly and in sync. It seems like Sage is trying to use two different engines to render the subtitles - one is detecting the presence of the CC1.srt file and displaying it by default, and restarts itself from the beginning with any interruption of playback - and the other one works only when enabled, (mostly) in sync, and as expected. Changing the .srt file extensions to something else caused them to not be displayed and Sage did not have the option to enable them, as expected.
__________________
SageTV Server:
i5-3470, 24GB, Radeon R7-240 2GB, 12TB, Win10 Pro 20H2, HDHR PRIME for Xfinity with OpenDCT 0.5.32; HDHR Connect Duo for OTA, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
SageTV Client:
i5-6600K, 16GB, GeForce GT730 2GB, Win10 Pro 20H2, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
Reply With Quote
  #14  
Old 07-28-2020, 12:25 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Interesting. I worked on that piece a long time ago so we could read SRT files during live recordings to work around CC being removed during live transcoding. I wonder if anyone made changes to that code recently, because I do not recall anyone having the issue you're describing.
__________________
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
  #15  
Old 07-28-2020, 08:12 PM
gordyp's Avatar
gordyp gordyp is offline
Sage User
 
Join Date: Jun 2008
Location: St. Paul, MN
Posts: 59
Quote:
Originally Posted by EnterNoEscape View Post
Interesting. I worked on that piece a long time ago so we could read SRT files during live recordings to work around CC being removed during live transcoding. I wonder if anyone made changes to that code recently, because I do not recall anyone having the issue you're describing.
Well, I finally figured out the issue - DirectVobSub was installed (I believe) as part of MPC-BE, and that was where the additional subtitles were coming from. I just happened to notice a green arrow in my systray (I have a *lot* of icons in my systray, ), and once I removed it all was well.

Now I just need to know if there is a way to specify CC1 as the default language (Sage always grabs CC2 even though the files are empty) and I will be a happy camper. Thanks to everyone for their assistance!
__________________
SageTV Server:
i5-3470, 24GB, Radeon R7-240 2GB, 12TB, Win10 Pro 20H2, HDHR PRIME for Xfinity with OpenDCT 0.5.32; HDHR Connect Duo for OTA, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
SageTV Client:
i5-6600K, 16GB, GeForce GT730 2GB, Win10 Pro 20H2, Java: 64-bit 1.8.0_271, SageTV x64 9.2.2.903
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
On Sage v7, can't enable subtitles with m2ts files kbyrd SageTV Beta Test Software 8 07-14-2010 03:38 PM
How do I enable subtitles in DIVX avi files? nicholsona SageTV Software 5 12-09-2009 12:22 PM
Subtitles Default to Enable Taddeusz SageMC Custom Interface 0 04-10-2009 07:20 AM
Enable Firefly electricd7 Hardware Support 2 04-05-2005 07:37 PM
250 + 350 : Can't enable OSD jman SageTV Software 4 12-21-2003 12:43 PM


All times are GMT -6. The time now is 11:56 AM.


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