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. |
18th June 2011, 15:40 | #162 | Link | ||
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Quote:
Quote:
Code:
FFmpegSource2 ("MVI_8068.MOV") p = Dither_convert_yuv_to_rgb (matrix="601", tv_range=false, cplace="MPEG2", \ chromak="bicubic", output="rgb48y") q = ConvertToRGB (matrix="PC.601") q = Interleave (q.ShowRed ("YV12"), q.ShowGreen ("YV12"), q.ShowBlue ("YV12")) dm = mt_makediff (p.Dither_get_msb (), q) StackVertical (dm, p.Dither_get_lsb ()) # Amplification Dither_lut16 (expr="x 32768 - 64 * 32768 +", y=3, u=1, v=1) visu () Function visu (clip src) { src.DitherPost (mode=6, y=3, u=1, v=1) r = SelectEvery (3, 0) g = SelectEvery (3, 1) b = SelectEvery (3, 2) MergeRGB (r, g, b) } Function export_rgb48 (clip src) { src r = SelectEvery (3, 0) g = SelectEvery (3, 1) b = SelectEvery (3, 2) Dither_convey_rgb48_on_yv12 (r, g, b) }
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
||
18th June 2011, 18:56 | #163 | Link | ||
Registered User
Join Date: Sep 2009
Posts: 378
|
Quote:
Quote:
A sample 16bit video frame: (12.5mb) http://www.yellowspace.webspace.virg...com/test_0.tif And the export from visualise for same frame: (12.5mb) http://www.yellowspace.webspace.virg...isualise_0.tif Should it really look like that? :-) Last edited by Yellow_; 18th June 2011 at 19:51. |
||
19th June 2011, 00:35 | #164 | Link | |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Thanks for the command line.
Quote:
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
|
19th June 2011, 13:02 | #166 | Link |
Registered User
Join Date: Jan 2007
Posts: 729
|
I noticed that there's the possibility to do colormatrix conversion in 16bits now, thanks a lot!
Which chroma kernel would you suggest for converting colormatrix (709->601) using Dither_convert_yuv_to_rgb + Dither_convert_rgb_to_yuv? My script: Code:
Dither_convert_yuv_to_rgb (matrix="709", output="rgb48y", lsb_in=true) r = SelectEvery (3, 0) g = SelectEvery (3, 1) b = SelectEvery (3, 2) Dither_convert_rgb_to_yuv (r, g, b, matrix="601", lsb=true) At first I was thinking about using point scaling because it is kind of reversible, but then I realised that's probably silly because of the rgb step BTW, is this route somewhat compromised by the double conversion, or is that not an issue thanks to the 16bit processing, meaning that this workflow is close to optimal quality? (Please forgive me for my newby questions, I don't know much about how exactly the colormatrices influence the conversion to rgb, or which yuv channels are influenced by colormatrix conversion, etc...) |
19th June 2011, 20:42 | #167 | Link | ||
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Quote:
Quote:
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
||
20th June 2011, 18:35 | #169 | Link |
Registered User
Join Date: Sep 2009
Posts: 378
|
In searching to find information to read on the methods used and similar methods of the dither plugin, stacked msb/lsb etc I came across this which I found interesting and thought I'd post a link to:
http://www.banterle.com/francesco/pu...EGstar2009.pdf Specifically 3.0 LDR to HDR Expansion on page 4. Comments? |
25th June 2011, 16:38 | #170 | Link | |
Registered User
Join Date: Oct 2009
Posts: 212
|
Quote:
mode 7: Stucki error diffusion + noise. Looks sharp and preserve light edges and details well. Do you recommend using some noise generation through ampn in this case too and what about apmo setting? I'm intersested very much in this. Thanks Edit: Well after doing some testing ampo - is paramater for incresing amplitude of that fancy ordered dithering from your function ampn- paramater for using dithering + noise, but raising it increases the amount of noise aka similar to gradfun2db. Anyway I like ampn setting set to 0, ampo setting from 2~3. It plays a lot better with compressibility compared using noise like from Gradfundb. Last edited by SilaSurfer; 25th June 2011 at 19:15. |
|
25th June 2011, 21:35 | #171 | Link |
Leader of Dual-Duality
Join Date: Aug 2010
Location: America
Posts: 134
|
Hmmm I don't know why but every time I use gradfun3 (since version 1.5) all it does is output the luma (like I get the generic green from removing chroma) if I leave the mask on. If I set the mask to 0 then this does not happen, I am sort of thinking it has something to do with the introduction of the dither_removegrain but I don't really know. Either way could someone propose a solution to this problem.
__________________
I'm Mr.Fixit and I feel good, fixin all the sources in the neighborhood My New filter is in the works, and will be out soon |
25th June 2011, 21:53 | #172 | Link |
Registered User
Join Date: Jan 2007
Posts: 729
|
That seems to happen if you have masktools conflicts.
Assuming you use plugin autoload directory: get rid of masktools.dll (that is masktools v1... or was it mt_masktools.dll?), and make sure you only have installed that Masktools2 a48 version that cretindesalpes links. If you run on avisynth 2.5.x, use the mt_masktools-25.dll file, if you are on avisynth 2.6, use mt_masktools-26.dll. Having both or the wrong compile (xxx-26/xxx-25) seems to give the green screen. Last edited by mandarinka; 25th June 2011 at 22:18. |
25th June 2011, 23:47 | #173 | Link | |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Quote:
@TheProfileth: As mandarinka said, it's likely a problem of Masktools version.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
|
6th July 2011, 08:58 | #175 | Link |
Registered User
Join Date: Jan 2008
Posts: 20
|
Thanks so much for the dither package - this works really really great and it appears to be very benefiting in terms of compressibility. as far as i understand it, it prevents from strong visible blocking artefacts. in other words they are still there, but not significant. is this right so far?
|
6th July 2011, 22:59 | #176 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Dither 1.9.1 released:
The target of gradient smoothing is not strong blocking. Strong blocking artifacts are addressed by deblocking and deringing filters. Actually, banding artifacts are not really blocking; the main problem appears in the final colorspace. Of course, too high quantization during compression will cause color banding, the light dithering noise being filtering out. However dithering noise is hard to compress, and if you spend all your bits in the dither, you'll end up with a poorly encoded picture. By changing the dither from noise to repetitive patterns (ordered dithering), you make the dither more predictable, thus much more compressible, at a minor visual cost.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
6th July 2011, 23:24 | #177 | Link |
Registered User
Join Date: Nov 2009
Posts: 2,361
|
Thank you! just before my encode! I wanted to request 2 new options for dither if it's possible.
One is implement nnedi3 for resize. I think I can do some masking add difference et al but do you think is possible to do it natively? The other is when encoding anamorphic, to have also anamorphic dither. edit: I just noticed that when using 4 taps Dither_resize16 crashes, so spline64, lanczos 4 taps, etc.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread Last edited by Dogway; 9th July 2011 at 23:01. |
8th July 2011, 15:44 | #179 | Link |
Registered User
Join Date: Jan 2008
Posts: 20
|
Lovin' it
http://imgur.com/a/Oc7Pu But i guess i won't use Dither seriously until i can effort a new pc. It would take me a week to run this script. Core2Duo T7200 atm. |
9th July 2011, 00:26 | #180 | Link | |||||
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
Quote:
An if your goal is denoising without creating colorbanding, you'll probably get better visual results by using only the previous line with a carefully tuned motion compensation. Quote:
Quote:
Quote:
Quote:
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
|||||
Tags |
color banding, deblocking, noise reduction |
Thread Tools | Search this Thread |
Display Modes | |
|
|