![](/img/trans.png)
[英]Is there an equivalent to /dev/null that will work on both Windows and Unix?
[英]What is windows equivalent to linux's /dev/video0?
我想知道是否有人知道如何像在 linux - /dev/video0 中那樣在 windows 中找到網絡攝像頭。 我需要這個用於java,所以這可以啟動網絡攝像頭frameGrabber = new FFmpegFrameGrabber("path_to_webcam");
只是想知道你是否修復了它我發現在 Windows 中使用 ffmpeg 類似,因為在 linux 中我們只使用“/dev/video0”,但在 Windows 中我們必須指定視頻接口的名稱
並且如果你想擁有你的設備名稱,你就是這樣
ffmpeg -list_devices true -f dshow -i dummy
對於我的例子,我得到了一個很長的答案,因為這就像傾倒所有設備以獲得正確的設備,
...
[dshow @ 03e746c0] DirectShow video devices (some may be both video and audio devices)
[dshow @ 03e746c0] "Integrated Camera"
...
在文檔中,他們提到了一種叫做 DirectShow 的東西
如果您想對此進行記錄,請點擊此處的鏈接
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.