[MPlayer-users] Extrac subtitles from vob

The Wanderer inverseparadox at comcast.net
Sun Jan 25 16:34:46 CET 2004

Pablo Morales wrote:

> Hi guy
> I was reading the manual, but still I do not get it, I want to
> extract the subtitles from a vob or a dvd, the exampmles that I've
> found, extract them to an avi file, but I want to put them in a text
> file or whatever, .sub, .idx, just that.
> I was playing with -vobsub* but no luck..
> Can you help me?

Read the mailing list archives - this came up here fairly recently. The
gist of it is that you cannot convert vobsubs directly to other formats,
because vobsubs are bitmaps and the other formats are text; you need to
either use some sort of not-really-optical-but-you-know-what-I-mean
character recognition, or type them in yourself (which is unwieldy, and
loses the timing information). There are a few details in the recent
discussion... lemme see.

The thread in question is "[MPlayer-users] vobsub -> microdvd", and took
place on the 18th; a post by PAT contains a series of command lines
which, together, should reportedly do what you want. I don't have the
time right now to figure out how to make a link to a post in the
archives, but to quote:

OK, I see you have some spare time. Install tcextract and ocr tools, get
a beer, or cafe, and try this commands:

cat /mnt/cdrom/VIDEO_TS/VTS_01_?.VOB | tcextract -x ps1 -t vob -a 0x20 > 

subtitle2pgm -i movie.ps1 -o movie

pgm2txt -d movie

srttool -s -i movie.srtx -o movie.srt

mplayer movie.avi -sub movie.srt -dumpmicrodvdsub

Note that although I may have reason to in future, I've never done this
myself and so cannot speak to whether or how well it works.

       The Wanderer

A government exists to serve its citizens, not to control them.

More information about the MPlayer-users mailing list