SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-24-2009, 07:47 AM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
SubtitleRender - SRT subtitles in SageClient w/ HWA

SubtitleRender is a DirectShow filter that pushes SRT based subtitles into SageTV. The main benefit versus a filter like VobSub is that this approach does not break hardware acceleration (important for HD h.264/VC-1).

The filter supports switching between up to two subtitle streams (CC1/CC2) if the filter it is connected to implements IAMStreamSelect (i.e. Haali Splitter).

Installation Instructions:

1. Install SageTV 6.5.18+
2. regsvr32 the attached filter
3. Default STV - Mike was nice enough to make a STVi
4. SageMC - install SageMC_6_3_9a_46+
5. If you installed version 1.0.0.1 you must run regsvr32 in the new ax


Thanks to Jeff for providing the necessary documentation and for changing Sage to look for a Line 21 decoder where there shouldn't be one.

1.0.0.2 - 07/01/09
- Change merit to MERIT_PREFERRED+2 to beat out the Internal Script Command Renderer
- Add support for MEDIATYPE_TEXT to connect to Haali when no subtitle is set as default
- Register supported media types when filter is regsvr32
- Select first SRT stream on connect to support when no subtitle is set as default
- Fix deadlock issue when media type changes
- Clear subtitles when OFF is selected
- Fix clearing subtitles when seeking

Known Issues:
- When subtitles are initially turned on, it can take a few seconds for them to show up. I think this is due to samples queueing at the renderer (i.e. the graph is actually a few seconds ahead of what you see).

download
__________________
babgvant.com | @babgvant | Missing Remote

Last edited by babgvant; 07-01-2009 at 08:57 PM.
Reply With Quote
  #2  
Old 06-24-2009, 09:09 AM
skyeclad skyeclad is offline
Sage Aficionado
 
Join Date: Nov 2007
Location: NY DMA
Posts: 441
Would this enable a Sage Client to display subtitles from a .TS file generated through Clown_BD off of a BD disk?
Reply With Quote
  #3  
Old 06-24-2009, 09:27 AM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
It only works with SRT subtitles currently, but I will probably add other text based formats if there is demand.

I've only tested the solution with SRT subs embedded in a MKV, but I would expect it to work with external srt files if a source filter (MPC HC has one) is installed and Sage supports loading the file (I don't know if it does on the PC).
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #4  
Old 06-24-2009, 10:17 AM
Jabroni's Avatar
Jabroni Jabroni is offline
Sage Aficionado
 
Join Date: Mar 2006
Posts: 251
Sounds great...

But for now this will always show the subtitles if present? No way to turn them on/off/toggle between them within the SageTV UI?
__________________
SageTV 7.1.9 / Phoenix
Captures: 1x Genpix Skywalker DVB4Sage / 1x 7500 Prof DVBS2 Tunner DVB4Sage / 1x HD HomeRun / 1x Slingbox M1 / 1x Colossus HD
Extender: 2x HD200 / 1x HD300

Reply With Quote
  #5  
Old 06-24-2009, 10:25 AM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by Jabroni View Post
But for now this will always show the subtitles if present? No way to turn them on/off/toggle between them within the SageTV UI?
That's what step 3 or 4 is meant to address - w/ the added benefit that 2 discrete sub streams can be toggled.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #6  
Old 06-24-2009, 10:34 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Hi Andy,

I'll generate the stvi for you durning my lunch hour later today and post it in this thread.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #7  
Old 06-24-2009, 10:36 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by babgvant View Post
It only works with SRT subtitles currently, but I will probably add other text based formats if there is demand.

I've only tested the solution with SRT subs embedded in a MKV, but I would expect it to work with external srt files if a source filter (MPC HC has one) is installed and Sage supports loading the file (I don't know if it does on the PC).
You don't need the filter if the SRT subs are external. The latest Beta/RC of SageTV handles those for all types of clients already.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #8  
Old 06-24-2009, 10:44 AM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by MeInMaui View Post
Hi Andy,

I'll generate the stvi for you durning my lunch hour later today and post it in this thread.

