nemesis's Journal

Using mencoder for Nokia N85/N95

Sunday 31st May, 2009

This took a while to figure out.

I wanted a generic command that would resize the video to 320x240, regardless of whether the source was in widescreen or not; and if widescreen, then crop only the middle section out.

Note that the original framerate is maintained. You could probably save some more space by dropping the framerate to 15 or 20 fps.

If you want to save more space, try dropping the audio bitrate, and adding :vbitrate=500 to lavcopts.

mencoder -of lavf -lavfopts format=mp4 -oac lavc -ovc lavc
-lavcopts
aglobal=1:vglobal=1:acodec=libfaac:abitrate=128:vc odec=mpeg4:keyint=25
-vf scale=-3:240,crop=320:240,harddup -noskip -af
lavcresample=44100 -o output.mp4 input.avi

Enjoy.

1 Responses

sideshow
31st July 2009

also works for the iphone!

Leave a comment

Sign in to leave a comment!

Don't have a login yet? Get one now!