如何从 USB 视频捕获中抓取视频 + 带 gstreamer 的 DVB 设备?
我拥有一个 avermedia volar HX USB 棒,我想从复合输入捕获,但我不能,因为我无法选择输入。 我正在将 gstreamer 与 + python 一起使用,我想我需要使用 gsttuner 选择输入,但我没有使用 gstreamer 接口的经验。 有人可以发布一个简单的例子吗?
谢谢!
I own a avermedia volar HX usb stick, I want to capture fromthe composite input , but I can't because I'm unable to select the input. I'm using gstreamer with + python, I think I need to use gsttuner select input but I have no experience using gstreamer's interfaces. Could someone post a simple example?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
上面显示的代码看起来基本上是正确的,但它会在 v4l2 的岩石上挣扎。 您获得的字符串将取决于您拥有的卡:
到目前为止,我遇到过四种不同的卡:
另请注意,某些卡将具有驱动程序谎言,因为芯片组有四个输入,驱动程序通常会报告四个输入,即使制造商只连接其中两个。
The code shown above seems basically correct, but it will flounder on the rocks of v4l2. The strings you get will depend on what card you have:
On four different cards so far I've encountered:
Also be aware that some cards will have the driver lie, since the chip set has four inputs, the driver will often report four, even if the manufacturer only connects to two of them.
对于任何遇到此问题的人来说,自最初发布以来,一些内部 gstreamer 更改可能现在需要 gst.STATE_READY 而不是 STATE_PAUSED。 让我困惑的是,我遇到的捕获设备似乎有一半默认为 PAL,我需要使用 GST_TUNER 接口来更改它。
To anyone stumbling on this, some internal gstreamer changes since this was originally posted may require gst.STATE_READY now instead of STATE_PAUSED. Tripped me up as it seems half the capture devices I encounter default to PAL and I need to use the GST_TUNER interface to change it.