digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   SansGrip Filters: GripFit (http://www.digitalfaq.com/archives/avisynth/2107-sansgrip-filters-gripfit.html)

kwag 01-24-2003 09:24 AM

Quote:

Originally Posted by heyitsme
Hey everbody it has been like a month since iwas on this website. Geez January was a nice month for this site all these new developments. Could anyon be nice enough to show me couple scripts showing this gripfit and the applications of the new and best combination of filters. Thanks

branden

Hi Branden,

Here's what I used last night to put "Star Wars" on one CD:

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\decomb.dll")

Mpeg2Source("J:\PHANTOM_MENACE\VIDEO_TS\phantom.d2v")
LegalClip()
GripCrop( width=528, height=480, overscan=2 )
GripSize()
#PixieDust()
SpaceDust()
Convolution3D(preset="movieLQ")
Blockbuster(method="noise", variance=.3, seed=1)
GripBorders()
LegalClip()

#Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size ##

The result are excelent, considering it's a 136 minute film, and I put it on one CD :wink:

-kwag

rhino 01-24-2003 09:31 AM

Kwag, what was the picture like after using SpaceDust()?

What was the difference in encoding time vs FaeryDust()?

And lastly, the overscan (someday i hope to get my head around this), what is the resolution come down to of visible picture and does GripSize()/GripBorders() then fill in the black border to put the size back out to 528x480 so that TmpgEnc gets the correct size?

Cheers,

kwag 01-24-2003 10:58 AM

Quote:

Originally Posted by rhino
Kwag, what was the picture like after using SpaceDust()?

What was the difference in encoding time vs FaeryDust()?

Hi rhino,

The speed increase from spacedust is greater than using faerydust. I would use spacedust if the source is fairly clean. Episode one seems pretty clean, so I used spacedust. The difference in size doing samples with both filters was only 100KB. So that's why I say that this source is pretty clean. Here's a sample: http://www.kvcd.net/phantom-test.mpg

Yes, I know, this movie should have been encoded in two CDs. But I wanted to see what it would look like on one CD. The result is not as good as some of the ~2 hour movies previously encoded, but considering the length of this film, I say it's amazing to get that on one CD 8)

-kwag

Smoochie3 01-24-2003 11:42 AM

Quote:

Originally Posted by SansGrip
You don't need to use Letterbox with GripFit. It's just a hack I came up with in response to a question about overscan.

Oh, i understand that, i too was inerested in being able to apply the tv overscan to the sides only, and not the top and bottom. That's why i'm trying to figure out the correct order of the filters. At first i understood it to be:

Gripcrop()
Letterbox()
Filter()
Filter()
Filter()
Gripsize()

But now there is Gripborders(), and i don't know where that goes. Is it used WITH Letterbox(), or INSTEAD of Letterbox(), and where in the script should i put it?

Thanks For the Help!

muaddib 01-24-2003 10:56 PM

Quote:

Originally Posted by Smoochie3
Gripcrop()
Letterbox()
Filter()
Filter()
Filter()
Gripsize()

I know it's a mater of taste if you want to put the filters after or before the resize, but I would do it this way:

Gripcrop()
Gripsize()
Filter()
Filter()
Filter()
Gripborders()
Letterbox()

Note that you have to set NO overscan in Gripfit to do it that way, so Gripsize will not resize to a smaller value and you will get a perfect full screen 4:3 display with the same frame height of the source to feed TMPGEnc. Well not exactly the same height, because if your source has already some left and right borders, Gripcrop will cut it out, and doing it the height could be altered to maintain the aspect ratio. If I understand, next version of gripfit will deal with all this letting you choose what overscan "method" you will use.

note: use 16 lines of letterbox to get the same border size of overscan=2.


Quote:

Originally Posted by Smoochie3
But now there is Gripborders(), and i don't know where that goes. Is it used WITH Letterbox(), or INSTEAD of Letterbox(), and where in the script should i put it?

You will just have to remove the letterbox. :wink:

vhelp 01-24-2003 11:03 PM

Hay Kwag,

just wanted to say that I D/L'ed your sample clip "phantom-test.mpeg" and
played it through my TV-OUT card and it looked good ...FWIW :)

Unfortunately, I have the AD-1500 player, and as such, I can't really enjoy
those samples that you DO share w/ us -- even if they ARE just test samples.
But, my TV-OUT on my ati rage fury pro seems to do fine for quick and
rough judging.

Question, have you got Deuce Bigalow ??
It's a great movie (VERY funny) and it's quality is (IMO) spectacular when
played in WinDVD 3.0 (course my 13" tv too) but, I just couldn't get over
the quality on my PC for THAT particular movie.
Have you done any samples for that movie (left in your stockpile) ??
If so, I'd sure love to see how you got them cooking so far w/ your templates.

I'm knee too deep in a multitude of projects and things, so I can't do it at
this time (probably not for a while anyways) Just curious, thats all.

Well, have a good evening/night.
-vhelp

kwag 01-24-2003 11:07 PM

Quote:

Originally Posted by vhelp
Hay Kwag,

just wanted to say that I D/L'ed your sample clip "phantom-test.mpeg" and
played it through my TV-OUT card and it looked good ...FWIW :)

Take a look at this one :wink: http://www.kvcd.net/forum/viewtopic.php?t=2533
Quote:


Question, have you got Deuce Bigalow ??
No, I don't have that one.

-kwag

vhelp 01-24-2003 11:16 PM

Kwag,

Tanx for your QUICK reply !! I love it. ..oh, and just what I was thinking,
your samples thread/page.

