Posted by on the 13th of January, 2009 at 10:15 pm.  This post has no comments.

Updated 13 January 2009

DVDs usually come with subtitles. MPlayer can be used to identify what subtitles are on a certain DVD, while MEncoder can be used to rip them.

$ mplayer dvd://1 -dvd-device "/media/cdrom0" -v -vo null -ao null | grep "subtitle"

$ mencoder dvd:// -dvd-device "/media/cdrom0" -nosound -ovc frameno -o /dev/null -slang en -vobsubout subtitles-en && mencoder dvd:// -dvd-device "/media/cdrom0" -nosound -ovc frameno -o /dev/null -slang fr -vobsubout subtitles-fr

This will result in two files for each subtitle language; a .idx file and a .sub file. These subtitles can be played using VLC or MPlayer.

$ mplayer video.mp4 -vobsub subtitles-en

Sorry, but commenting on this post is disabled.