简体   繁体   English

什么是相当于 linux 的 /dev/video0 的 windows?

[英]What is windows equivalent to linux's /dev/video0?

I was wondering if anyone knows how to find webcam in windows like you do in linux - /dev/video0.我想知道是否有人知道如何像在 linux - /dev/video0 中那样在 windows 中找到网络摄像头。 I need this for java so this could start webcam frameGrabber = new FFmpegFrameGrabber("path_to_webcam");我需要这个用于java,所以这可以启动网络摄像头frameGrabber = new FFmpegFrameGrabber("path_to_webcam");

Just want to know if you got It fixed I found something similar to that using ffmpeg in windows, as in linux we use just the "/dev/video0", but in windows we have to specify the name of the video interface只是想知道你是否修复了它我发现在 Windows 中使用 ffmpeg 类似,因为在 linux 中我们只使用“/dev/video0”,但在 Windows 中我们必须指定视频接口的名称

and If you want to have the name of you device you have this is how并且如果你想拥有你的设备名称,你就是这样

ffmpeg -list_devices true -f dshow -i dummy

and for my example, I got a long answer as It's like dumping all the devices to get the right one,对于我的例子,我得到了一个很长的答案,因为这就像倾倒所有设备以获得正确的设备,

...
 [dshow @ 03e746c0] DirectShow video devices (some may be both video and audio devices)
[dshow @ 03e746c0]  "Integrated Camera"
...

In the documentation they mention something called DirectShow在文档中,他们提到了一种叫做 DirectShow 的东西

here's the link if you want to get documented about that如果您想对此进行记录,请点击此处的链接

https://trac.ffmpeg.org/wiki/DirectShow https://trac.ffmpeg.org/wiki/DirectShow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM