These scripts use mencoder/mplayer. I dug around on the web some time to find suitable alternatives. These scripts are a compendium of various techniques I found and works for me. The script was originally from the web and was written by an owner of a meizu player. The script was originally called meizu-prepare. They are one pass encoders, since the advantage of 2pass encoding is minimal compared to the extra time required.
Create videos suitable for Cowon D2 player
Create videos suitable for Nokia N95