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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

fkoh
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.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

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

Sebastian Dröge-3
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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

fkoh
In reply to this post by fkoh
Thanks for the tip. How do I use capfilter to force things?

I tried capsfilter caps=video/x-h261 before qtdemux, and then when that
failed, after. That failed too.

The details:
gst-launch-1.0 -v filesrc location=file.mov !  qtdemux name=demux
demux.video_0 ! capsfilter caps=video/x-h261 ! fakesink

WARNING: from element /GstPipeline:pipeline0/GstQTDemux:demux: Delayed
linking failed.
Additional debug info:
./grammar.y(506): gst_parse_no_more_pads ():
/GstPipeline:pipeline0/GstQTDemux:demux:
failed delayed linking pad  video_0 of GstQTDemux named demux to some pad of
GstCapsFilter named capsfilter0
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:demux: GStreamer
encountered a general stream error.
Additional debug info:
qtdemux.c(5520): gst_qtdemux_loop ():
/GstPipeline:pipeline0/GstQTDemux:demux:
streaming stopped, reason not-linked

Many thanks for any help you can provide



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel