Log in

View Full Version : x264 creating banding?


Chengbin
1st September 2009, 18:43
I have this video that I used GradFun2dB to deband, and then encode with x264.

The problem is, the image is clean under virtual dub after filtering, but encoding with x264, the image contains banding.

I thought there wasn't enough bitrate, so I used CRF 1, and it still exists. But using CRF 0 (lossless), the image is the same as in virtual dub (obviously)

I thought some settings would cause this, so I played around, to the point I used --preset ultrafast with CRF 1, the banding is still created.

Here is the clip (already filtered, lossless). Encoding this clip is the same as running my script.

http://www.megaupload.com/?d=U2SFQ56H

Anybody have a clue to this problem?

EDIT: I think it might be a bitrate issue, because even in CRF 1 (using high settings), the bitrate is only 954Kbps using the same clip I uploaded.

Sharc
1st September 2009, 19:05
Banding has been discussed a lot. See for example here:
http://forum.doom9.org/showthread.php?p=1228109#post1228109

Chengbin
1st September 2009, 19:34
I just realized I forgot something VERY important, qpmin...

skynetman
1st September 2009, 19:43
Would also a standard preset solve the problem?

thewebchat
1st September 2009, 19:46
I am going to leave out the fact that your horrific filtering has distorted all the edges into unrecognizable squiggles, but I was able to encode this (static) clip with x264 at CRF=16 using PsyRD 1.2:0.2, AQ 1.5, and preset=placebo without any banding. See: http://www.sendspace.com/file/rfzvka

Forteen88
1st September 2009, 21:22
Yeah, "AQ 1.5" helps against banding, although I'd only use such value for banding video (normally I like AQ 0.8).

Assassinator
2nd September 2009, 14:20
If you want to hold dither, just raise psy-rd. Example (http://zingaburga.com/assassinator/Storage/banding.mp4). (The band between the hair and the door is there in the lossless you uploaded too).

And as thewebchat pointed out... Your filtering kills way too much details and distorts everything. Cut down on the warpsharp and blur. If it's the same source as this (http://forum.doom9.org/showthread.php?t=149204), why don't you just listen to the advice provided to you by many others, that is, it's not real HD, spline36resize(848,480).

Chengbin
2nd September 2009, 14:29
And as thewebchat pointed out... Your filtering kills way too much details and distorts everything. Cut down on the warpsharp and blur. If it's the same source as this (http://forum.doom9.org/showthread.php?t=149204), why don't you just listen to the advice provided to you by many others, that is, it's not real HD, spline36resize(848,480).

Can a person not conduct experiments?

I've said repeatedly I am going to encode to SD, but would like to play with HD to learn Avisynth.

Firebird
2nd September 2009, 14:31
Addgrain() then raise psy-rd.