Reputation: 1890
In my C# app I'm using FFmpeg to stream desktop and it works fine. I also want FFmpeg to publish video from web camera. The problem is, that when I use desktop as input, device name parameter is already known (-i video=UScreenCapture), but it's not when I want to use web camera and microphone. So, my question is, how to get web camera and microphone names using C#.
Upvotes: 2
Views: 1668
Reputation: 1890
I hate to answer my own questions, but this time I'll do that. There is "list_devices" command in FFmpeg (ffmpeg -list_devices true -f dshow -i dummy). It gives you list of audio and video inputs. As you can guess, I solved the problem, redirecting FFmpeg's output into my app, executing this command and picking camera/microphone names from it.
Upvotes: 1