Gstreamer 在 Mac 上找不到内部摄像头
我已经通过自制程序在我的 mac 上安装了 Gstreamer。我想流式传输 Mac 内部摄像头的镜头,但是当我跑步时 gst-device-monitor-1.0
我不断收到探测设备...无法启动设备监视器!
我还尝试使用 GST_DEBUG=2< 运行相同的命令/code> 然后我得到
WARN devicemonitor gstdevicemonitor.c:501:gst_device_monitor_start:<devicemonitor0> No filters have been set, will expose all devices found
0:00:00.002759000 24294 0x7ffc5151c190 WARN devicemonitor gstdevicemonitor.c:507:gst_device_monitor_start:<devicemonitor0> No providers match the current filters
The version I'm running 是
gst-device-monitor-1.0 version 1.20.0
GStreamer 1.20.0
How do I get this to work?我检查了 mac 设置,没有看到任何阻止此操作的内容。如何让 gstreamer 看到我的 Mac 内置摄像头?
I have installed Gstreamer via homebrew on my mac. I want to stream the mac's internal camera's footage, however when I rungst-device-monitor-1.0
I keep getting Probing devices... Failed to start device monitor!
I also tried running the same command with GST_DEBUG=2
and then I get
WARN devicemonitor gstdevicemonitor.c:501:gst_device_monitor_start:<devicemonitor0> No filters have been set, will expose all devices found
0:00:00.002759000 24294 0x7ffc5151c190 WARN devicemonitor gstdevicemonitor.c:507:gst_device_monitor_start:<devicemonitor0> No providers match the current filters
The version I'm running is
gst-device-monitor-1.0 version 1.20.0
GStreamer 1.20.0
How do I get this to work? I have checked the mac settings and I don't see anything that'd block this. How do I make gstreamer see my mac's internal camera?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
设置这个对我有用。
Setting this works for me.
我在 Mac(M1、macOS Monterey)上也遇到同样的问题。这是 gst-device-monitor-1.0 的问题。根据其 源代码< /a> 找不到任何相应的设备提供商:
该问题在一年前出现,至今尚未解决:
https://gitlab.freedesktop.org/gstreamer/gst-插件库/-/issues/780
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/ 667
还是gstreamer本身可以在macOS上访问视频(包括mac的内部摄像头)和音频源。
视频:
音频:
注意:
avfvideosrc
是gst-plugins-bad
的一部分,osxaudiosrc
-gst-plugins-good< 的一部分/代码>
I have the same problem on my Mac (M1, macOS Monterey). It is issue of gst-device-monitor-1.0. According to its source code it cannot find any corresponding device providers:
The problem appeared a year ago and has not yet been resolved:
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/780
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/667
Still gstreamer itself can access video (including mac's internal camera) and audio sources on macOS just fine.
Video:
Audio:
Note:
avfvideosrc
is part ofgst-plugins-bad
,osxaudiosrc
- part ofgst-plugins-good