AV1 - grain and sharpness

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
klausbremst
Posts: 16
Joined: Thu Mar 02, 2023 11:59 am

AV1 - grain and sharpness

Post by klausbremst »

a post in reddit mentioned, that with AV1 encoding vs 265 encoding it is important to set the encoding to "movie grain" in order to prevent that faces become flat and without details.
Now i wonder where to set "film qualty" in handbrake 161.

In the denoise filter I see an option for film.
And in sharpness filter, I see an option as well.
Both filters however reduce the encoding speed.

Is there a better global way and setting to ensure that the encoding tries to keep details in faces and so on?
So, I do not care with filters?
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: AV1 - grain and sharpness

Post by mduell »

It would be an encoder tune, not a filter.
Deleted User 11865

Re: AV1 - grain and sharpness

Post by Deleted User 11865 »

klausbremst
Posts: 16
Joined: Thu Mar 02, 2023 11:59 am

Re: AV1 - grain and sharpness

Post by klausbremst »

@mduell
"would be an encoder tune"

pls have a look at this article:
https://www.reddit.com/r/AV1/comments/o ... se_of_use/
It is 2 years old, but is referring to recommended handbrake settings regarding grain.
However I do not find such settings as encoder tune.
I use the nlmeans filter mostly ultralight with tuning "film"

It seams there is no general encoder tune as gui available in handbrake.
And I wonder, what to do, when more sharpness is needed.
The unsharpen filter is not very specific documented - at least in German language.
The LapSharp filter is better documented. I use the tuning "film" as well. But I guess, that there is no impact on the general grain.

To summarize:
I have the notion, that the handbrake gui has no encoder tune besides using the noise filter, which is however slowing down the encoding very much.

@rodeo
I was referring to handbrake and gui settings and not to AOMedia Codec and the formulas.
Deleted User 11865

Re: AV1 - grain and sharpness

Post by Deleted User 11865 »

There's a text box for advanced encoder options. That's where you would use SVT-AV1's "film-grain" and related options.
klausbremst
Posts: 16
Joined: Thu Mar 02, 2023 11:59 am

Re: AV1 - grain and sharpness

Post by klausbremst »

Good advice, Rodeo.
Do you have a notion, what to put in there?
I am not a developer ...
And in the end it should be more effective from the timing as the noise filter.
Or should I maybe ask in another section of the handbrake forum?
Deleted User 11865

Re: AV1 - grain and sharpness

Post by Deleted User 11865 »

https://gitlab.com/AOMediaCodec/SVT-AV1 ... tav1params
https://gitlab.com/AOMediaCodec/SVT-AV1 ... ic-options

--film-grain n becomes film-grain=n where n in between 0 and 50; I've seen anecdotal evidence of people recommending 10 here and there.
klausbremst
Posts: 16
Joined: Thu Mar 02, 2023 11:59 am

Re: AV1 - grain and sharpness

Post by klausbremst »

thanks Rodeo, for the links.
There are 2 settings for noise. I will try them.

I detected, that for H.264 there are tuning settings in the GUI available.
Even some for H.265.
But none for AV1. So I need to evaluate the above.
Deleted User 11865

Re: AV1 - grain and sharpness

Post by Deleted User 11865 »

x264 and x265 have tunes to better preserve source grain. AV1 doesn't bother with it and goes for denoise + grain synthesis as documented earlier ( https://gitlab.com/AOMediaCodec/SVT-AV1 ... nthesis.md )
klausbremst
Posts: 16
Joined: Thu Mar 02, 2023 11:59 am

Re: AV1 - grain and sharpness

Post by klausbremst »

Sorry,
now I come to the question how to use the additional parameters:
I address the Video tab in the GUI, encoder settings, text window 'additional settings'
there I enter:
'--film-grain 50 --film-grain-denoise 1'
But the protocol tells me:
'encsvtav1: error parsing option --film-grain 50 --film-grain-denoise 1: (null)'

How can I use the parameter window and/or the film-grain options correctly?
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: AV1 - grain and sharpness

Post by mduell »

option=value:option=value
Post Reply