gstreamer correct pipeline to decode rtsp stream to raw video -
using gstreamer-1.10 have been trying several version of pipeline decode rtsp stream starts 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 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 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 pad of gstdecodebin named decode pad of gstx264enc named x264enc0 warning: 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 pad of gstdecodebin named decode 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 correct pipeline decode stream?
Comments
Post a Comment