簡體   English   中英

GStreamer clock-rate =(int)48000問題

[英]GStreamer clock-rate=(int)48000 issue

我嘗試播放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后執行結束
將管道設置為PAUSED ...
將管道設置為READY ...
將管道設置為NULL ...
釋放管道...

我不明白為什么。

您不會相信-問題出在聲卡設置中-一旦我在Windows設置中的聲卡設置中設置了48000,它便開始工作!

聲卡窗口設置

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM