correct pipeline to decode rtsp stream to video mixer

art vanderhoff vanderhoffer at gmail.com
Thu Nov 17 17:37:56 UTC 2016


Hello,

using gstreamer-1.10 I have been trying several version of pipeline to
decode an RTSP stream that starts as a webrtc connection.


ffprobe reports stream as

Duration: N/A, start: 0.128000, bitrate: N/A
Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 512x288 [SAR 1:1
DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc


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?

thanks
Art
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161117/126ade56/attachment-0001.html>


More information about the gstreamer-devel mailing list