correct pipeline to decode rtsp stream to video mixer

Sebastian Dröge sebastian at centricular.com
Sat Nov 19 10:22:51 UTC 2016


On Thu, 2016-11-17 at 17:37 +0000, art vanderhoff wrote:
> 
> using variations of the following pipeline 
> 
> GST_DEBUG=3 gst-launch-1.0  -e rtspsrc
> location=rtsp://xxx.xxx.xxx.xxx:1935/alpha/Stream1  \
> ! decodebin name=decode \
> decode. \
> ! x264enc bitrate=512 speed-preset=6 \
> ! video/x-h264, profile=baseline  \
> ! queue ! mp4mux name=mp4mux ! filesink location=file.mp4 \
> decode. ! avenc_aac bitrate=96000 ! aacparse ! queue  ! mp4mux.
> 
> I get the following errors
> 
> 0:00:00.299416405  7705 0x7f0d48001e80 WARN                 default
> grammar.y:510:gst_parse_no_more_pads:<decode> warning: Delayed
> linking failed.
> 0:00:00.299435518  7705 0x7f0d48001e80 WARN                 default
> grammar.y:510:gst_parse_no_more_pads:<decode> warning: failed delayed
> linking some pad of GstDecodeBin named decode to some pad of
> GstX264Enc named x264enc0
> WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decode:
> Delayed linking failed.
> Additional debug info:
> ./grammar.y(510): gst_parse_no_more_pads ():
> /GstPipeline:pipeline0/GstDecodeBin:decode:
> failed delayed linking some pad of GstDecodeBin named decode to some
> pad of GstX264Enc named x264enc0
> 0:00:01.296295371  7705 0x7f0d6402a8f0 WARN                 basesrc
> gstbasesrc.c:2951:gst_base_src_loop:<udpsrc3> error: Internal data
> stream error.
> 0:00:01.296324999  7705 0x7f0d6402a8f0 WARN                 basesrc
> gstbasesrc.c:2951:gst_base_src_loop:<udpsrc3> error: streaming
> stopped, reason not-linked (-1)
> 
> 
> what is the correct pipeline to decode this stream?

For whatever reason, linking decodebin to x264enc fails in your case.
Check the debug logs for details. Caps are most likely incompatible,
and you might e.g. need to insert a videoconvert element before the
encoder.

-- 
Sebastian Dröge, Centricular Ltd · http://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/20161119/350874a2/attachment.sig>


More information about the gstreamer-devel mailing list