How to get from video/x-gst-fourcc-H261 to video/x-h261

Sebastian Dröge sebastian at
Mon Mar 18 10:50:50 UTC 2019

On Mon, 2019-03-18 at 04:40 -0500, fkoh wrote:
> I have a *.mov file encoded in H261
> I want to use avdec_h261 which has sink caps "video/x-h261".
> What comes out of 
> "filesrc ! qtdemux "
> is "video/x-gst-fourcc-H261"
> How do I bridge the gap between 
> "video/x-gst-fourcc-H261" (the source caps of filesrc) 
> and 
> "video/x-h261" (the sink caps of avdec_h261)?
> Many thanks for any help.

The correct way would be to add support for h261 to qtdemux. That
should be a few lines of code added in qtdemux.c so that the caps are
correctly mapped to video/x-h261.

Please either send a MR for that:

or create an issue with a sample file here:

The unclean way would be to use the capsfilter element to override the

Sebastian Dröge, Centricular Ltd ·

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the gstreamer-devel mailing list