Thanks for helping me understand. I hadn’t quite realised how confusing ffmpeg’s release schedules are. At any given point, they have parallel support for 3+ release versions, which gets incredibly confusing when I also have to deal with their compatibility to different CUDA versions.
More broadly, I am on a video-processing project, where I am using OpenCV matrices. I need a way to stream it over network, say SRT, which is why I needed to compile ffmpeg with OpenCV. So far, so good. I needed hardware acceleration to address CPU throttling, which is when I started running into version mismatches and incompatibilities between ffmpeg, opencv and cuda.