Add subtitles on Avi files

November 5, 2007 · Posted in Linux · 1 Comment 

A very usefull program to do that is mencoder

Lets say the subtitles file is called abc.str, the avi file without the subtitles is called abc.avi and the file we want to create is abc2.avi

So all we have to do is

  •  x264 format

mencoder -sub abc.srt -subcp iso-8857-9 ( or whatever codepage the .srt requires ) -ovc x264 -oac copy -o abc2.avi abc.avi

  •  xvid format

mencoder -sub abc.srt -subcp iso-8857-9 ( or whatever codepage the .srt requires ) -ovc xvid -xvidencopts bitrate=687 -oac copy -o abc2.avi abc.avi

You can see the available video outputs but using

mencoder -ovc help

Gentoo Miniconf
Patras Wireless Metropolitan Network
Planet Hellug
iloog
forum hellug

css.php