If I ever do any KVCD encodes, I'll post at my Samples site. Currently,
I still have my old divX clips there. But, sooner or later, I'll be replacing
them w/ others. Like I said, I'm knee deep in many projects and things.

..gotta love this hobby !! :) :)

Later.
-vhelp

vhelp 01-24-2003 11:46 PM

Kwag,

Just finished D/L'ng you other sample, "attack.mpeg" that too, came out
in good quality via my TV-OUT card.
Mind you, I didn't stretch it because its not the right proportions, ie,
512x384 would be about right for my 13" tv when doubled. Anyways.. it
was good, thanks again. The template to that DVD project was a nice
toutch too. Keep up the good work here, and keep your site continuously
interesting :wink:

Well, let me get back to my idea I was working on. It's good to step away
from your inendated projects sometimes :)
-vhelp

Smoochie3 01-25-2003 12:13 AM

@muaddib

Correct me if i'm wrong, but if i used the filters in this order:

Gripcrop()
Letterbox()
Filter()
Filter()
Filter()
Gripsize()

Then I will get the highest quality with slower encode times. Is this correct? This is what i have read.

Now the order you suggest:

Gripcrop()
Gripsize()
Filter()
Filter()
Filter()
Gripborders()
Letterbox()

Would give good quality (not as good as filtering before the resize) and faster encode times. Is this correct?

Jellygoose 01-25-2003 06:13 AM

As I understood it, all the resizing is done in GripCrop, so it really doesn't matter... You gotta put it before the GripCrop Line to apply filters before resizing... Right SansGrip?

SansGrip 01-25-2003 09:33 AM

Quote:

Originally Posted by Jellygoose
As I understood it, all the resizing is done in GripCrop, so it really doesn't matter...

Nope, the resizing is done in GripSize. The calculations are all done in GripCrop :).

muaddib 01-25-2003 10:18 PM

Quote:

Originally Posted by Smoochie3
@muaddib

Correct me if i'm wrong, but if i used the filters in this order:

Gripcrop()
Letterbox()
Filter()
Filter()
Filter()
Gripsize()

Then I will get the highest quality with slower encode times. Is this correct? This is what i have read.

Now the order you suggest:

Gripcrop()
Gripsize()
Filter()
Filter()
Filter()
Gripborders()
Letterbox()

Would give good quality (not as good as filtering before the resize) and faster encode times. Is this correct?

:lol: That's a "never end" debate...
Some could say yes, some would say it depends.
If you ask me... I would say (as before) it's a matter of taste. :wink:
Try it and see if it's worthy the increasing encode time...
But if you want to put the filters before the resize, do it this way:

Gripcrop()
Filter()
Filter()
Filter()
Gripsize()
Gripboders()
Letterbox()

This way you will not apply the filters in the borders, keeping it pure black.
I like to use fullscreen arrange method in TMPG, that's why the gripborders is there. If you don't use gripboders, you'll have to use the center arrange method.

emilius256 01-25-2003 10:23 PM

Hello,
Gripfit is great, now is possible to to resize without many calculation or using some external tool.
I've tried on an anamorphic movie and the resize was perfect but on a 4:3 movie the video was stretched vertical.
With overscan 1 the output resolution from gripfit is 336 X 272, with fitcd the output resolution is 336 X 256.
Maybe i made a mistake or gripfit does not proper resize calculation for PAL 4:3 movies.
This is my script:

LoadPlugin("F:\Video\DVD2SVCD\MPEG2Dec\mpeg2dec.dl l")
LoadPlugin("F:\Video\GORDIA~1\Filter\fluxsmooth.dl l")
LoadPlugin("F:\Video\DVD2SVCD\MPEG2Dec\Legalclip.d ll")
LoadPlugin("F:\Video\DVD2SVCD\MPEG2Dec\Sampler.dll ")
LoadPlugin("F:\Video\DVD2SVCD\MPEG2Dec\gripfit_pre view.dll")
LoadPlugin("F:\Video\DVD2SVCD\MPEG2Dec\dustv5.dll" )
mpeg2source("dvd2avi.D2V")
LegalClip()
GripCrop(source_anamorphic = false,352,288,overscan=1)
GripSize()
FaeryDUst()
FluxSMooth()
GripBorders()
LegalClip()
ConvertToRGB24()
Sampler(length=24)

the original resolution is 720 X 576.
Thanks for any answer.
@SansGrip great job, your filters are amazing.

Smoochie3 01-25-2003 11:47 PM

I don't know if it makes any difference, but you could try switching
Code:

GripCrop(source_anamorphic = false,352,288,overscan=1)
to
Code:

GripCrop(352, 288, source_anamorphic=false, overscan=1)

emilius256 01-26-2003 08:50 AM

Thank you for answer, already tried but nothing changed.

If i try with 2 pixel overscan the resize match with the one calculated by FItcd (320 X 256).

SansGrip 01-26-2003 09:16 AM

Quote:

Originally Posted by emilius256
With overscan 1 the output resolution from gripfit is 336 X 272, with fitcd the output resolution is 336 X 256.

Thanks, I'll check into this.

Snollygoster 02-14-2003 11:43 PM

Is there anyway that you can create an AviSynth 2.50 version? You would be my hero if you do so...

Thank you and congratulations about this.

kwag 02-14-2003 11:48 PM

Hi Snollygoster,

GripCrop is one of my main reasons I haven't changed to AviSynth 2.5 :D
We'll have to wait until SansGrip finishes the program, as it's still considered a "Preview" version. But I'm really using it in production without a hitch :lol:

-kwag


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