digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   SansGrip Filters: Apply filters before resizing (http://www.digitalfaq.com/archives/avisynth/2402-sansgrip-filters-apply.html)

hachemoncourt 01-29-2003 06:07 AM

Apply filters before resizing
 
Hi, SansGrip

In a precedent post you point out that split GripFit into GripCrop and GripSize allow us to apply filters before resizing.
Is there some filters which are recommended to apply on the source (before resizing) when it's a DVD?

kwag 01-29-2003 09:11 AM

Hi hachemoncourt,

Here's what I'm currently using:

Code:

LoadPlugin("C:\encoding\mpeg2dec.dll")
LoadPlugin("C:\encoding\fluxsmooth.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\vobsub.dll")
LoadPlugin("C:\encoding\convolution3d.dll")
LoadPlugin("C:\encoding\dustv5.dll")
LoadPlugin("C:\encoding\decomblegacy.dll")
LoadPlugin("C:\encoding\temporalcleanerold.dll")

Mpeg2Source("InputFile.d2v")
LegalClip()
GripCrop( width=528, height=480, overscan=2 )
GripSize()
SpaceDust()
TemporalCleaner()
GripBorders()
LegalClip()
Sampler(length=24)

Note where I'm using SpaceDust() and TemporalCleaner(), between GripSize() and GripBorders(). This way, you apply filters after resizing, then you mask with black borders to clip everything around your active film pixel area.

-kwag

hachemoncourt 01-29-2003 02:43 PM

Thanx kwag,

I'll try this combinaison instead of Faery + Convolution3D
But my initial question is : do we have to filter before resizing a DVD source and what kind of filter do we have to apply in this case?

kwag 01-29-2003 03:08 PM

Quote:

Originally Posted by hachemoncourt
But my initial question is : do we have to filter before resizing a DVD source and what kind of filter do we have to apply in this case?

Use the filters AFTER the resize. Just like in the .avs above.

-kwag

hachemoncourt 01-29-2003 03:59 PM

Ok kwag, that 's the way I do it :wink:

J-Wo 01-31-2003 12:37 AM

Kwag:

Code:

LoadPlugin("C:\encoding\mpeg2dec.dll")
LoadPlugin("C:\encoding\fluxsmooth.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\vobsub.dll")
LoadPlugin("C:\encoding\convolution3d.dll")
LoadPlugin("C:\encoding\dustv5.dll")
LoadPlugin("C:\encoding\decomblegacy.dll")
LoadPlugin("C:\encoding\temporalcleanerold.dll")

Mpeg2Source("InputFile.d2v")
LegalClip()
GripCrop( width=528, height=480, overscan=2 )
GripSize()
SpaceDust()
TemporalCleaner()
GripBorders()
LegalClip()
Sampler(length=24)

So this is your latest avs file for KVCDx3 templates, right? Just wondering where FluxSmooth and Blockbuster have gone in your script. Do SpaceDust and TemporalCleaner do the same thing? I'm pretty new to this game and am frankly getting a bit lost by all these confusing yet similarly named plugins! Thanks

Gaudi 01-31-2003 11:26 PM

BlockBuster is a filter to add noise, and so is SpaceDust.

FluxSmooth is a temporal and spatial smoother, same as TemporalCleaner.

Only that it looks thet the two used by kwag are working better (yields smaller file sizes).


Gaudi

Smoochie3 01-31-2003 11:56 PM

Spacedust() actually REMOVES noise, Blockbuster ADDS noise.

J-Wo 02-01-2003 12:16 AM

Quote:

Spacedust() actually REMOVES noise, Blockbuster ADDS noise.
Okay, so if I understand this right SpaceDust removes noise (same as FaeryDust), and TemporalCleaner is a temporal and spacial smoother. But why do we not now have a line for Blockbuster which I thought was used to get true-black images from dark scenes, e.g. on a fade to black?

Quote:

BlockBuster is a filter to add noise, and so is SpaceDust.

FluxSmooth is a temporal and spatial smoother, same as TemporalCleaner.

Only that it looks thet the two used by kwag are working better (yields smaller file sizes).
I tried to an encode a DVDrip of a Babylon 5 episode, 45min long. But with FaeryDust and TemporalCleaner the encode was taking almost 6 hrs! The end result _was_ beautiful though. Better quality than the source itself, which had a lot of dust and noise on the film which the filter removed. I hear Sansgrip's filters are much faster but yield less compression. Is this true?

kwag 02-01-2003 12:27 AM

Quote:

Originally Posted by J-Wo
But why do we not now have a line for Blockbuster which I thought was used to get true-black images from dark scenes, e.g. on a fade to black?

BlockBuster is very effective at 352x240(288) and 352x480(576). Above those resolutions, it's really not needed, because the blocks are much smaller. All it does is increase your file size.

Edit: I'll take some of that back. It really depends on the movie. I've seen some movies at 528x480 that Blockbuster does indeed help on dark scenes. So you should make a couple of test strips with and without Blockbuster and see how it compares. Specially on dark areas of a movie.

-kwag

rqtball 02-02-2003 04:20 PM

I do everything at 352*480..which filters should I use?

I tried spacedust and temporalcleaner last night on a darker movie and it came out AWFUL! all the dark scenes looked really bad..there was noise everywhere..not as clear as I expected it should have been

I make everything SVCD...

I am still learning how to use all of these.....

dark movie(horror movie)
romance movie
action movie

what are the best filters for the above situations?

Thanks
Scott

KingTuk 02-02-2003 04:37 PM

The filters and scripts talked about above are what you should use...

Typical Script:

LoadPlugin("C:\encoding\mpeg2dec.dll")
LoadPlugin("C:\encoding\GripFit_preview.dll")
LoadPlugin("C:\encoding\legalclip.dll")
LoadPlugin("C:\encoding\dustv5.dll")
LoadPlugin("C:\encoding\temporalcleanerold.dll")
Mpeg2Source("InputFile.d2v")
LegalClip()
GripCrop( width=528, height=480, overscan=2 )
GripSize()
SpaceDust()
TemporalCleaner()
GripBorders()
LegalClip()


And you are going to get the best results using KVCDX3 MPEG-1 Template no matter if your source is a DVD or a DivX...

If it still looks like crap and the movie is about 2 hours raise the CQ and split it onto 2 CD's

VaioVcd 02-05-2003 11:44 AM

Ok everybody is going to think that i'm stupid, But
I'm not really sure what NOISE means on a movie, is it actual sound or the dust around abjects. Pleas tell me

kwag 02-05-2003 12:05 PM

Quote:

Originally Posted by VaioVcd
Ok everybody is going to think that i'm stupid, But
I'm not really sure what NOISE means on a movie, is it actual sound or the dust around abjects. Pleas tell me

Turn on your TV and set it to a channel where there's no signal. That's extreme audio and video noise :D

-kwag

VaioVcd 02-05-2003 12:18 PM

Ok but what kind of noise is every body talking about video or audio or both, :teeth:

kwag 02-05-2003 12:34 PM

Quote:

Originally Posted by VaioVcd
Ok but what kind of noise is every body talking about video or audio or both, :teeth:

Video :grin:

Holomatrix 02-07-2003 01:44 PM

How do these filters increase video quality?

GripCrop( width=528, height=480, overscan=2 )
GripSize()
GripBorders()
LegalClip()

and to these filters slow the encode?

Thanks

kwag 02-07-2003 01:49 PM

Hi Holomatrix,

Just like that, you'll get great quality by using the 2 blocks overscan, and your encode won't be slowed down. You're encoding a film area which won't be stretched past your TV edges, as it would if you didn't use overscan blocks. If you add filters like SpaceDust, FluxSmooth, C3D, Temporalcleaner, etc., you'll achieve even higher quality. :)

-kwag

Holomatrix 02-07-2003 02:08 PM

I have been using this script for CVD encoding,

[AVISYNTH_LanczosResize_FluxSmooth_Blockbuster]
0=LoadPlugin(!FluxSmooth.dll)
1=LoadPlugin(!Blockbuster.dll)
2=FluxSmooth(^H_Value,^V_Value)
3=Blockbuster(method="noise", variance=.3, seed=1)
!FluxSmooth.dll=C:\Program Files\DVD2SVCD\Fluxsmooth\Fluxsmooth.dll
!Blockbuster.dll=C:\Program Files\DVD2SVCD\Blockbuster\Blockbuster.dll
^H_Value=5
^V_Value=5

what order should I add them in then?
P.S. I'm not using C3D and Faerydust because I don't see much difference and when added, they kill the encoding time too much)

kwag 02-07-2003 02:20 PM

Change: 0=LoadPlugin(!FluxSmooth.dll) for: 0=LoadPlugin(!SpaceDust.dll) and give that a shot :wink:
It's much faster that FaeryDust, and you'll get superb quality. You might want to increase your variance in BlockBuster to .7

-kwag


All times are GMT -5. The time now is 04:35 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.