How to open a usb camera with emguffmpeg
[optional] upload the media file that is in question.
ffmpeg version: 1.0.11
question:
In my app, we want to grab video stream from a usb camera, but did not get a api or a way to open the usb camear.
my codes as follow: string videoName = "0"; MediaReader reader = new MediaReader(videoName, null, null));
it throws a exception: FFmpeg error [-2] No such file or directory
Here's an example code to get an audio device that might help you: https://github.com/IOL0ol1/EmguFFmpeg/blob/dev/examples/EmguFFmpeg.Example/RecordingAudio.cs#L38
It is best to check the documentation for the use of ffmpeg. http://www.ffmpeg.org/ffmpeg-devices.html#dshow http://www.ffmpeg.org/ffmpeg-devices.html#vfwcap
来信已收到,我会尽快回复您信息。
@IOL0ol1 Here's an example code to get an audio device that might help you: https://github.com/IOL0ol1/EmguFFmpeg/blob/dev/examples/EmguFFmpeg.Example/RecordingAudio.cs#L38
this link seems invalid now
来信已收到,我会尽快回复您信息。