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. |
19th October 2006, 03:17 | #1 | Link |
Registered User
Join Date: Mar 2006
Posts: 1,049
|
Ordered Dither plugin for Avisynth?
Hi, is there any chance to make some kind of regular pattern dither for reducing banding effect?
I think that this kind of dither can be properly encoded by MPEG-2 or MPEG-4 encoder. I know that plugin named BlockBuster have this feature but i think on specialized plugin similar to GradFun2DB... AFAIK there is also special kind of dithering - "Albie" optimized for interlace displays. TIA |
19th October 2006, 04:29 | #2 | Link |
Registered User
Join Date: Oct 2003
Posts: 209
|
No, your best bet is to let the encoder perform the dithering itself. CCE SP has this as an option ("Dithered Quantization"), and other encoders may have this as well. If you dither yourself before feeding it to the encoder, there will be severe consequences (such as screwing up the motion, or having the motion screw up the dither).
|
19th October 2006, 04:34 | #3 | Link |
interlace this!
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
|
1 bit dither should be fine... i second this request. perhaps gradfun could be modified to do this, too?
remember motion estimation in an encoder is done on quantized frames. the dither will be gone from the reference frame, and uniform dither on the current frame isn't really going to change ME decisions in a bad way. besides, CCE's "dithered quantization" does just the same thing, only it probably does it in 10 bit yuv.
__________________
sucking the life out of your videos since 2004 |
19th October 2006, 15:24 | #4 | Link | |
Registered User
Join Date: Mar 2006
Posts: 1,049
|
Quote:
If dither is stationary (from energy point of view) there no motion problem. Sa not random but stationary dither with tightly concentrated energy from DCT point of view. I tested few methods and seem that stationary dithering can be compressed by freeware encoders, i also reduce number of colors on planes Cb and Cr with ordered ditehr (lack of tool to add ordered dither wihtout reducing numbers of colors) and results from eye point of view was nice - (FFT of this pictures was clear, dither energy tightly concentrated on few points thus no reducing in DCT) |
|
19th October 2006, 15:30 | #5 | Link | |
Registered User
Join Date: Mar 2006
Posts: 1,049
|
Quote:
Main problem is recognize banding area, recreate lost bits (10/8.2 vs 8 bits) and stationary dither/noiseshape. |
|
19th October 2006, 18:38 | #8 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
The only way it won't be is if you use a flatter matrix and steal from the more important lower frequencies; ie, introduce a lot of ringing and possibly blocking. Question is, what are you trying to do? Encode files for standalone playback, for friends, for business distribution? Akupenguin has indicated that he may do this for x264 in the future. Otherwise, the options are mainconcept and ateme, afaik. (Nero removed the feature from its implementation of Ateme's.) |
|
20th October 2006, 02:43 | #9 | Link | ||
Registered User
Join Date: Mar 2006
Posts: 1,049
|
Quote:
Maybe some qm with "hole" for some freq? Quote:
Hm... mainconcept don't work, have it, use it, swear it... |
||
20th October 2006, 06:03 | #10 | Link |
interlace this!
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
|
hmm... i wonder how useful a noiseshaped dither would be if it did it's noise shaping based on a CQM the user inputs? ie put the dither in the higher numbers.
__________________
sucking the life out of your videos since 2004 |
|
|