low performance of gst plugin "androidmedia" with hardware decoder

Sebastian Dröge slomo at circular-chaos.org
Fri Aug 30 00:37:33 PDT 2013


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130830/1cfe359e/attachment.pgp>


More information about the gstreamer-android mailing list