Mymencoder script
I wrote a bash script for adding subtitles on avi files
The script uses xvid encoder
I d like to share it with you . Hope you use it ;)
Usage:
Markos Chandras
Version 0.1
Simple mencoder script
This script uses mencoder to add subtitles on .avi files. The script uses xvid. Use the following command to encode your files
Usage: ./mymencoder subtitlesfile bitrate outputfilename inputfilename
Download: Mymencoder
Add subtitles on Avi files
A very usefull program to do that is mencoder
Lets say the subtitles file is abc.str ,the avi file without the subtitles is the 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











