Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters to obtain more grain #552

Open
Einst1969 opened this issue Feb 4, 2024 · 4 comments
Open

Parameters to obtain more grain #552

Einst1969 opened this issue Feb 4, 2024 · 4 comments

Comments

@Einst1969
Copy link

Einst1969 commented Feb 4, 2024

Hi, I'm new here. I'm using this encoder on staxrip 2.35. I have a video that has a certain bitrate and I need to re-encode it to permanently add forced subtitles. I tried CQP and QVBR mode, H.265 codec, Preset p7, output depth 8 and 10, both with and without AQ 0. Example paramenters :"--cqp 21 --codec h265 --preset P7 --output-depth 10 --aq" .I made sure to have the same bitrate as the source but the resulting file is a bit "blurry" which means it removes some grain. Are there any parameters that can help me? Thanks

@rigaya
Copy link
Owner

rigaya commented Feb 5, 2024

Unfortunately, I found it difficult to keep the grains in NVENC encoding. --aq-temporal or simply increasing size might change but very difficult to avoid getting blurry.

@Einst1969
Copy link
Author

Einst1969 commented Feb 6, 2024

Hi, I found a solution. Much grain is kept with AQ spatial + AQ Strengh 15 for the same used bitrate.
15 is the maximum?
Then another thing: I tried QVBR, and compared to QCP creates images with more blur. I had already noticed before but with the old version. It seems that even with this version QVBR it creates images with more blur than QCP. I tried to use more bitrate, from 5200 to 7700 but there is still a little blur in QVBR mode (7700b/sec) compared to CPQ (5200b/sec). It's normal or there is a problem? Thank you

@rigaya
Copy link
Owner

rigaya commented Feb 7, 2024

Yes, --aq-strength 15 is the strongest possible.

I'm not sure with qvbr vs cqp, but generally cqp allows to follow temporal changes better, however bitrate spikes can occur and there is no control over the maximum bitrate.

@Aesthermortis
Copy link

I have also tried many settings to try to maintain the grain of the video but without much result, what I was able to avoid a little was the blur. By deactivating the insertion of adaptive B frames and other parameters that affect the image such as temporal filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants