Encode mp4 files for Nokia N95 with mencoder
I wanted to reencode a movie to be able to watch it with my Nokia N95. After some googling I found some recipies targetted for iPod, on how to do it with ffmpeg. Unfortunately my source movie has some weird aspect ratio, which resulted on ffmpeg borking with ‘Incorrect frame size’ error.
I decided to try it by myself using my all-time-favourite mencoder.
The following line reencodes a given movie to MPEG4 file with AAC audio and rescales it to 320×240 during conversion:
mencoder -of lavf -lavfopts format=mp4 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:acodec=libfaac:abitrate=128:vcodec=mpeg4:keyint=25 -ofps 25 -af lavcresample=44100 -vf harddup,scale=320:-3 -mc 0 -noskip MOVIE.avi -o MOVIE.mp4
About this entry
You’re currently reading “Encode mp4 files for Nokia N95 with mencoder,” an entry on Xiaoka Notes
- Published:
- Saturday, March 29th, 2008 at 10:35 pm
- Author:
- Tomasz Sterna
- Category:
- HOWTO
1 Comment
Jump to comment form | comments rss | trackback uri