我正在尝试创建一个非常简单的 Gstreamer 管道,其中我有一个源元素,即我的 FaceTime 摄像头和一个接收器元素,即 udp 接收器。
我首先使用此处的说明安装 Gstreamer 。我跑了一些基本的管道没问题;但是,当我尝试使用以下命令时
./gst-launch-0.10 v4l2src ! xviimagesink
我收到以下错误:
ERROR: pipeline could not be constructed: no element "v4l2src".
所以我做了一些挖掘,结果发现 v4l2src 插件在 gst-plugins-good 中。我使用以下命令使用 macports 安装了这些优秀的插件:
port install gst-plugins-good
很长一段时间后,一切安装都没有错误。现在 gst-launch 出现在三个地方。
/Library/Frameworks/GStreamer.framework/Versions/0.10/bin/gst-launch-0.10
/opt/local/bin/gst-launch
/opt/local/bin/gst-launch-0.10
如果我尝试从这些目录中的任何一个运行上述管道,我仍然会得到
ERROR: pipeline could not be constructed: no element "v4l2src".
如果我从任何地方键入以下命令,我会收到更多错误,但似乎仍然找不到 v4lsrc。
gst-launch v4l2src ! xviimagesink
给出:
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Not enough memory)
ERROR: pipeline could not be constructed: no element "v4l2src".
所以看起来我有 GStreamer 混乱,我仍然无法让我的相机工作,因为 GStreamer 找不到 v4l2src。
一些帮助将不胜感激!提前致谢。