Opened 2 weeks ago

Last modified 2 weeks ago

#11365 new defect

wrong qmin range for av1_nvenc

Reported by: y1dj1sqd Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords: NVENC av1_nvenc qmin
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% ffmpeg -i input.mkv -an -c:v av1_nvenc -b:v 4M -qmin 80 output.mkv

ffmpeg version N-118106-g350ebef112-20241222 Copyright (c) 2000-2024 the FFmpeg developers

built on 2024-12-22

It does print the following error:

Value 80.000000 for parameter 'qmin' out of range [-1 - 69]
Error setting option qmin to value 80.

It thinks that the QP range would end at 69 but av1_nvenc qp range max is 255.

Change History (3)

comment:1 by Timo R., 2 weeks ago

qmin is a global option, nvenc has no influence on the range there.
Not sure if the range of the global option can just be extended without further consequences.

comment:2 by y1dj1sqd, 2 weeks ago

In case this is not possible with the global option is there another way to set higher minQP values for nvenc?

comment:3 by Timo R., 2 weeks ago

No, an entire new option will need to be added, which in a sense is a breaking change.
Alternative, for AV1, the value could be multiplied by some factor, to at least somewhat match its range.

Note: See TracTickets for help on using tickets.