digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   SansGrip Filters: When to use which filter? (http://www.digitalfaq.com/archives/avisynth/1940-sansgrip-filters-filter.html)

narc60 12-27-2002 12:56 AM

SansGrip Filters: When to use which filter?
 
Hi Sansgrip and Kwag

I have done a couple of DVD and Digital8 conversions to CD-R and have been satisfied with the results. I have been using only the KVCD templates to do this. I have downloaded Sansgrip's filters but have no idea where to use which and in which order to apply them. Is there any guie somewhere to help me out on this? Maybe someone can put out a guide for all us 'confused' newbies. Thanks and keep up the good works guys.

m0rdant 12-27-2002 01:04 AM

Download the filters and put them all in the same directory (I use the mpeg2dec directory because I have fitCD set to point to it already).

Then load you d2v into fitCD. FitCD gives you your basic script that you can then edit by adding the lines for the filters you want to use. I've pasted a script I'm using right now as an example.

Next use the generated avs file as your video source in TMPGenc.

Hope it helps.


LoadPlugin("C:\Program Files\VCD Tools\AviSynth2\MPEG2DEC\MPEG2DEC.dll")
LoadPlugin("C:\Program Files\VCD Tools\AviSynth2\MPEG2DEC\decomb.dll")
LoadPlugin("C:\Program Files\VCD Tools\AviSynth2\MPEG2DEC\Fluxsmooth.dll")
LoadPlugin("C:\Program Files\VCD Tools\AviSynth2\MPEG2DEC\Blockbuster.dll")
LoadPlugin("C:\Program Files\VCD Tools\AviSynth2\MPEG2DEC\legalclip.dll")
LoadPlugin("C:\Program Files\VCD Tools\AviSynth2\MPEG2DEC\sampler.dll")
mpeg2source("C:\Rip\*.d2v")
Bob()
BilinearResize(672,448,0,0,720,480)
LegalClip()
Fluxsmooth()
#BlockBuster(method="noise", variance=1, seed=1 )
LegalClip()
AddBorders(16,16,16,16)
sampler()

kwag 12-27-2002 01:05 AM

Hi narc60,

Your best answer right now is to browse this forum. "SansGrip's filters". I know it's a lot to read, but every answer is in here. Here's a basic script that you can use as a template. Just change the source, resize, and Addborders lines for your movie. Use FitCD for that:

LoadPlugin("C:\encoding\MPEG2DEC.dll")
LoadPlugin("C:\encoding\fluxsmooth.dll")
LoadPlugin("C:\encoding\sampler.dll")
LoadPlugin("C:\encoding\blockbuster.dll")
LoadPlugin("C:\encoding\legalclip.dll")
mpeg2source("K:\K19\VIDEO_TS\k19.d2v")
LegalClip()
BilinearResize(672,336,0,0,720,480)
FluxSmooth()
Blockbuster( method="noise", detail_min=1, detail_max=10, variance=.5, seed=1 )
AddBorders(16,72,16,72)
LegalClip()
#sampler()


-kwag

kwag 12-27-2002 01:06 AM

Cross post :mrgreen:

m0rdant 12-27-2002 01:07 AM

Nice one! :D

LadyMiles 12-28-2002 07:26 PM

I see you have dropped sharpen. Why ?

kwag 12-28-2002 07:33 PM

Quote:

Originally Posted by LadyMiles
I see you have dropped sharpen. Why ?

Makes artifacts more visible. And at higher resolutions, it's not really needed. I guess it all depends if your resolution and if your material is not too sharp. Then you could apply some sharpen filtering :idea: .

-kwag

Holomatrix 01-06-2003 11:27 AM

why do you put the add noise at the end?

kwag 01-06-2003 01:11 PM

Quote:

Originally Posted by Holomatrix
why do you put the add noise at the end?

It goes after the Fluxsmooth. Fluxsmooth cleans your source and Blockbuster "noise" sends noise on the very low luma levels (almost black). That is what kills visible DCT blocks.

-kwag

syk2c11 01-06-2003 08:46 PM

Hi there,
I respectively tried "dither"=0.4 and 0.7 (with Notch Beta-1 matrix, 704x480 in CQmode, Flux+LegalClip), both worked well, Gibbs effect have been substantially reduced.

Having mentioned by kwag that "Blockbuster 'noise' sends noise on the very low luma levels (almost black). That is what kills visible DCT blocks." I agree the scene with complete black is awesome. However, I found that wall with colour other than black and actor's face have "flashing" (flashing very slowly) tiny blocks, whenever there is a still surface (e.g. a person sitting on a sofa talking, the sofa area right next to that person have "flashing tiny blocks). Any idea please!

SansGrip 01-06-2003 09:16 PM

Quote:

Originally Posted by syk2c11
However, I found that wall with colour other than black and actor's face have "flashing" (flashing very slowly) tiny blocks

If you're seeing the same thing I'm seeing, they're flashing once per second. This is because the GOP length is 24. It's a problem I've noticed with CQ mode rather than Blockbuster itself.

At least, I think it is ;).

