我正在尝试使用ffmpeg从卡中捕获视频,但我无法获得Capture引脚。 我写了一个以下命令:
ffmpeg -list_devices true -f dshow -i dummy
获取信息:
[dshow @ 0000000002b1f680] DirectShow video devices
[dshow @ 0000000002b1f680] "MB86H55-REB PCI Capture(0)"
[dshow @ 0000000002b1f680] "MB86H55-REB PCI Capture(1)"
[dshow @ 0000000002b1f680] "MB86H55-REB PCI Capture(2)"
[dshow @ 0000000002b1f680] "MB86H55-REB PCI Capture(3)"
[dshow @ 0000000002b1f680] "MB86H55-REB PCI Capture(4)"
[dshow @ 0000000002b1f680] "MB86H55-REB PCI Capture(5)"
[dshow @ 0000000002b1f680] "MB86H55-REB PCI Capture(6)"
[dshow @ 0000000002b1f680] "MB86H55-REB PCI Capture(7)"
[dshow @ 0000000002b1f680] DirectShow audio devices
所以我有一个支持DirectShow的设备。在此之后,我想查看我的支持分辨率和这些卡的参数。
ffmpeg -list_options true -f dshow -i video="MB86H55-REB PCI Capture(0)"
并且发现我只流出了这张卡而没有参数。
[dshow @ 0000000002b7f680] DirectShow video device options
[dshow @ 0000000002b7f680] Pin "Stream Out"
[dshow @ 0000000002b7f680] Pin "Virtual Stream Out"
我无法通过ffmpeg获取任何流,甚至无法显示预览。 知道为什么它不起作用吗?