Ask Your Question

Revision history [back]

For this to work you would need to be able to read from the onboard/usb camera using VideoCapture with FFmpeg. That is the following would need to work on your system

VideoCapture cap(0, CAP_FFMPEG);

on my laptop this fails with the inbuilt web cam.

The reason this needs to work is that cv::cudacodec uses FFmpeg to read video streams which don't come from files.

Out of interest what codec is the video encoded with?