syk2c11 01-06-2003 09:28 PM

Hi SansGrip,
So, is it a trade off then if we want to use CQ mode instead of CQ_VBR? Will Gibbs effect come back if I switch back to CQ_VBR (in 704x480 with Notch Beta-1 matrix, just Flux+LegalClip)?

SansGrip 01-06-2003 09:30 PM

Quote:

Originally Posted by syk2c11
So, is it a trade off then if we want to use CQ mode instead of CQ_VBR?

I think so. CQ mode is slightly blockier with less Gibbs, CQ_VBR mode is less blocky with more Gibbs. That's the nature of MPEG :?.

Quote:

Will Gibbs effect come back if I switch back to CQ_VBR (in 704x480 with Notch Beta-1 matrix, just Flux+LegalClip)?
The only way to know for sure is to try it :).

kwag 01-06-2003 10:21 PM

Quote:

Originally Posted by SansGrip
If you're seeing the same thing I'm seeing, they're flashing once per second. This is because the GOP length is 24. It's a problem I've noticed with CQ mode rather than Blockbuster itself.

At least, I think it is ;).

Yes, I've seen it too, but only in the computer. It doesn't show on my TV with standalone DVD players. It's when a new I frame is inserted in the GOP. And because the GOP is exactly 24 frames, that's why it shows every second. It's only seen on static parts. On regular motion, you can't see it. :wink:

-kwag

syk2c11 01-06-2003 10:32 PM

Hi Kwag,
Yes it is only on the static part. I DO see it on my TV (Sony 29" flat Trinitron), I did NOT check the box of "detect scene change" in Tmpeg.

SansGrip 01-07-2003 07:43 AM

Quote:

Originally Posted by syk2c11
I DO see it on my TV (Sony 29" flat Trinitron)

I see it on my Samsung 32".

black prince 01-07-2003 08:00 AM

@All,

SansGrip wrote:
Quote:

I think so. CQ mode is slightly blockier with less Gibbs, CQ_VBR mode is less blocky with more Gibbs. That's the nature of MPEG .
At a higher settings for CQ_VBR, Gibbs is about equal to CQ and less
noticable in both. :)

-black prince

muaddib 01-08-2003 12:20 AM

Quote:

Originally Posted by syk2c11
Hi Kwag,
Yes it is only on the static part. I DO see it on my TV (Sony 29" flat Trinitron), I did NOT check the box of "detect scene change" in Tmpeg.

I have the same feelings as you... I see it in static parts also on TV. :(

kwag 01-08-2003 12:23 AM

Is this with the BETA-1 notch matrix, or with the original KVCD matrix :?:

muaddib 01-08-2003 12:29 AM

Quote:

Originally Posted by kwag
Is this with the BETA-1 notch matrix, or with the original KVCD matrix :?:

I haven’t tried the new matrix yet.
My experience is with the original KVCD matrix.


All times are GMT -5. The time now is 12:44 PM  —  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.