FFmpeg arrow + cuda test failures with Kwiver V2
When FFmpeg and Cuda are enabled, this automatically enables cuda support in the FFmpeg arrow.
In my local testing, 20 ffmpeg tests fail, including ones that pass without cuda enabled. They all seem to fail to create the CUDA decoder. We've upgraded ffmpeg to 5.1.2 and cuda to 12.3.
The first failure, ffmpeg_video_input.seek_frame, starts with this, on a local ubuntu 22.04 build:
WARN ffmpeg_init.cxx(47): [h264_cuvid @ 0x55ec77f26900] Invalid pkt_timebase, passing timestamps as-is.
WARN ffmpeg_init.cxx(47): [h264_cuvid @ 0x55ec77f26900] ctx->cvdl->cuvidCreateDecoder(&ctx->cudecoder, &cuinfo) failed680: 2024-04-01 11:40:54.308 WARN ffmpeg_init.cxx(47): -> CUDA_ERROR_NOT_SUPPORTED: operation not supported
WARN ffmpeg_init.cxx(47): [h264_cuvid @ 0x55ec77f26900] ctx->cvdl->cuvidDecodePicture(ctx->cudecoder, picparams) failed
WARN ffmpeg_init.cxx(47): -> CUDA_ERROR_INVALID_HANDLE: invalid resource handle
WARN ffmpeg_init.cxx(47): [h264_cuvid @ 0x55ec77f26900] cuvid decode callback error
WARN ffmpeg_video_input.cxx(1220): Could not read beginning of video with codec h264_cuvid (Nvidia CUVID H264 decoder): Generic error in an external library
Edited by Aron Helser