[FFmpeg-devel] [PATCH] avcodec/nvenc: add AV1 encoding support
Timo Rothenpieler
timo at rothenpieler.org
Wed Nov 2 12:12:57 EET 2022
On 02/11/2022 02:14, Andreas Rheinhardt wrote:
> Timo Rothenpieler:
>> ---
>>
>> diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
>> index 3c6fce391d..9a1a1fcc37 100644
>> --- a/libavcodec/nvenc.c
>> +++ b/libavcodec/nvenc.c
>> @@ -1,5 +1,5 @@
>> /*
>> - * H.264/HEVC hardware encoding using nvidia nvenc
>> + * H.264/HEVC/AV1 hardware encoding using nvidia nvenc
>> * Copyright (c) 2016 Timo Rothenpieler <timo at rothenpieler.org>
>> *
>> * This file is part of FFmpeg.
>> @@ -222,8 +222,14 @@ static void nvenc_map_preset(NvencContext *ctx)
>>
>> static void nvenc_print_driver_requirement(AVCodecContext *avctx, int level)
>> {
>> -#if NVENCAPI_CHECK_VERSION(11, 2)
>> +#if NVENCAPI_CHECK_VERSION(12, 1)
>> const char *minver = "(unknown)";
>> +#elif NVENCAPI_CHECK_VERSION(12, 0)
>> +# if defined(_WIN32) || defined(__CYGWIN__)
>> + const char *minver = "???.??";
>> +# else
>> + const char *minver = "???.??";
>> +# endif
>
> Either one of the above is wrong or the above #if is superfluous (or I
> am blind).
Video SDK 12 is not released yet, so there is no documentation on the
driver versions.
Whenever it gets release, which was scheduled to happen in October
already, those need filled in.
More information about the ffmpeg-devel
mailing list