Aloha,
Mike
Thanks! Every time I tried to export my change I ended up w/ too much (broke the STV) or too little (didn't do anything).

Your implementation is better (and not just notepad thing) because it will work for files that aren't MKV.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #9  
Old 06-24-2009, 10:46 AM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by Narflex View Post
You don't need the filter if the SRT subs are external. The latest Beta/RC of SageTV handles those for all types of clients already.
Very slick! <strike>Does it implement IAMStreamSelect to switch streams?</strike> nm, if it already works there's no point to loading this filter
__________________
babgvant.com | @babgvant | Missing Remote

Last edited by babgvant; 06-24-2009 at 11:13 AM.
Reply With Quote
  #10  
Old 06-24-2009, 01:13 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Hi Andy,

Here's the import for the default STV.

Aloha,
Mike
Attached Files
File Type: stvi Show_CC_for_all_VideoFiles.stvi (2.0 KB, 442 views)
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #11  
Old 06-24-2009, 01:16 PM
Clift Clift is offline
Sage Expert
 
Join Date: Aug 2008
Location: North Carolina
Posts: 555
This doesn't work for extenders, correct?
__________________
Server:W7 Ultimate, SageTV 7.1.9
Capture Devices: HVR-2250, 2x HD PVR 1212
Clients:
1x STX-HD100
3x STP-HD200
@cliftpompee
Reply With Quote
  #12  
Old 06-24-2009, 01:21 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by Clift View Post
This doesn't work for extenders, correct?
You don't need it on the HD200 (not sure about the other ones). It already supports SRT embedded in MKV.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #13  
Old 06-24-2009, 01:21 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by MeInMaui View Post
Hi Andy,

Here's the import for the default STV.

Aloha,
Mike
Thanks Mike.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #14  
Old 06-24-2009, 01:24 PM
Clift Clift is offline
Sage Expert
 
Join Date: Aug 2008
Location: North Carolina
Posts: 555
Quote:
Originally Posted by babgvant View Post
You don't need it on the HD200 (not sure about the other ones). It already supports SRT embedded in MKV.
I must be doing something wrong because some of my MKV's do not display the option for CC, even though they are embedded.

I have to double check.
__________________
Server:W7 Ultimate, SageTV 7.1.9
Capture Devices: HVR-2250, 2x HD PVR 1212
Clients:
1x STX-HD100
3x STP-HD200
@cliftpompee
Reply With Quote
  #15  
Old 07-01-2009, 02:54 PM
teddykgb teddykgb is offline
Sage User
 
Join Date: Mar 2009
Posts: 20
Has anyone actually gotten this to work? I muxed in an .srt file on the movie Defiance (just an example), which is an .mkv file. The subtitles show on Media Player Classic. I have the menu options when watching on the HD200 on extender mode, but even when turned on they don't show in Sage. I am not using the plugin that is referenced, it looks as though it should just work in the latest beta.

Any ideas?

Last edited by teddykgb; 07-01-2009 at 02:59 PM.
Reply With Quote
  #16  
Old 07-01-2009, 03:08 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by teddykgb View Post
Has anyone actually gotten this to work? I muxed in an .srt file on the movie Defiance (just an example), which is an .mkv file. The subtitles show on Media Player Classic. I have the menu options when watching on the HD200 on extender mode, but even when turned on they don't show in Sage. I am not using the plugin that is referenced, it looks as though it should just work in the latest beta.

Any ideas?
Depending on how you create the mkv this version may not work (I mux the SRT as a default track which changes how Haali presents them).

I'm working on a new rev that takes a more flexible approach, should be ready w/in the next couple days.

AFAIK this filter is the only way to get embedded SRT working, if the files are external they should work w/o doing anything.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #17  
Old 07-01-2009, 03:21 PM
teddykgb teddykgb is offline
Sage User
 
Join Date: Mar 2009
Posts: 20
Thank you for the prompt response! I (stupidly) wasn't aware that they even worked without embedding them.

Which brings up a follow up question, how on earth do you ever find a srt that is synced to the audio?
Reply With Quote
  #18  
Old 07-01-2009, 03:30 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Haven't noticed a problem with that when ripping (w/ eac3to) or converting from ATSC.

I didn't know external files worked on the PC until Jeff mentioned it a few posts back.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #19  
Old 07-01-2009, 03:31 PM
teddykgb teddykgb is offline
Sage User
 
Join Date: Mar 2009
Posts: 20
I'm sorry, I probably didn't ask that very intelligently. I ripped Defiance from a blu-ray and then was trying to add back an srt (off of subscene) after the fact.

Can I assume the easier way would be to rip the srt from the blu-ray? I've never done that.
Reply With Quote
  #20  
Old 07-01-2009, 03:34 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
I use eac3to to extract the sup from the BD, then suprip to OCR into SRT.
__________________
babgvant.com | @babgvant | Missing Remote
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
Subtitle (srt) support? 1oser SageTV HD Theater - Media Player 19 01-24-2010 08:59 PM
Does it play .srt subtitles? JParedis SageTV Customizations 7 08-18-2008 02:34 PM
Q: SageClient mode w/ Sage Service not saving into SageClient.properties laurenglenn SageTV Software 2 06-17-2007 09:22 PM
srt subtitles (again...) klauslauritsen SageTV Media Extender 3 05-12-2007 07:48 AM
Sub titles in .srt files? tankd0g SageTV Software 3 01-25-2006 07:09 PM


All times are GMT -6. The time now is 12:54 AM.


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