[MPlayer-users] mencoder h264 encoding and Android telephones

sean darcy seandarcy2 at gmail.com
Sat Nov 6 21:16:45 CET 2010

On Wed, Oct 27, 2010 at 2:56 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Malte Gell <malte.gell <at> gmx.de> writes:
>> Does anyone have experience with h264 encoding for an Android handset?
>> I have a HTC Desire with Android 2.2 and used the following mencoder command
>> to create an MPEG4 video.
> Just in case you don't know:
> MEncoder is not an actively maintained program, you should usually use FFmpeg
> for all encoding operations.
> Carl Eugen
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

This works for me. The key is level 3.1, and not exceeding 14,000kb.
Android 2.2 (at least on my Droid X) does support cabac (which is
turned on by preset slow).

ffmpeg -i <INFILE> -acodec libfaac -ab 48k  -vcodec libx264 -level 31
-vpre slow \
     -bufsize 14000000 -maxrate 14000000 -threads 0 OUTFILE.mp4


More information about the MPlayer-users mailing list