Replies: 1 comment
-
AOM and SVT-AV1 both map values 0-63 to 0-255 internally. Multiplying 0-63 by 4 gives a close enough approximation (all values are equivalent except for the mappings for 62 and 63) and, realistically, no one is or should be selecting the higher values. https://aomedia.googlesource.com/aom/+/refs/tags/v3.8.1/av1/encoder/av1_quantize.c#895 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
FFmpeg says the QP levels for the AV1 NVENC encoder go from
-1
to255
, see:ffmpeg -hide_banner -h encoder=av1_nvenc
However in OBS the max level in CQP mode for AV1 is
![image](https://private-user-images.githubusercontent.com/12885163/301658095-24ebc47c-04e9-4a35-a4d9-26699c56d4c8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5NzUxNjUsIm5iZiI6MTcxOTk3NDg2NSwicGF0aCI6Ii8xMjg4NTE2My8zMDE2NTgwOTUtMjRlYmM0N2MtMDRlOS00YTM1LWE0ZDktMjY2OTljNTZkNGM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDAyNDc0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0Y2EzNTMzZGY3ODE3NTYzYWQ1OTAyZTgwYzliMTBiMGRlZjBmZGRhMzI2NGI0ZmYyMmRiYTExYzg2MmM4N2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lUSEFqu1vrTqw9TFJFmEUZP1SsHyAQhh6K3rNfcBO4c)
63
:Looking at the code, this value is later multiplied by 4:
obs-studio/plugins/obs-ffmpeg/obs-nvenc.c
Line 671 in c25f059
Why not expose the raw value like it is done for the other codecs?
Beta Was this translation helpful? Give feedback.
All reactions