Ask Your Question

Revision history [back]

Brio Capture Settings on Windows

Hullo everyone,

I'm trying to capture 720p 60fps video from a Logitech Brio on Windows. This should be a supported format, and it works correctly using OBS, but when I try to set this up using a cv::VideoCapture all the props seem to be ignored. My captured image ends up being 480x640, 30fps.

The full file is here, but a snippet is below. What should I be changing?

https://github.com/calben/OpenFace/blob/master/exe/FaceLandmarkVid/FaceLandmarkVid.cpp

    cv::VideoCapture video_capture;
    cv::Mat captured_image;
    video_capture.set(cv::CAP_PROP_FRAME_WIDTH, 1920);
    video_capture.set(cv::CAP_PROP_FRAME_HEIGHT, 1080);
    video_capture.set(cv::CAP_PROP_FPS, 60);
    video_capture.set(cv::CAP_PROP_CONVERT_RGB, 0);
    INFO_STREAM("Attempting to capture from device: " << device);
    video_capture = cv::VideoCapture(device);

    if (!video_capture.isOpened())
    {
        FATAL_STREAM("Failed to open video source");
        return 1;
    }

    INFO_STREAM("Device or file opened");
            video_capture >> captured_image;

Thanks for any help!!