Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
ffmpeg: Introduce 'cuda' hwaccel and deprecate 'cuvid'
We want to switch to using the generic hwaccel codepath but doing that introduces a requirement to pass '-hwaccel_output_format cuda' on the command line to turn on full transcoding. That breaks compatibility, so we'd rather deprecate than cut over directly. But this change doesn't seem to be working. I can specify one of the two hwaccels but the 'cuda' one doesn't seem to work. The context does not get shared between the decoder and encoder. If I reverse the declaration order of the two hwaccels, then 'cuda' works and 'cuvid' does not (cuvid_init isn't even called). I assume this is related to having both of them say they handle the same pix_fmt.
- Loading branch information
Showing
with
9 additions
and 0 deletions.
- +1 −0 ffmpeg.h
- +6 −0 ffmpeg_cuvid.c
- +2 −0 ffmpeg_opt.c