rigaya / NVEnc

NVENCによる高速エンコードの性能実験
https://rigaya34589.blog.fc2.com/blog-category-17.html
Other
1.03k stars 108 forks source link

CQP Value does not appear to scale correctly with large input videos #597

Closed Kim2091 closed 1 week ago

Kim2091 commented 1 week ago

When re-encoding large videos, CQP does not appear to scale properly past a certain point.

For example, with a 1.6 GB FFV1 lossless video, I attempted to re-encode it down to 25 MB. Doing so is impossible with CQP in your encoder.

Setting CQP 21 or CQP 48 does not matter, as it yields nearly the exact same video size and quality (of about 480 MB). I cannot get it lower. Switching to VBR does allow it to function properly however.

This also applies to QSVEnc. I will open a separate issue there

rigaya commented 1 week ago

Unfortuantely, I’m not able to find problem with CQP.

I've tested below in bat file, and scales perfectly well.

for %%i in (10 15 20 25 30 35 40 45 50) do NVEncC64.exe -i input.mp4 -o test%%i.mp4 --log test%%i.log --cqp %%i

CPU 12th Gen Intel Core i9-12900K [4.97GHz] (8P+8E,16C/24T) GPU #0: NVIDIA GeForce RTX 4080 (9728 cores, 2505 MHz)[PCIe4x16][555.85]

image

Kim2091 commented 1 week ago

I appreciate your response. I will get back to you with a sample test clip that I know has been problematic, and some results.

Kim2091 commented 1 week ago

Of course, right after I open the issue on GitHub I am unable to reproduce it...

My tests are now aligning with yours for NVEnc. I tested HEVC and AV1. They all scale properly. I will close this issue, thank you

rigaya commented 1 week ago

Thank you for your update and closing the issue.

Bit weird, but nice that now you don't have the problem