![]() |
|
General Discussion General discussion about SageTV and related companies, products, and technologies. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Extracting Subtitles from TS files
I expect I already know the answer to this
![]() Does anyone know if there is a way to extract the subtitles out of a TS file? I've found lots of utilities that should do it with mpg files. I know the subtitles are included in the TS file as I can see them in VLC but I'd really like to find a way to extract them. I've tried converting the recordings to mpg but they then lose the subtitle stream. Any idea's anyone? |
#2
|
|||
|
|||
ProjectX is best for extracting Teletext and graphic subtitles. CCExtractor is easier for extracting North American closed captions.
Martin |
#3
|
||||
|
||||
I was a bit vague with my post, I'm in New Zealand using DVB-S cards.
I've tried ProjectX but couldn't get it to work. I don't know if it will extract the streams or not. I'll play some more over the next few days and see how I get on. |
#4
|
||||
|
||||
I'm getting somewhere slowly....
The subtitles are stored as teletext pages on page 801. I can extract them to a .sub file in ProjectX, and they are in the format below Quote:
Quote:
Does anyone know if its possible to get the times out of this too? or is what I've extracted the best I can manage? Thanks. |
#5
|
||||
|
||||
Quote:
Actually this is not an error in the stream because TTX subtitles may not carry a PTS (TTX are supposed to be displayed when they come) I think that my recorder would also fail to extract correctly these subtitles... Regards, Stéphane. |
#6
|
||||
|
||||
Thanks for looking at that Stephane.
I'll put this idea at the bottom of the pile and start on a few others.... |
#7
|
||||
|
||||
OK, weathers been rubbish today so I got bored....
After playing around a bit more I got ProjectX to extract a timestamp with the subtitles after unchecking the option "Re-build TTX-PTS from 1st MpgAudio stream" The timestamps were out by 73 seconds for some reason, so I've edited the SRT file with vbscript to correct it. Ill test on a few more files to see if the 73 seconds is consistant or not - once the TV becomes free! ![]() If it is I'll use SJQ to automatically create them after each recording finishes. If its not consistant, I'll put this back to the bottom of the pile again! Last edited by doc; 03-16-2010 at 09:05 PM. |
#8
|
||||
|
||||
Quote:
Just for curiosity, why do you want to extract the subtitles? |
#9
|
||||
|
||||
Quote:
The 'customer' here want a transcript of all the subtitles for archiving purposes. To be honest the extracts I have will do, I was just hoping I could get the timelines correct so that in future you can use them for playback - at some point they may ask the question, but I hope they don't! Last edited by doc; 03-17-2010 at 01:52 PM. |
#10
|
||||
|
||||
Quote:
|
#11
|
||||
|
||||
Can somebody provide a simple explanation what would be required for SageTV to play closed captions when they already exist in stream? I'm not "having a go" StepanieM you've done some great stuff but I cannot see why we should need to use your DVBViewer recorder to control the tuner and have SageTV then use it as a network encoder when SageTV is perfectly capable of doing the tuning and saving the video file.
If DVBviewer can find the captions why can't a SageTV plugin be created that extract the captions during the playback and displays them? I just don't understand why we have to have these round the houses solutions. Especially when apps like DVBViewer apparently have a very high CPU overhead. Doc; I'm in NZ as well so so if you get this sorted you would earn countless WAF points. Its the only thing missing from SageTV as far as I am concerned. We have to resort to real time for shows like "Coro" as the American in our household has understandable issues with the Manchester accent. |
#12
|
||||
|
||||
I think its on the Sage 'to do' list, its just that the list is quite long I'd guess.
The main reason I haven't looked into Stephane's software is because all the freeview channels are on 2 muxes, so with 2 tuner cards and umpteen dvb enhancer virtual tuners you can record all of the freeview channels simultaneously. I was looking at ProjectX as I was hoping to run a standalone exe against each TS file after they've recorded. ProjectX does a good job once you get the ini file correct, but the timestamps are way off for the first ttx page, which makes it pretty useless unless you manually correct them. If you just want the odd file thats fairly easy as long as you can count the seconds and then knock up a script to amend it, but its not really a viable solution. I'm afraid my programming skills got left behind in the 90's when the old mainframe got sent to the landfill and the MOD decided to buy COSH (commercial off the shelf) applications. I'm hoping to get back into programming in the next few months now that I've got time on my hands so if my skills ever develop I'll look into this again. I've done a lot of vbscript'ing lately but I don't call that proper programming. My question for the programmers out there is - which language? I'd hate to spend a few months and a few courses (and pounds) learning one to find out I'd have been better learning another. I also have to consider which would be best for work if I decide to go in that direction again - I'm sick of servers and support work ![]() DT - I live in England - just visiting friends here and go back in 5 weeks. Heading off in the car on my own in a couple of days with a tent. If you don't hear back I've probably been attacked by kiwi's ...... or a 15cm tsunami ! |
#13
|
||||
|
||||
Quote:
Quote:
2) When you ask SageTV to save the subtitles stream: it can mess the recording and SageTV will not play it (I was having terrible issues when doing so) So basically when SageTV make the recording, you have no subtitle in the recording. Moreover, each channel will carry multiple subtitles, so you have to choose which of them you want to display. By using a network recorder you can for each channel specify which sub to extract. This is not the same when you only have the recording file: which subtitle stream should be extracted? As you don't know the channel that where used to make the recording (unless using for instance the web server plugin to ask for it...) Quote:
So if you really need live subtitles dispalyed you should really try it... Regards, Stéphane. |
#14
|
||||
|
||||
Quote:
Regards, Stéphane. |
#15
|
||||
|
||||
Cool, I hadn't realised that. I should have guessed as the XML importer of yours I use is always at least one step ahead of what I want to do
![]() I'll see if I can find time to look into this next week when I get back. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I enable subtitles in DIVX avi files? | nicholsona | SageTV Software | 5 | 12-09-2009 12:22 PM |
Can HD100 display subtitles in non-encrypted dvr-ms files? | logmaster | SageTV Media Extender | 0 | 10-31-2008 11:11 AM |
Subtitles for Divx files | delgrego | SageTV Software | 7 | 03-20-2007 09:56 AM |
Subtitles with MP4 files in Sage? | mike1961 | SageTV Beta Test Software | 9 | 12-02-2006 04:33 PM |
Extracting audio only from a recording | frank2056 | General Discussion | 3 | 09-29-2003 02:50 PM |