Open source command line subtitle converter [closed]

Are there any open source, command line, subtitle converters - preferably for Linux?


Solution 1:

You can try FFmpeg (great tool !) :

$ ffmpeg -i file.srt file.vtt

Solution 2:

very simple and effective oneliner i use to convert subtitles:

for i in *.ass ; do ffmpeg -i "$i" "$i.srt" ; done

just change ass and srt according to your needs.

Solution 3:

Subtitles perl swiss army knife (scroll to the end of the page).

Here you can find more options.

Also, mplayer/mencoder has some dumpXXXsub options, which might work. I never tried this, but reading the man, it should work. Example:

-dumpmpsub (MPlayer only)
              Convert the given subtitle (specified with the -sub option) to MPlayer's subtitle format, MPsub.  Creates a dump.mpsub file in the current directory.