PDA

View Full Version : Converting Srt to RAW file


dgwak
17th January 2003, 16:06
How do I convert subrip srt file to a RAW file?

CCParser does exactly opposite...

McPoodle
20th January 2003, 06:04
You lose all the positioning information when you create the .srt file, so although I am working on such a tool, it will be a long time before I'm finished with it.

In the meantime, if you use VobSub (like every DVD tool I know anything about, available for download from Doom9) instead of SubRip, it will automatically create a file called VTS_01_0.sub.cc.raw (slightly different name for different VTS's, of course). I've cobbled together a tool to convert this file both into a .bin file (like you'd get from GraphEdit if you ripped the captions yourself) and an .scc file. The advantage of this method is that it is faster than using GraphEdit to play the entire movie. I was planning to release this vobsub2scc tool with my next big release of SCC_TOOLS, but in the meantime you can download it directly from here (http://www.geocities.com/mcpoodle43/SCC_TOOLS/vobsub2scc.exe) (change the above from vobsub2scc.exe to vobsub2scc.pl to download the Perl source file). Run the file with no arguments to see how to use it; in general, the only argument you need is "VTS_01_0.sub.cc.raw", which will create the files "VTS_01_0.bin" and "VTS_01_0.scc".

dgwak
21st January 2003, 02:09
Universal Studio produces DVDs which do not have regular Closed Captioning like the rest. When you run VobSub on their DVDs (i.e. ET) you get no xxx.sub.cc.raw files, unfortunately.

That is the reason why I am trying to find a way to convert subtitles I find on their DVDs to scc files.

Can you think of any way of doing that?

McPoodle
4th January 2004, 09:41
I thought I'd post an update for anyone reading this thread in the future. I've finally written a tool to translate SCC into Subrip format; download CCASDI.EXE from here (http://www.geocities.com/mcpoodle43/SCC_TOOLS/ccasdi.exe) and run it with the option -s followed by the name of the SCC file. You can also convert into a number of other subtitle formats if you provide a final argument of the file to create (the program is smart enough to use the extension you provide to figure out the type). See the full documentation for this program here (http://www.geocities.com/mcpoodle43/SCC_TOOLS/DOCS/SCC_TOOLS.HTML#ccasdi).