最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

GStreamer network ip camera rtspsrc stream recording filesink to disk, I can see video, I cannot hear audio - Stack Overflow

programmeradmin3浏览0评论

GStreamer I have network ip camera rtspsrc stream recording filesink to disk, I can see video, I cannot hear audio.

Code 1:

gst-launch-1.0 rtspsrc location=rtsp://192.168.1.205:554/live name=src protocols=tcp ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mux ! queue ! filesink location=test.mp4 src. ! rtpL16depay ! audiorescample ! decodebin ! mux. -e

GStreamer message:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://admin:[email protected]:554/live
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
Redistribute latency...
Redistribute latency...
Progress: (request) Sent PLAY request
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Delayed linking failed.
Additional debug info:
gst/parse/grammar.y(544): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
failed delayed linking some pad of GstDecodeBin named decodebin0 to some pad of GstMpegTsMux named mux
handling interrupt.9.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...
Got EOS from element "pipeline0".

Tried the following codes:

Code 2:

gst-launch-1.0 rtspsrc location=rtsp://192.168.1.205:554/live name=src protocols=tcp ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mux ! queue ! filesink location=test.mp4 src. ! queue ! rtpL16depay ! decodebin ! mux. -e

Code 3:

gst-launch-1.0 rtspsrc location=rtsp://192.168.1.205:554/live name=src protocols=tcp ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mux ! queue ! filesink location=test.mp4 src. ! rtpL16depay ! rawaudioparse use-sink-caps=false format=pcm pcm-format=s16be sample-rate=44100 num-channels=1 ! audioconvert ! audioresample ! decodebin ! mux. -e

Code 4:

gst-launch-1.0 rtspsrc location=rtsp://192.168.1.205:554/live name=src protocols=tcp ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mux ! queue ! filesink location=test.mp4 src. ! queue ! rtppcmudepay ! mulawdec ! audioresample ! audioconvert ! decodebin3 ! mux. -e

Code 1,2,3,4 are recording filesink to disk, the counter is working, but there are no audio.

I've confirmed VideoLAN VLC direct network connect to the rtspsrc stream, I can see video, I can hear audio. Also, I can record to disk, playback, I can see video, I can hear audio.

What am I over looking and missing in Code 1,2,3,4 ?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论