I wasn’t refering to cv2.cudacodec
I was refering to the way to use hardware acceleration through cv2.VideoCapture
without env vars, i.e.
cap = cv2.VideoCapture("rtsp://....", cv2.CAP_FFMPEG, [cv2.CAP_PROP_HW_ACCELERATION, cv2.VIDEO_ACCELERATION_ANY ]);
Not all native FFMpeg options are supported by cv2.VideoCaptur
e with the FFMpeg backend.
pix_format is unlikely to be supported because cv2.VideoCapture
only outputs BGR frames. Isn’t preset and encoding option?
Which options do you need?