Add subtitles on Avi files

November 5, 2007 · Posted in Linux 

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 can to create is abc2.avi

So all we have to do is

  •  x264 format

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

  •  xvid format

mencoder -sub abc.srt -subcp iso-8857-9 ( or whichever 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

Comments

One Response to “Add subtitles on Avi files”

  1. .Wtv to Wmv With Embedded Subtitles on May 16th, 2010 12:41 am

    [...] have better luck finding something which can hard-code them into your videos. I know MEncoder can do this. According to the TTSubRipper website, most programs simply ignore or discard the subtitles which [...]

Leave a Reply




GreekBloggers.com
Patras Wireless Metropolitan Network
Planet Hellug
iloog
forum hellug