UNIX Scripts Bash Tips: transcoding converting video files Part 3
April 23rd, 2008If you’ve read part 2, then you should now be familiar with mencoder.conf and using profiles when converting video files using Mencoder. We now take it a step further with Xvid two pass encoding using a shell script.
I find doing Xvid two pass encoding on the command line a pain, since you need to do the transcoding twice. It’s even more painful when your computer is over 8 years old like mine is. This is where a shell script comes in handy.
UNIX Scripts Bash Tips: transcoding converting video files Part 2
April 22nd, 2008Welcome to Part 2 of trancoding and converting video files. This is a follow-up to my adventures working with a variety of software - Windows and Linux - for trancoding and converting videos.
VirtualDub and its sister VirtualDubMod have remained a constant for me on the Windows platform. This is in conjunction with Xvid as the codec of choice for compressing the video portion of my files. For the audio portion, I stick with the original source otherwise using MPEG Layer-III for compression.
On Linux (in this case, Debian as choice of distribution), I’ve delved further into Mencoder’s plethora of options through its configuration file. To be honest, it should be transocde, but I find its man page and possibilities a little too overwhelming right now.
First, when using Mencoder, you should have a few other packages installed, like MPlayer for instance. Usually this won’t be an issue, since there are a number of dependencies for it.
Second, this is all being done via the command line, so you’ll either need to go to a console or bring up an terminal window.
The basic command is simple:
mencoder old.avi -o new.avi
What’s left out are all the options you can employ. But what happens when there are so many options? and you don’t want to use the same set each time? You could write an individual shell script for each set of options, but wouldn’t it be easier to just edit a configuration file?
