View Full Version : HDTV subtitles ripper
cfsmp3
8th March 2007, 07:53
Hi,
I've written a small proggie that extracts closed captions from .ts files (which you can get more many sites nowadays, or rip yourself).
Text extraction is perfect; timing still leaves a bit to be desired.
Anyway, extraction is quite fast (less that one minute for a 3 Gb .ts file) and there are builds for linux and windows.
I've submitted it to sourceforge but until it gets approved, if someone feels to betatest it a bit let me know.
BTW the program (originally a port from McPoodle's scc_rip, to which I added the HDTV extraction part) dumps the raw captions. After that you can process them with SCC tools to generate the final .srt, or edit captions, etc.
And where is the "proggie"?
enjoy,
Mtz
cfsmp3
9th March 2007, 15:58
And where is the "proggie"?
Mtz
As I said, feel free to contact me if you want to betatest it.
Anyway the project has been created in sourceforge already, so as soon as I write a readme and prepare the package it will be available for anyone to try.
Suchy
9th March 2007, 18:17
I understand, that when You finish it (stable relase), this soft will be shared here?
manusse
9th March 2007, 19:03
You can also try to open the CC raw file with SubtitleCreator.
Cheers
Manusse
Eorl
3rd April 2007, 21:52
Would it also be possible to use your knowledge on subtitles in .ts files to invert the proces, i.e. to merge the contents of a .srt file with the .ts file to generate a subbed .ts file?
(needless to say, I'm currently searching for a way to add subs to a .ts file. it doesn't matter if it is added to the file, or just rendered during playback)
cfsmp3
9th April 2007, 19:18
It is possible, but obviously it's a totally different thing. For starters the MPEG handling would have to be much much more comprehensive than the one my tool does .
Eorl
9th April 2007, 22:30
Well, I don't mind a challenge :)
But I assume you have already done some research on the format in which the subtitles are encoded in the transport stream, and you probably know where I can find a specification of the video and subtitles in typical transport streams.
With enough information I will be able to write my own tool (or proggie ;)), so if you know anything that might help me, please post it. I would also like to look through your code, I may be able to learn some indepth info about transport streams, so could you post a link to the sf project?
cfsmp3
10th April 2007, 09:07
But I assume you have already done some research on the format in which the subtitles are encoded in the transport stream, and you probably know where I can find a specification of the video and subtitles in typical transport streams.
The specs are in EIA-708. There is a decent wikipedia entry someone wrote, which is quite a good start. The official specs are not free, though.
With enough information I will be able to write my own tool (or proggie ;)), so if you know anything that might help me, please
A proggie is a bunch of lines put together :-) What you want to write is much more serious... anyway before you get to it, do some research, tools already exist for want you want (I believe there are not free, though).
To put things in perspective, my tool is basically a scanner. I don't need to bother much about MPEG details, except for the part related to the captions (plus basic frame reordering).
Your program will need to insert data within the stream, which is a totally different thing.
post it. I would also like to look through your code, I may be able to learn some indepth info about transport streams, so could you post a link to the sf project?
http://sourceforge.net/projects/ccextractor
I have a new RC though, which changes a few things, so you may want to wait a couple of days.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.