Just for info, cv::cudacodec::VideoWriter has been fixed and you should be able to use to write to raw .h264 and .hevc files if you have an Nvidia GPU. See here for an example.
Just for info, cv::cudacodec::VideoWriter has been fixed and you should be able to use to write to raw .h264 and .hevc files if you have an Nvidia GPU. See here for an example.