Movie Converter

I'd used mencoder, the transcoding utility that comes with MPlayer, for converting video files from one format into another and found the command line syntax to be a bit of a pain (mainly just trying to remember the syntax). Then one day while I was playing around with Zenity, it dawned on me that I could probably combine the two. So I whipped up a bash script to do my simple transcoding jobs in a nice neat GNOME GUI. It walks the user through selecting a file to convert (mov, wmv, or mpg) then converts it to avi.

This was pretty simple, but the multiple Zenity dialogs were a bit hard to work with. Since Zenity doesn't allow for forms (ie - mixed text input and radio button fields in one dialog), I started hunting around for something that would fill that void. I finally settled on Autoglade because it was fairly easy to use and I could modify my existing bash script without having to start from scratch. The only down side is that the utility is now in two files instead of one; a bash script and a Autoglade XML file. Zenity is still used for info/error messages since it is easier to call as a one liner than creating a seperate Autoglade XML file to call up.

 
Screenshots of the Zenity-based (left) and the Autoglade-based (right) movie converter.


Back to Linux Page