【发布时间】:2018-09-02 02:28:07
【问题描述】:
我尝试播放 udp 多播音频流。
gst-launch-1.0.exe udpsrc multicast-group=239.192.31.65 port=5004 caps="application/x-rtp,channels=(int)2,media=(string)audio,payload=(int)96,clock-rate=(int)44100,encoding-name=(string)L24" ! rtpjitterbuffer latency=10 ! rtpL24depay ! audioconvert ! autoaudiosink sync=false async=false
它可以工作,但由于采样率错误,音频播放速度比原始流慢。原始流采样率为 48kHz。但如果我尝试设置它,GStreamer 会退出并出现错误。
gst-launch-1.0.exe udpsrc multicast-group=239.192.31.65 port=5004 caps="application/x-rtp,channels=(int)2,media=(string)audio,payload=(int)96,clock-rate=(int)48000,encoding-name=(string)L24" ! rtpjitterbuffer latency=10 ! rtpL24depay ! audioconvert ! autoaudiosink sync=false async=false
将管道设置为 PAUSED ...
管道处于活动状态,不需要 PREROLL ...
将管道设置为 PLAYING ...
新时钟: GstSystemClock
错误:来自元素 /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:内部数据流 错误。
其他调试信息:
gstbasesrc.c(3055): gst_base_src_loop ():
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
流停止, 原因未协商 (-4)
执行结束后 0:00:00.018626636
将管道设置为暂停 ...
设置 管道准备就绪 ...
将管道设置为 NULL ...
释放 管道...
我不明白为什么。
【问题讨论】:
标签: udp gstreamer clock multicast rate