=?utf-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A_?=low performance of gst plugin "androidmedia" with hardware decoder

jojo rjiejie at gmail.com
Wed Sep 4 00:31:58 PDT 2013


Hi,  

Yes, i am sure the androidmedia plugin is working in my testing,

but i make a mistake, i am testing again in 1080P case, the CS(NV12 -> RGBx) operation

costs about 70ms average time per frame …. it is too much, i use the ffmpegcolorspace plugin to do that, it's the limit of performance in my case  :(  

is there acceleration API about for CS operation in android ? or how to use the YUV format bitmap to display ?

i think about this function is a standard module in HW/chip.  

Thanks,

- Jojo


在 2013年8月30日星期五,下午3:37,Sebastian Dröge 写道:

> On Do, 2013-08-29 at 16:10 +0800, jojo wrote:
> > Hi,  
> > I use plugin "androidmedia" to decode video in android platform with
> > AVC HW decoder,
> >  
> >  
> > my device is: IMX6Q-SDB
> >  
> >  
> > my pipe line is:
> >  
> >  
> > video pipeline: appsrc is-live=true do-timestamp=true
> > caps="video/x-h264, width=1920, height=800" name="appsrc" !
> > decodebin2 ! queue ! ffmpegcolorspace ! appsink caps="video/x-raw-rgb,
> > bpp = (int) 32, depth = (int) 24, endianness = (int) BIG_ENDIAN,
> > red_mask = (int) 0xFF000000, green_mask = (int) 0x00FF0000, blue_mask
> > = (int) 0x0000FF00, width = (int) [ 1, max ], height = (int) [ 1, max
> > ], framerate = (fraction) [ 0, max ]" name="appsink"
> >  
> >  
> >  
> >  
> > I collect time in "GstAppSinkCallbacks.new_buffer",
> >  
> >  
> > in 1080P at 30FPS local case,
> >  
> >  
> > the average decoding time is 50 ms,
> >  
> >  
> > if i remove the plugin "ffmpegcolorspace" from pipe line, it costs
> > about 47 ms also, why ?
> >  
> >  
> > i think the CS convert operation should take much more then 2 ms….
> >  
> > someone have performance data for this plugin ?
> >  
> >  
> > and what's the best configuration about for this plugin ?
>  
> Do some profiling to see which step exactly takes so much time. Also how
> do you measure this 50ms/47ms? Having the color format conversion to RGB
> take just 3ms compared to everything else seems quite low.
>  
> Are you sure that the androidmedia plugin is actually used in decodebin
> here? If it is, another step that can take some time is that it
> currently copies every frame once... but if the color format conversion
> just need 3ms, the copying should take even less than that.
>  
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org (mailto:gstreamer-android at lists.freedesktop.org)
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>  
>  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130904/1172eec5/attachment.html>


More information about the gstreamer-android mailing list