Posted by Anurag in
utilities
Tuesday, February 22. 2011
My
Android phone doesn't support DivX/XviD. To play videos on it. I need to convert them to MP4. Taking a note for myself if I need it later.
$ ffmpeg -i input_video.avi -f mp4 -vcodec libx264 -acodec libfaac -s 400x240 -ab 128k output_video.mp4
400x240 is the phone's screen resolution.
[Edit]
Good parameters for high quality MPEG4 encoding:
-mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300