Mymencoder script

December 11, 2007 · Posted in Linux · 3 Comments 

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

November 5, 2007 · Posted in Linux · 1 Comment 

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

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