[gstreamer-1.0] Forcing decodebin to plug in parse element before decoder

Tim-Philipp Müller t.i.m at zen.co.uk
Mon Feb 4 04:56:20 PST 2013


On Mon, 2013-02-04 at 13:16 +0100, Kishore Arepalli wrote:

Hi,

> How to force the decodebin to plug in h264parse before decoder?
> 
> 
> Decoder caps are:
>   SINK template: 'sink'
>     Availability: Always
>     Capabilities:
>       video/x-h264
>           stream-format: byte-stream
>               alignment: au
> 
> 
> qtdemux out caps are "video/x-h264, stream-format=avc, alignment: au"
> 
> 
> Here, "stream-format" needs to converted from "avc" to "byte-stream".
> So, I need to insert h264parse element in order to feed to correct
> data to decoder. But decodebin is not inserting h264parse instead
> directly connects qtdemux to decoder.
> 
> 
> pipeline:
> gst-launch-1.0.exe filesrc location=test.mp4 ! decodebin !
> d3dvideosink

Decodebin should be doing that automatically already. I also don't know
why it would plug the decoder if its caps are clearly incompatible with
the output of qtdemux. Do you have h264parse actually installed?

It could be a bug of course, in which case a debug log might be helpful.

 Cheers
  -Tim




More information about the gstreamer-devel mailing list