I have 2 videos to be decoded, and I have 2 available gpus.
I want to construct two video captures to decode video 0 with gpu 0 and decode video 1 with gpu 1.
Is there any ways like:
cv::VideoCapture vc0 = cv::VideoCapture(name0, "gpu_idx", 0)
cv::VideoCapture vc1 = cv::VideoCapture(name1, "gpu_idx", 1)
How can I achieve this feature? Thanks!
BTW, I set
OPENCV_FFMPEG_CAPTURE_OPTIONS="video_codec;h264_cuvid"
to use ffmpeg with cuvid to decode videos in opencv.