OpenCV with FFMPEG h264_v4l2m2m hardware acceleration

Hi All,

Using the NN on the VIM4 with static images is good, but what about video? How can I get hardware acceleration to work? I have set CAP_FFMPEG to enable ffmpeg, but I cant find a way to force it to use hardware

I added in the environment - which seemed to do nothing…
export OPENCV_FFMPEG_CAPTURE_OPTIONS=“video_codec;h264_v4l2m2m”

        cv::VideoCapture cap("rtsp://192.168.10.145:8554/garden_low_cam",cv::CAP_FFMPEG);
        cap.set(cv::CAP_PROP_FRAME_WIDTH, default_width);
        cap.set(cv::CAP_PROP_FRAME_HEIGHT, default_height);

FFMPEG command line works with “-c:v h264_v4l2m2m” perfectly.

Has anyone managed to get hardware video decoders working with h264_v4l2m2m ? - or should I go another route?

Richard