Gstreamer Mac OS X udpsink错误

Amb*_*sio 3 macos gstreamer

我正在尝试在Mac OS X中传输音频,但我一直收到此错误:

gst-launch osxaudiosrc ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! udpsink port=10001 host=192.168.2.10

Setting pipeline to PAUSED …
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Could not get/set settings from/on resource.
Additional debug info:
gstmultiudpsink.c(804): gst_multiudpsink_configure_client (): /GstPipeline:pipeline0/GstUDPSink:udpsink0:
Could not set TTL socket option (22): Invalid argument
Setting pipeline to NULL …
Freeing pipeline …
Run Code Online (Sandbox Code Playgroud)

此工程在Windows替换osxaudiosrcautoaudiosrc,谁知道是什么问题?

谢谢

Ory*_*and 7

你可能会错过gst-ffmpeg插件.我这样说是因为我遇到了类似的问题.

您可以使用Homebrew(首选)或MacPorts进行安装.

Homebrew命令: brew install gst-ffmpeg

我还建议安装其他软件包.这个命令将安装GStreamer及其所有软件包:brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg.

使用brew search gst搜索,您可能需要有关的GStreamer包等.

祝好运!