obs studio 编译摄像头源,即视频捕获设备,可以从添加源中找到并使用它 - 下载源码 git clone https://github.com/obsproject/libdshowcapture.git - 删除 .git 目录,然后全部拷贝到 plugins\win-dshow\libdshowcapture 目录即可,原来的这个目录是空的,因为这个库是独立出来开发的 - 使用 cmake 重新执行一遍配置/生成 - 打开项目使用 vs 再次编译运行即可