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

Sebastian Dröge sebastian at centricular.com
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 location=somefile.mov ! 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:
  https://gstreamer.freedesktop.org/documentation/contribute/#how-to-submit-patches

or create an issue with a sample file here:
  https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/new


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

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com

-------------- 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: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190318/9255bf90/attachment.sig>


More information about the gstreamer-devel mailing list