【问题标题】:GStreamer clock-rate=(int)48000 issueGStreamer 时钟速率=(int)48000 问题
【发布时间】: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


    【解决方案1】:

    您不会相信 - 问题出在声卡设置中 - 一旦我在 windows 设置中的声卡设置中设置 48000,它就开始工作了!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-24
      • 1970-01-01
      • 1970-01-01
      • 2019-04-01
      • 1970-01-01
      相关资源
      最近更新 更多