Log in

View Full Version : Unable to compress film without visible green artefacts (banding)


hihu
6th January 2026, 23:24
Hello everyone,

I'm trying to encode the film “The Bone Collector” but somehow I'm unable to compress it without green blocking artifacts.

I tried several CRF values, ranging from CRF 6 to CRF 22, and also added some tweaks to my command line, including the recommended 10-bit input. Furthermore, I'm using SVT-AV1 but recently tried to use AOM-AV1 on single frames, but even there on CRF 6, I get a lot of banding.
The worst part is at the beginning, during the taxi ride.

Basically I'm using this command line:

ffmpeg -i input.mkv \
-an \
-c:v libsvtav1 -crf 10 -preset 2 -pix_fmt yuv420p10le \
-svtav1-params "aq-mode=2:tune=0:keyint=1s:enable-overlays=1:scd=1:scm=0:enable-variance-boost=1:enable-qm=1:qm-min=0:luminance-qp-bias=20:tf-strength=0:film-grain=6" \
-y output.mkv

I found most of the additional parameters online, and especially enable-variance-boost, luminance-qp-bias=20 is recommended for dark content. I also enabled the recommendations form svt-av1-psy.

The only thing that helps a little is enabling film-grain with low values (4-6) to get rid of the large green veil that lies over the image.

After discovering this "problem" I took a look at other films, and especially dark and not moving image content is problematic, like dark skies with clouds.

Here are some pictures. The original, the SVT AV1 version, and also one encoded with x264. x264 loses plenty of details, but the things that should be black are black.

Is there anything I can optimize in the command line? Or what else could I try.
Thank you very much for your help. Much appreciated.
hihu

GeoffreyA
7th January 2026, 08:44
Hello hihu,

I carefully looked but couldn't find green areas on the picture. I think these are two separate problems. The green could be related to your playback chain. What player and renderer are you using? Do you see green in all scenes? What happens after removing -pix_fmt yuv420p10le? At any rate, there does seem to be a colour shift between the images, the AV1 looking "redder."

Secondly, regarding the banding, that seems present in the source, so debanding would need to be run before encoding; for example, neo_f3kdb.

Not sure how to handle dark scenes in SVT-AV1, but you are on the right track with variance-boost. Try the SVT-AV1-HDR fork (https://github.com/QuickFatHedgehog/FFmpeg-Builds-SVT-AV1-HDR/releases) too; it handles grain better. In x264/5, use -aq-mode 3 for tackling dark scenes.

Z2697
7th January 2026, 14:03
Not even the same frame? Come on.

And x264 loses detail comparing to SVT-AV1? To be nice to each other, I really don't know what to say.
(assuming pic1 is source pic2 is av1 pic3 is x264)

Selur
7th January 2026, 20:11
maybe adding vui signaling of luma scale, color matrix, etc. could help,....

hihu
8th January 2026, 15:23
Hello,

Thank you, GeoffreyA, for your help. You are a genius. It's really related to the playback.
I'm new to this HDR stuff and my Linux system recently integrated HDR in an experimental state.
However, this seems to do the trick. Disabling HDR on the monitor.

I took a look at this forum post from my Windows computer, and I also was unable to spot any difference. This was because HDR was disabled; then I enabled it, and then you were able to see the artifact.
As I'm not experienced with this HDR display, disabling the HDR helps. It seems you are not able to play SDR content on an HDR-enabled display.

I did two encodes of only this picture, with and without HDR, and the HDR version seems to be a little brighter on the HDR monitor with HDR enabled.

@Z2697: Those new pictures are the same frame, just for you info. ref_0011 is the original reference. and 8 bit and 10 bit are the encoded ones.

Thank you
hihu

benwaggoner
12th January 2026, 23:13
@Z2697: Those new pictures are the same frame, just for you info. ref_0011 is the original reference. and 8 bit and 10 bit are the encoded ones.
They look pretty much identical to me other than some slight tone mapping variance. JPEG doesn't really support HDR on any platform I know of, so I'm not sure how you made these or what I am looking at, or should be seeing.