Hi xamindar, can you post your mencoder script? I have lots of tv shows recorded with MythTV that I would like to convert and take with me on my Zaurus.
So sorry I didn't reply to this. I read it then forgot about it. Here you go. It uses mencoder which is usually part of mplayer. Just make sure you have mencoder installed and you should be good.
One thing about it though. When I use it to encode HD content (very high resolution video) the framerate of the resulting video is a little strange. It drops frames on encode for some reason. Maybe there is a filter I can add or something but I haven't gotten around to it. Most resulting videos are great though.
just run the script like this:
zvidencoder.sh input output
It encodes with a width of 640 by default.