$ mencoder -ovc help $ mencoder -oac helpand then checking that the lines
xvid - XviD encoding twolame - Twolame MP2 audio encoderare present.
If the video source file was intended to be played back on a traditional television then you need not crop or letterbox. In this case enter
$ rate="scale=320:240"If your video source file was intended to be played back on a widescreen television you will need either to to letterbox or crop it. To letterbox it enter
$ rate="scale=320:180,expand=320:240'and to crop it enter
$ ratio="scale=426:240,crop=320:240"Some video streams come from film source with an original aspect ratio of 9x5. To crop a 9x5 aspect ratio movie that has been letterboxed for a widescreen television enter
$ mencoder sounce.mpg -quiet \ -ovc xvid -oac twolame -ofps 15 \ -xvidencopts profile=sp3:bitrate=250 \ -twolameopts br=64 \ -vf harddup,kerndeint,$ratio,dsize=320:240 \ -af resample=44100,volume=8,volnorm=2 -o output.avi
If the MP4 player is not automatically mounted then check the log files using
$ dmesgto determine what device your player was detected as. Lets assume it was detected as /dev/sdb. Since the player was not automatically mounted it may be possible to mount and copy the files as root. Change to root and make sure the mount point /z/b exists.
$ su Password # mkdir -p /z/b
Some video players have a partition table and others do not. If your potable MP4 players has a partition table, mount the player using the command
# mount /dev/sdb1 /z/bIf you don't have a partition table, use
# mount /dev/sdb /z/bNow copy the avi file over to the player and synchronize the buffers by
# cp output.avi /z/b # sync; sync; syncFinally unmount the drive
# umount /z/b # exitand unplug the portable MP4 player from the computer.
Put a line like
/dev/sdb1 /z/b auto rw,user,noauto 0 0in /etc/fstab to allow regular users to mount and unmount the MP4 player as a flash drive. The rule is don't do things as root that could be done as a regular user.