framework icon indicating copy to clipboard operation
framework copied to clipboard

Accord.Video.DirectShow doesn't work with usb camera on Windows 10

Open AleksOrl opened this issue 7 years ago • 2 comments

What would you like to submit? (put an 'x' inside the bracket that applies)

  • [ ] question
  • [x] bug report
  • [ ] feature request

Issue description This code from Accord.Video.DirectShow doesn't work with usb camera on Windows 10.

var devices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
var cVideoCaptureDevice = new VideoCaptureDevice(devices[0].MonikerString);
cVideoCaptureDevice.NewFrame += getFrame;
cVideoCaptureDevice.Start();

After Start method is called IsRunning property equals true, but NewFrame event never triggers. var isRunning = cVideoCaptureDevice.IsRunning; // true

AleksOrl avatar Feb 07 '18 09:02 AleksOrl

I have this same issue, using 3.8.0 out of Nuget

  1. The camera works if the project is built with "Any CPU"
  2. The camera does not work if the project is built with x64.

XPav avatar Nov 26 '18 21:11 XPav

Accord.Video.DirectShow doesn't work with usb camera on Windows 10. I have this same issue, using 3.8.0 out of Nuget and .net 4.0, on Microsoft Visual Studio Community 2019. All build type, x86, Any CPU, Mixed Platforms do not work.

NewFrameEvent and VideoSourceErrorEvent never been triggered.

Owen16888 avatar Oct 06 '20 00:10 Owen16888