[Libav-user] Speedup FFmpeg h264 Decoding on Android-Devices

Christian Brümmer christian.bruemmer at gmx.de
Sat Aug 4 14:11:26 CEST 2012


Hi,

i am using FFmpeg for H264 Decoding on an Android Device. The 
Videoframes are encoded on a desktop pc and streamed frame-by-frame to 
the phone.
For my tests i used Samsung Galaxy S2 (2x 1,2 ghz) but the decoding time 
is between 27 - 31 ms for one Frame with the resolution of 800 x 480 
(nativ display res of the s2). I already compiled FFmpeg with Neon Support.

My x264-Encoding Options are:
     av_opt_set(mCodec->priv_data, "profile", "baseline", 0);
     av_opt_set(mCodec->priv_data, "preset", "medium", 0);
     av_opt_set(mCodec->priv_data, "tune", "zerolatency", 0);
     av_opt_set(mCodec->priv_data, "x264opts", "rc-lookahead=0", 0);

I used zerolatency because i need a very low latency (and need to encode 
parallel more than one videostream - which is working so far) between 
video encoding and setting the decoded videoframe to screen (on the 
smartphone display).
Which settings could help to speedup h264 decoding (without reducing 
display resolution). For example I would like to combine zerolatency and 
the fast-decode tune but i dont know how to do this!

Best regards,
Christian


More information about the Libav-user mailing list