我试图通过rtp将.ogg音频从一台计算机传输到另一台计算机并使用gstreamer

时间:2015-11-11 09:19:39

标签: gstreamer audio-streaming rtp pulseaudio

在发件人方面,我提供了以下命令:

pactl load-module module-null-sink sink_name=rtp
pactl load-module module-rtp-send source=rtp.monitor
pactl set-default-sink rtp

gst-launch-1.0 playbin uri=file:///home/Music/SomeSong.ogg

在接收方,我发出以下命令:

gst-launch-1.0 playbin uri=rtsp://<sender's ip>:5000  

在上面的命令后,我在接收器端出现以下错误:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.0.0.1:5000
**ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not open resource for reading and writing.**
Additional debug info:
gstrtspsrc.c(6183): gst_rtspsrc_retrieve_sdp (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

有没有人可以帮我解决这个问题并告诉我哪里错了?如何解决此错误?

注意:发出命令:接收端的pactl load-module module-rtp-recv开始播放音频。 但是我想使用gstreamer而不是直接来自脉冲音频。在此先感谢!!

0 个答案:

没有答案