sdcb / Sdcb.FFmpeg

FFmpeg basic .NET API generated by CppSharp
GNU Lesser General Public License v3.0
318 stars 50 forks source link

[FFmpeg error -2]: No such file or directory #24

Open nowayout opened 2 weeks ago

nowayout commented 2 weeks ago

[FFmpeg error -2]: No such file or directory 用下面的代码列出USB摄像头,报错 var dict = new MediaDictionary(); dict.Set("list_devices", "true", 0); using FormatContext inFc = FormatContext.OpenInputUrl("video=dummy", InputFormat.FindByShortName("dshow"), dict); inFc.LoadStreamInfo();

nowayout commented 2 weeks ago

就是相当于这个命令 ffmpeg.exe -list_devices true -f dshow -i dummy