How to use sub2srt with Windows

Sub2srt comes with no docs about using it in a Windows environment but it works!

I will explain you how to do. You just need downloading the Perl language compiler and open up a DOS Prompt session. I have been using this method with a WindowsXP Pro installation but I guess it works with every Windows version which supports ActivePerl.


Download sub2srt

First step consists, obviously, in downloading the sub2srt tar.gz compressed file. You find it at http://www.robelix.com/sub2srt .


Install sub2srt

Sub2srt is distributed as a tar.gz compressed file which contains the actual sub2srt program; you can extract the content of the file using WinZIP. Please unzip the content of the file in a directory, I will use here the directory 'c:\programmi\sub2srt'. You will get these files inside:


Download ActivePerl

It's free, you can get it at: http://www.activestate.com . I downloaded the AS Package version.


Install ActivePerl

Simply install ActivePerl running the installer. It will open up a DOS box and ask you some questions. Simply answer using the default answers. We use here the default c:\perl installation directory.


Copy the sub file in the sub2srt directory

Advanced users will change now some PATH environment variables in order to use Perl and Sub2srt directly. I will not do that here because it's out of topic. I will instead teach you how to use the sub2srt perl script in the simplest way I know. Advanced Windows users will change things in order to have more flexibility of course :-)

Well, the next step is to copy the test.sub file (the one we want to convert) into the sub2srt directory.



Open a DOS Session, change directory and convert the file

Simply: Start -> Run -> cmd --> OK



A DOS Prompt windows opens up.
Now you change directory running: cd c:\programmi\sub2srt
And convert test.sub running the command: c:\perl\bin\perl sub2srt test.sub




Now you have a brand new test.srt file.


End of the lesson :-)

Roberto Inzerillo <robicd@gmx.net>