Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我正在尝试通过rtp将.ogg音频从一台计算机传输到另一台计算机,并使用gstreamer进行播放_Gstreamer_Audio Streaming_Rtp_Pulseaudio - Fatal编程技术网

我正在尝试通过rtp将.ogg音频从一台计算机传输到另一台计算机,并使用gstreamer进行播放

我正在尝试通过rtp将.ogg音频从一台计算机传输到另一台计算机,并使用gstreamer进行播放,gstreamer,audio-streaming,rtp,pulseaudio,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=rt

在发送方,我给出了以下命令:

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  
谁能帮我解决这个问题,告诉我哪里错了?如何解决此错误


注意:发出命令:接收器侧的pactl加载模块rtp recv开始播放音频但是我想使用gstreamer播放,而不是直接从pulse audio播放。提前谢谢

我不熟悉那些pulseaudio模块,但为什么你不能在gstreamer中完成这些工作呢?您可以使用uridecodebin、rtptheorapay、udpsink,您就完成了。我不熟悉这些pulseaudio模块,但为什么您不能在gstreamer中完成这一切呢?您可以使用uridecodebin、rtptheorapay、udpsink,您就完成了。。
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 ...