EmguFFmpeg icon indicating copy to clipboard operation
EmguFFmpeg copied to clipboard

How to open a usb camera with emguffmpeg

Open Belial2010 opened this issue 3 years ago • 4 comments

[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

Belial2010 avatar Sep 15 '22 08:09 Belial2010

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 avatar Sep 15 '22 08:09 IOL0ol1

来信已收到,我会尽快回复您信息。

Belial2010 avatar Sep 15 '22 08:09 Belial2010

@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

RobinLJB avatar Dec 07 '22 19:12 RobinLJB

来信已收到,我会尽快回复您信息。

Belial2010 avatar Dec 07 '22 19:12 Belial2010