[FFmpeg-devel] Use ffmpeg as an Android stagefright plugin

Fabio Fumi ffumi68 at googlemail.com
Fri Nov 7 16:04:09 CET 2014


Btw - testing downloaded files (as suggested in 
https://github.com/omxcodec/stagefright-plugins), playback is fine, at east 
with respect to image quality. Similar for both the test .mov and .mp4 
files. 

Playback hangs and locks once in a while, for a few seconds, with logcat 
showing lots of:

V/AwesomePlayer( 2090): we're late by 125631 us (0.13 secs)
V/AwesomePlayer( 2090): we're late by 125631 us (0.13 secs) dropping one 
after 0 frames
V/AwesomePlayer( 2090): we're late by 125382 us (0.13 secs)
V/AwesomePlayer( 2090): we're late by 125382 us (0.13 secs) dropping one 
after 0 frames
V/AwesomePlayer( 2090): we're late by 120819 us (0.12 secs)
V/AwesomePlayer( 2090): we're late by 120819 us (0.12 secs) dropping one 
after 0 frames
...

This happens in particular when there's extesive image changing. Less when 
video is more static.

Seems like a lack of CPU bandwidth... Mediaserver sets CPU above 50% 
(though never 100%).

  PID PR CPU% S  #THR     VSS     RSS PCY UID      Name
 2090  0  52% S    16  64160K  17060K  fg media    /system/bin/mediaserver
 3175  0   1% R     1   1072K    476K     root     top
  257  0   0% S    73 549956K  38280K  fg system   system_server
 3009  0   0% S    15 492776K  37872K  fg u0_a69   com.mxtech.videoplayer.ad
...

Anyway, with respect to image quelity I don't see any significant 
difference in the video attribute, with repsect to those streamed though 
YouTube. See also logcat in http://pastebin.com/tnrt9NB6


On Sunday, 11 August 2013 01:25:25 UTC-7, Chih-Wei Huang wrote:
>
> Hello ffmpeg list, 
> I'm planning to integrate the latest ffmpeg as 
> a stagefright OMXPlugin with Android-x86 4.3. 
> I found the stagefright-plugins developed by 
> Michael Chen is a good start. 
> (repo: https://github.com/omxcodec/stagefright-plugins.git) 
> But it's based on android 4.0 (ICS). 
>
> My plan is: 
> * Update stagefright-plugins to work with 
>   stagefright of android 4.3. 
> * Make it to be a libstagefrighthw.so plugin. 
> * Create Android.mk to build ffmpeg libs. 
>
> Before I go ahead, I'd like to know 
> if anyone is doing a similar project 
> to avoid duplicate work. 
> Thanks a lot! 
>
>
> -- 
> Chih-Wei 
> Android-x86 project 
> http://www.android-x86.org 
>


More information about the ffmpeg-devel mailing list