Gstreamer autovideosink throws an error

I’m trying the below pipeline as follows:

gst-launch-1.0 rtspsrc location=rtsp:// name=rtspsrc ! rtph264depay ! tee name=pv ! decodebin ! h264parse ! mpegtsmux name=mux ! autovideosink pv. ! filesink location=“asas_neww.mp4” rtspsrc. ! rtpmp4gdepay ! aacparse ! mux.

the above pipeline records both audio and video from an RTSP camera. But, when i try to get the live preview of the video stream while it records, i came across the error below.

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING …
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
**Opening in BLOCKING MODE **
**NvMMLiteOpen : Block : BlockType = 261 **
**NVMEDIA: Reading vendor.tegra.display-size : status: 6 **
**NvMMLiteBlockCreate : Block : BlockType = 261 **
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Delayed linking failed.
Additional debug info:
./grammar.y(510): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
failed delayed linking some pad of GstDecodeBin named decodebin0 to some pad of GstH264Parse named h264parse0

Is there any other method to eliminate this error?

Thanks in advance !

The gstreamer pipeline looks wrong. It should be like:

rtspsrc ! rtph264depay ! h264parse ! nvv4l2decoder ! tee name=t ! queue ! nvoverlaysink t. ! queue ! nvv4l2h264enc ! h264parse ! matroskamux ! filesink location=a.mkv

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.