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

Christian Brümmer christian.bruemmer at gmx.de
Sun Aug 5 15:17:44 CEST 2012


I tried the "zerolatency,fastdecode" combination and the results are 
amazing!

Before fastdecode the avg (about~ 200 measurements) was 19,8 ms per 
frame. Now on fastdecode (if iam not doing anything wrong) the avg is 
10,52. Almost the half of the processing time.
The avg framesize for both is exact the same: 11722 bytes (for the first 
300 frames).

This is great and it is enough for my application environment! Thanks 
for the help!

Am 04.08.2012 20:20, schrieb Christian Brümmer:
> Okay i will consider that if i am not able to speedup ffmpeg decoding.
>
> First I will post my results after using the x264opts Hendrik provides 
> ( "zerolatency,fastdecode" ).
>
> Am 04.08.2012 17:52, schrieb Alex Cohn:
>>
>> On Aug 4, 2012 5:22 PM, "Christian Brümmer" 
>> <christian.bruemmer at gmx.de <mailto:christian.bruemmer at gmx.de>> wrote:
>> >
>> > For sure i first tried to use the Android MediaPlayer in 
>> combination with a RTSP-Stream but it has a - not configurable - 
>> frame buffer which size dependends of the rtsp fps. The result is a 
>> delay about 3-5 seconds which is a known problem as i discovered.
>> > so for a real time video application your on your own..
>>
>> You could directly call the built-in stagefreight avc decoder, this 
>> approach does not introduce extra latency. But the number of 
>> instances is limited - three or four, not more.
>>
>> BR,
>> Alex Cohn
>>
>> > But anyway i thought there might be a few lever (on the encoding 
>> system) which i have to move to increase the decoding performance!
>> >
>> > What about the fast-decoding tune - how can i combine that with my 
>> zero latency configuration?
>> >
>> > Am 04.08.2012 16:05, schrieb Michael Bradshaw:
>> >>
>> >> On Aug 4, 2012 6:11 AM, "Christian Brümmer" 
>> <christian.bruemmer at gmx.de <mailto:christian.bruemmer at gmx.de>> wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > i am using FFmpeg for H264 Decoding on an Android Device.
>> >>
>> >> Out of curiosity, is there a reason you aren't using Android's 
>> native decoder? It may be more optimized for the device than FFmpeg 
>> too. Sorry I don't know how to make FFmpeg faster.
>> >>
>> >> --Michael
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> Libav-user mailing list
>> >> Libav-user at ffmpeg.org <mailto:Libav-user at ffmpeg.org>
>> >> http://ffmpeg.org/mailman/listinfo/libav-user
>> >
>> >
>> >
>> > _______________________________________________
>> > Libav-user mailing list
>> > Libav-user at ffmpeg.org <mailto:Libav-user at ffmpeg.org>
>> > http://ffmpeg.org/mailman/listinfo/libav-user
>> >
>>
>>
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120805/768904a0/attachment.html>


More information about the Libav-user mailing list