Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
26th June 2012, 07:01 | #561 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Overlap: check the content of the planes by converting them to luma only. I don't know how your software converts YV12 to RGB for display, this may be an interpolation issue.
Conversion to YUY2: Don't use Dither_get_msb() to convert from 16 to 8 because it would leave the lsb information aside, use only DitherPost(). Anyway your example doesn't even need 16-bit processing, because you just pointresize (no interpolation) and keep the result in 8 bits. And it's even simpler on Avisynth 2.6: ConvertToYUY2 (chromaresample="point").
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
26th June 2012, 09:12 | #562 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
ConvertToYUY2 (chromaresample="point") has to be followed by MergeChroma(PointResize(width, height, 0, 1)) to get the desired effect of doubling every chroma line. |
|
26th June 2012, 22:42 | #563 | Link |
Registered User
Join Date: Jul 2011
Posts: 32
|
I thought it looked like a resize artifact but I see it at 100% too if that matters which I suspect it doesn't since you say it's an YV12 to RGB issue. I am using AvsPmod 2.2.1 and at sat=0 I don't see it. Avisynth stackvertical isn't doing it, I don't think, and I see it with mdegrain lsb out but since it adds a border I am guessing it doesn't matter for that. I see no signs of it with dither post either (but maybe I don't know what I'm talking about). Used dither display as srgb and still saw it with point kernel.
After finding out about resize and converttoyuy2 bugs for 2.5.8 I don't trust internal filters and want to use dither for almost everything. Point resize doesn't alter lsb so I cut it off and it also doesn't lowpass, right? I don't want to unnecessarily lowpass or supersample the video when processing. Last edited by atra dies; 27th June 2012 at 05:21. |
7th July 2012, 15:16 | #567 | Link |
Registered User
Join Date: Sep 2009
Posts: 378
|
hi, I notice in dither tools docs examples using Gradfun3 as final op to go from 16bit to 8bit instead of a dither function, it is under the simple debanding heading I think, is using Gradfun3 a suitable alternative to a dither method specifically if further processing outside a avisynth is envisaged.
Also when going to RGB48 is a dither method involved, if so which is default, same query for going to 10bit lossless h264. Cheers |
8th July 2012, 10:09 | #568 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
GradFun3() calls DitherPost() internally, but does other things before to deband the input clip. Dithering is only the process of reducing the bitdepth with less perceptual loss than the naive way. If you don't need debanding, just call DitherPost() on your 16-bit clip.
When you're going to RGB48Y, there is no dithering involved, because dithering is only used when reducing the bitdepth. However Dither_quantize() does dithering and has the same default settings as DitherPost().
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
18th July 2012, 20:41 | #571 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Dither v1.19.0:
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
21st July 2012, 07:48 | #574 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Not a the moment.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
26th July 2012, 13:59 | #575 | Link |
Registered User
Join Date: May 2012
Posts: 23
|
I stumbled on this thread after searching for "Death Note" and "debanding". I have some debanding and I wanted to get rid of it. I am using the following script...
Code:
# functions that load clip here... animeivtc(mode=1,aa=0,killcomb=2) crop(0,2,0,0) blackmanresize(720,400,taps=4) fft3dfilter(sigma=3,bw=32,bh=32,ow=16,oh=16,plane=4) limitedsharpenfaster(strength=200) toon(0.5) ediaa() awarpsharp2() gradfun3(thr=0.4,smode=2) tweak(sat=1.1) I still get banding, although it is much less noticable. I remembered reading a while ago that for sources with banding that dithering or adjusting the video levels can fix the problem. Since I'm relativily new to avisynth I was hoping someone here could explain to me what that means or give me a general idea about how to combat banding in general. From what I can tell it is a problem that occurs primarily in areas with low tonal/color range. I read that it can be fixed by dithering or increasing the bits per pixel. I understand that the dither package uses ordered dithering. I'm assuming that the other technique would be to increase the bit per pixel of the image, right? Is increasing the bits per pixel similar to adjusting video levels? Is this an x264 setting? Sorry if these questions have obvious answers, like I said, I'm new to this and I'm just trying to understand the potential solutions to the problems with my video source. |
26th July 2012, 15:16 | #577 | Link |
Registered User
Join Date: Dec 2007
Location: Germany
Posts: 632
|
You can be almost sure that Tweak(sat=1.1) does, more or less, introduce (chroma) banding because it does not work with high precision and dithering.
Therefore, I'd suggest to put Gradfun3() at the end and use SmoothTweak(saturation=1.1) instead. I don't think adjusting levels would reduce banding, that seems illogical. Well, maybe exept if you adjust the levels so that the banding gets hidden in total blackness. Last edited by TheSkiller; 26th July 2012 at 15:20. |
26th July 2012, 17:23 | #578 | Link | ||
Registered User
Join Date: May 2012
Posts: 23
|
Quote:
Quote:
|
||
26th July 2012, 21:55 | #579 | Link | |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
Code:
Tweak(sat=1.1, dither=true) |
|
27th July 2012, 14:25 | #580 | Link | |
Registered User
Join Date: Dec 2007
Location: Germany
Posts: 632
|
Quote:
If you want to try other denoisers you could give MC_Spuds a shot for example. I have used that on a pretty grainy VHS tape Walt Disney animated movie and got great results. It's not a very newb-friendly script though, you need tons of plugins. @ Wilbert Thanks, I didn't know Tweak now comes with a dithering option. Last edited by TheSkiller; 27th July 2012 at 14:27. |
|
Tags |
color banding, deblocking, noise reduction |
|
|