02-22-2003, 08:41 AM
|
Free Member
|
|
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Has anyone heard of this line for your AVS Script:
mergechroma(blur(1.3))
It's supposed to gain a little compressibility without affecting picture quality... I tried to find out how it works, but hadn't had much success yet...
any experiences?
__________________
j3llyG0053
|
Someday, 12:01 PM
|
|
Site Staff / Ad Manager
|
|
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
02-22-2003, 09:18 AM
|
Free Member
|
|
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I tried it once, couldn't see any difference but filesize went down about one percent. Not much but everything's appreciated. I also use DCTFilter with settings (1,1,1,1,1,1,0.5,0) and gain some extra compression without losing any details.
|
02-22-2003, 10:24 AM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I tried it too, but I used the max value for blur mergechroma( blur(1.58 )) .
File size did come down a little with no visual difference. I compared it in two frames with Vdub. Looks like we can crank up CQ just a tad with this
Thanks Jellygoose
-kwag
|
02-22-2003, 12:03 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Would anyone care to try this
mergechroma(blur( 1.58 ))
mergeluma(blur( 1.58 ))
Sample size without the above and bilinear resize: 11,194KB
Sample size WITH the above lines AND lanczos resize: 10,099
Script here:
Code:
LoadPlugin("C:\encoding\mpeg2dec.dll")
LoadPlugin("C:\encoding\GripFit_preview.dll")
LoadPlugin("C:\encoding\blockbuster.dll")
LoadPlugin("C:\encoding\legalclip.dll")
LoadPlugin("C:\encoding\sampler.dll")
LoadPlugin("C:\encoding\dustv5.dll")
LoadPlugin("C:\encoding\temporalcleanerold.dll")
Mpeg2Source("K:\S1M0NE_WS\VIDEO_TS\simone.d2v")
LegalClip()
mergechroma(blur(1.58))
mergeluma(blur(1.58))
GripCrop( width=528, height=480, overscan=2 )
GripSize(resizer="lanczosresize")
SpaceDust()
TemporalCleaner()
GripBorders()
LegalClip()
Sampler(length=24)
Now doing a sample without lanczos but with Blockbuster "Sharpen".
BTW: If you remove the lanczosresize from the gripsize line, it uses the default bilinear resize and the sample file size is ~9.5MB , but it looses some sharpness. Still, I can't tell a difference from the colors or brightness with the two lines mergechroma(blur( 1.58 )) and
mergeluma(blur( 1.58 )) added to the script, but the space saving is humongous
-kwag
|
02-22-2003, 12:08 PM
|
Free Member
|
|
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Now where is that Canadian encode freak (SG) I sure hope he's okay, it's been a long time since he's been here.
|
02-22-2003, 12:11 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Boulder
Now where is that Canadian encode freak (SG) I sure hope he's okay, it's been a long time since he's been here.
|
We're all asking the same question. I hope he's ok too
-kwag
|
02-22-2003, 12:15 PM
|
Free Member
|
|
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hey kwag, that is fantastic!! A hell of a lot difference !
I tried it too, and it really does help compression!
Me personally I don't really like Lanczos Resizer. If I want extra sharpness I increase resolution to 704x576.
With this I achieve the same effect, and also blocks are becoming smaller!
kwag, with these new settings try to go for 704x480 in resolution for KVCDx3! I tried it, and I only had to drop CQ by 2 compared to the 544x480 resolution! I think it's a better way to get sharpness than applying sharpness filters or using lanczos...
BtW Boulder: what is DCT Filter doing?
__________________
j3llyG0053
|
02-22-2003, 01:21 PM
|
Free Member
|
|
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I'm not exactly sure since I don't know much about maths
Here's a link to the official thread:
http://forum.doom9.org/showthread.php?s=&threadid=38539
The settings I use are generally recommended, they don't seem to wipe out any details and do increase compression a bit.
|
02-22-2003, 01:49 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Jellygoose
kwag, with these new settings try to go for 704x480 in resolution for KVCDx3! I tried it, and I only had to drop CQ by 2 compared to the 544x480 resolution! I think it's a better way to get sharpness than applying sharpness filters or using lanczos...
|
Hi Jellygoose,
I tried a clip at 704x480 and 528x480 on my HDTV, and the difference is almost barely visible. I'll settle for 528x480, because now I can raise the CQ 2 to 3 clicks, and that makes a HUGE quality difference specially on static walls and motion object
I'm doing a full encode again of S1M0NE just to compare my previous encode
-kwag
|
02-22-2003, 02:07 PM
|
Free Member
|
|
Join Date: Nov 2002
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
here is the DCT filter for avisynth 2.07
http://www.jungleweb.net/~sansgrip/DctFilter_YUY2.zip
and the suggested settings
DctFilter(1,1,1,1,1,.5,.5,0)
***also you are supposed to use the filter on resolutions that are a multiple of 16
|
02-22-2003, 02:08 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi,
my results were the opposite
With one minute high motion scene from "the Bourne Identity" (car chase)
with bilinear
Code:
Mpeg2Source("D:\encoding\mergechroma\test.d2v")
LegalClip()
mergechroma(blur(1.58))
mergeluma(blur(1.58))
BilinearResize(512,344,3,0,714,480)
AddBorders(8,68,8,68)
LegalClip()
file size @cq-100 15.125mb
with lanczos
Code:
Mpeg2Source("D:\encoding\mergechroma\test.d2v")
LegalClip()
mergechroma(blur(1.58))
mergeluma(blur(1.58))
LanczosResize(512,344,3,0,714,480)
AddBorders(8,68,8,68)
LegalClip()
file size @cq-100 15.319mb
I'll try a sample with Sampler(length=24) next..
|
02-22-2003, 02:40 PM
|
Free Member
|
|
Join Date: Oct 2002
Location: Austria
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi All,
I did some test with MergeChroma/Luma(blur(1.5 ) and sharpening on
American Beauty predicted to a CDR-90:
[/code]
inital-script:
Mpeg2Source("D:\Beauty\beauty.d2v")
LegalClip()
MergeChroma(blur(1.5 )
MergeLuma(blur(1.5 )
BilinearResize(512,352,39,74,642,426)
SpaceDust()
TemporalCleaner()
Blockbuster(method="noise", detail_min=1, detail_max=10, variance=0.3, seed=1)
AddBorders(16,112,16,112)
LegalClip()
Code:
without MergeChroma/Luma(blur(1.58)):
14.755 KB American Beauty (544x576) x3 CQ72
with MergeChroma/Luma(blur(1.58)):
12.647 KB American Beauty (544x576) x3 CQ72 -LanzcosResize
12.586 KB American Beauty (544x576) x3 CQ72 -BlockBuster Sharpen (strength=7)
12.294 KB American Beauty (544x576) x3 CQ72 -BilinearResize
I think the versions with MergeChroma/Luma are to blurry even if i use
LanczosResize or BlockBuster-Sharpen the one without them is clearly better but there is a big benefit in filesize. Maybe strength of blur should
be decreased...
regards, ***mfb***
[/quote]
|
02-22-2003, 02:46 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Looks to me like this is going to be another long thread
Yes mfb, the value of mergeluma(blur( 1.58 )) is probably too high. Next step is to play with that value
-kwag
|
02-22-2003, 06:11 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Here's what I've been playing with:
Code:
mergechroma(blur(1.58))
mergeluma(blur(0.8))
I really didn't get any notable file size difference by using DCTFilter in conjunction with these two filters.
This is the script I'm currently using to test, and the results are really awsome:
Code:
LoadPlugin("C:\encoding\mpeg2dec.dll")
LoadPlugin("C:\encoding\GripFit_preview.dll")
LoadPlugin("C:\encoding\blockbuster.dll")
LoadPlugin("C:\encoding\legalclip.dll")
LoadPlugin("C:\encoding\sampler.dll")
LoadPlugin("C:\encoding\dustv5.dll")
LoadPlugin("C:\encoding\temporalcleanerold.dll")
Mpeg2Source("K:\S1M0NE_WS\VIDEO_TS\simone.d2v")
LegalClip()
mergechroma(blur( 1.58 ))
mergeluma(blur( 0.8 ))
GripCrop( width=528, height=480, overscan=2 )
GripSize()
SpaceDust()
TemporalCleaner()
Blockbuster(method="sharpen", detail_min=1, detail_max=99, strength=15)
GripBorders()
LegalClip()
Sampler(length=24)
I lowered the value in mergeluma to 0.8 and now the sharpness is retained far more that with a value of 1.0+
My new sampler went down from 14,844KB to 13,085 with almost no visual difference. Now that's a lot in terms of quality/size for a two hour movie
Edit: A couple of test clips follow in the next few minutes...
-kwag
|
02-22-2003, 10:28 PM
|
Invalid Email / Banned / Spammer
|
|
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Kwag,
i was waiting if someone post his opinion...........
i download see the your samples in power dvd,zoomplayer and wmp7.1
and can't see diferences!
you see any?
|
02-22-2003, 10:59 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by jorel
Kwag,
i was waiting if someone post his opinion...........
i download see the your samples in power dvd,zoomplayer and wmp7.1
and can't see diferences!
you see any?
|
Very little. But I tweaked this even further to increase sharpness by lowering the value on mergeluma and adding more spatial and temporal filters. This is called "Maniac filtering :
Code:
LoadPlugin("C:\encoding\mpeg2dec.dll")
LoadPlugin("C:\encoding\GripFit_preview.dll")
LoadPlugin("C:\encoding\blockbuster.dll")
LoadPlugin("C:\encoding\legalclip.dll")
LoadPlugin("C:\encoding\sampler.dll")
LoadPlugin("C:\encoding\dustv5.dll")
LoadPlugin("C:\encoding\nomosmooth.dll")
LoadPlugin("C:\encoding\fluxsmooth.dll")
LoadPlugin("C:\encoding\convolution3d")
LoadPlugin("C:\encoding\dctfilter_YUY2")
Mpeg2Source("K:\S1M0NE_WS\VIDEO_TS\simone.d2v")
LegalClip()
mergechroma(blur(1.58))
mergeluma(blur(0.6))
GripCrop( width=528, height=480, overscan=2 )
GripSize()
SpaceDust()
FluxSmooth(7,7)
NoMoSmooth(40,1,6,1,3,false)
Convolution3d(preset="movieHQ")
Blockbuster(method="sharpen", detail_min=1, detail_max=99, strength=15)
GripBorders()
LegalClip()
Sampler(length=24)
This is my latest test script using CQ=70, and look now how this KVCDx3 would look ( complete movie 131 minutes, 14 seconds on one CD ) : http://www.kvcd.net/s1m0ne-test.mpg ( 10 second clip )
-kwag
|
02-22-2003, 11:24 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I found the first sample of S1MONE w/mergechroma and luna a wee bit too blurry- maybe slightly lower settings can help me- but that's damn good compression!!
btw- you might find this script helpful for comparing m1v clips:
Code:
# Compare .m1v clips
LoadPlugin("C:\encoding\MPEGDecoder.dll") # http://nic.dnsalias.com/
LoadPlugin("C:\encoding\RemoveBorders.dll") # http://www.jungleweb.net/~sansgrip/avisynth/
Title_Clip_a = "no chroma luma"
Title_Clip_b = "chroma luma"
a=MPEGsource("C:\film-no-chromaluma.m1v"). RemoveBorders(). subtitle(Title_Clip_a)
b=MPEGsource("C:\film-chromaluma.m1v"). RemoveBorders(). subtitle(Title_Clip_b)
StackVertical(a,b)
|
02-22-2003, 11:26 PM
|
Invalid Email / Banned / Spammer
|
|
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@ Kwag and "friendalunit"
really good....and thanks for scripts!
ps:
now i'm mad.
my last beer broke the ring..... searching for a to open this!
|
02-22-2003, 11:33 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by rendalunit
btw- you might find this script helpful for comparing m1v clips:
Code:
# Compare .m1v clips
LoadPlugin("C:\encoding\MPEGDecoder.dll") # http://nic.dnsalias.com/
LoadPlugin("C:\encoding\RemoveBorders.dll") # http://www.jungleweb.net/~sansgrip/avisynth/
Title_Clip_a = "no chroma luma"
Title_Clip_b = "chroma luma"
a=MPEGsource("C:\film-no-chromaluma.m1v"). RemoveBorders(). subtitle(Title_Clip_a)
b=MPEGsource("C:\film-chromaluma.m1v"). RemoveBorders(). subtitle(Title_Clip_b)
StackVertical(a,b)
|
Thanks ren,
Now that's one more for my toolbox .
Here's the one I've been using:
Code:
clip1 = directshowsource("k:\film1.m1v")
clip1 = clip1.Subtitle("Clip-1")
clip2 = directshowsource("k:\film2.m1v")
clip2 = clip2.Subtitle("Clip-2")
StackVertical(clip1, clip2)
#Levels(0, 1.5, 255, 16, 255)
ConvertToRGB()
-kwag
|
All times are GMT -5. The time now is 07:22 PM — vBulletin © Jelsoft Enterprises Ltd
|