Gstreamer Mac OS X udpsink 错误
我正在尝试在 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 …
这适用于 Windows,将 osxaudiosrc
替换为 autoaudiosrc
,有人知道问题是什么吗?
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能缺少 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 的其他软件包。祝你好运!
You might be missing the gst-ffmpeg plugin. I'm saying this because I'd encoutered a similiar problem.
You can install it using Homebrew (preferred) or MacPorts.
Homebrew command:
brew install gst-ffmpeg
I would also suggest installing the other packages. This command will install GStreamer and all it's packages:
brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg
.Use
brew search gst
to search for other packages that you might need concerning GStreamer.Good luck!
udpsink/multiudpsink 代码中存在与启用 IPV6 的系统和套接字创建相关的错误。
如果您用 C 语言编写管道,则可以通过手动创建要使用的套接字并将其用于接收器来绕过此问题,如下所示。
如果您只是打算使用 gst-launch 来使用它,恐怕您将不得不通过 multiudpsink.c 编辑您的方式,直到您弄清楚如何绕过。
There is a bug in the udpsink/multiudpsink code related to IPV6 enabled systems and socket creation.
If you are coding up your pipeline in C you can bypass this by manually creating the socket to use and using that for the sink like so.
If you were just going to use it using gst-launch I'm afraid that you will have to edit your way through multiudpsink.c until you figure out how to bypass thus.
此错误已在 GStreamer-1.0 中修复,因此请安装(例如
port install gstreamer1-gst-plugins-good
)并运行 - 确保使用 v1 管道:This bug has been fixed in GStreamer-1.0 so install (e.g.
port install gstreamer1-gst-plugins-good
) and run - making sure you use the v1 pipeline: