View Full Version : Preserving detail?
boombastic
6th May 2006, 13:10
I'm backing up my DVDs qith the following script:
LoadPlugin("i:\PROGRAMMI\Avisynth 2.5\filtri\ColorMatrix.dll")
LoadPlugin("i:\PROGRAMMI\Avisynth 2.5\filtri\degrainmedian.dll")
LoadPlugin("i:\PROGRAMMI\Avisynth 2.5\filtri\mt_masktools.dll")
LoadPlugin("i:\PROGRAMMI\Avisynth 2.5\filtri\RemoveGrain.dll")
LoadPlugin("i:\PROGRAMMI\Avisynth 2.5\filtri\MSharpen.dll")
LoadPlugin("i:\PROGRAMMI\Avisynth 2.5\filtri\aWarpSharp.dll")
LoadPlugin("i:\PROGRAMMI\Avisynth 2.5\filtri\asharp.dll")
import("i:\PROGRAMMI\Avisynth 2.5\filtri\LimitedSharpenFaster.avsi")
MPEG2Source("J:\xxxxxxxx.d2v")
Crop(10,80,-6,-80)
LumaYV12(-2,1)
colorMatrix()
DeGrainMedian()
LimitedSharpenFaster(1.25,1.25,672,272,Smode=4)
with Xvid 1.1 Celtic Druid build and the EQM Low Rate matrix at q=2.
I'm wondering if the detail i preserve with the Limited sharpen is in some way "wasted" by the use of a low rate matrix or i get benefit from that use.
In this way i can preserve a lot of detail limiting the size of the final file.
What do you think about this script?
Hmm... Can you test 'Jawor 1CD' matrix?
boombastic
8th May 2006, 17:42
I tested it and gave my movie a too high compressibility,maybe it's in the range of EQM Ultra Low Matrix.I also tested Jawor 2 CDs but i prefer anyway EQM Low Rate matrix.Why did you ask that?
BigDid
8th May 2006, 19:19
I tested it and gave my movie a too high compressibility,maybe it's in the range of EQM Ultra Low Matrix.I also tested Jawor 2 CDs but i prefer anyway EQM Low Rate matrix.Why did you ask that?
Hi,
If I understand your demand,(which seems not always the case actually :o ) preserving details is related to:
1/ resizer
2/ filters
3/ matrix
1/You don't resize so does'nt apply
2/You use degrainmedian() with defaut params which could soften/blur/loose details -> Do you need it? if not you may consider using only removegrain(mode=1) equal to undot() or mode=5 my best details keeping, stronger than mode=1 but better than mode=2
3/ You use v3LR cqm which keeps more details than v3ULR or Jawor1cd but is less compressible; you may want to try v2(used as AGK sharpmatrix) or v3HR to preserve more details at the expense of more space... ;)
Did
Daodan
9th May 2006, 10:15
You didn't really say what bitrate will you use and for what resolution but since you probably use low bitrate it's better not to use LSF or maybe with a lower strangth or edgemode=1 (in this way you enhance a little only details). You may get pretty bad blocking since LS requires quite a lot of extra bitrate. And I advise using degrainmedian with mode=2 or 3. I has the advantage of being also temporal denoiser compared to removegrain (which is good, most of a noise in DVD is temporal).
boombastic
9th May 2006, 10:22
Sorry for missing some important points:
1)i don't care a lot of final filesize that's way i use a 1-pass encode
2)i'm most concerned about quality at Full Resolution(720 cropped or something less sometimes) that's way i use a sharpen filter like LSF with q=2
3)anyway i don't want a too exagereted filesize like 3 GB!That's why besides a noise reduction filter like DeGrainMedian i use a Low Bitrate Matrix (i don't use High Rate matrix because for that resolution the size is always bigger than 1500 MB and it's too much for me...)
In most cases the bitrate i get is between 1000 Kbps and 1500 Kbps
boombastic
9th May 2006, 10:27
Hi,
1/You don't resize so does'nt apply
Did
actually i'm resizing within LimitedSharpenFaster,isn't it?
Daodan
9th May 2006, 10:32
I was kinda wondering what those 672 and 272 meant...
I never thought it works without saying dest_x=, dest_y=...
boombastic
9th May 2006, 10:53
I never tought i had to specify dest_x= and dest_y= !!I just tried this way and it worked!
boombastic
9th May 2006, 10:58
Hi,
2/You use degrainmedian() with defaut params which could soften/blur/loose details -> Do you need it? if not you may consider using only removegrain(mode=1) equal to undot() or mode=5 my best details keeping, stronger than mode=1 but better than mode=2
3/ You use v3LR cqm which keeps more details than v3ULR or Jawor1cd but is less compressible; you may want to try v2(used as AGK sharpmatrix) or v3HR to preserve more details at the expense of more space... ;)
Did
2)infact the limited SharpenFaster function requires RemoveGrain dll loaded so i suppose that it uses that filter but i don't know how...Anyway i made some comp.check with or without DeGrainMedian and the compressibility gain was noticeable without a great reduction in quality so i decided to keep.Maybe i can substitute it with RemoveGrain(mode=5)...
3)Has the AGK sharpmatrix a minor compressibility of v3?
BigDid
9th May 2006, 20:30
actually i'm resizing within LimitedSharpenFaster,isn't it?
Right, I don't use LSF yet (maybe I should :rolleyes: )so I missed it but If I understand how LSF works see this post (http://forum.doom9.org/showthread.php?p=819940#post819940) and the next one from foxyshadis, LSF uses a precise resizing so does'nt have to be taken in consideration :)
...Anyway i made some comp.check with or without DeGrainMedian and the compressibility gain was noticeable without a great reduction in quality so i decided to keep.Maybe i can substitute it with RemoveGrain(mode=5)
Just try it, RMG mode1 or 5 is meant for quite clean sources and preserves a maximum of details; this is why I asked if you needed to use degrainmedian.
For stronger grain removal it seems Daodan comments are of good advise, I'll do some tests to compare DGM mode3 or 2 to RMG mode 6 to 8 (when I have time).
Has the AGK sharpmatrix a minor compressibility of v3?
I just posted on a similar request:here (http://forum.doom9.org/showthread.php?p=825527#post825527).
So from more compressible/less details to less compressible/more details(usually):
V3ULR -> more details than Jawor but more ringing
Jawor 1CD -> less compressible than V3ULR(+-5%), less details, less ringing
H263<=>V3LR (quite same compressibility but not same usage :) )
V2 aka AGK sharpmatrix
V3HR
Did
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.