Sdcb.FFmpeg icon indicating copy to clipboard operation
Sdcb.FFmpeg copied to clipboard

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

Open nowayout opened this issue 1 year ago • 1 comments

[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 avatar Jul 09 '24 08:07 nowayout

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

nowayout avatar Jul 10 '24 01:07 nowayout