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)

SansGrip 01-15-2003 11:47 AM

Quote:

Originally Posted by Yoda
K19- worked.
Minority Report-green screen
Bad Company-green screen
Sopranos-green screen

I can add some to the "works" list: Death To Smoochy, Signs, Shawshank Redemption. Unfortunately those are the only ones I've tested on so far :D.

I don't have any of those discs you mentioned, so if updating your avisynth.dll doesn't help then I guess I'll be approaching it from a theoretical direction...

Yoda 01-15-2003 12:57 PM

:D Success! The problem was with avisynth 2.06. Upgraded to 2.07 and gripfit now works. That may solve some of my other problems as well. Thanks Sansgrip!

SansGrip 01-15-2003 01:11 PM

Quote:

Originally Posted by Yoda
The problem was with avisynth 2.06.

Cool! One fewer thing to worry about ;).

SansGrip 01-15-2003 03:23 PM

Here's preview 0.0c with another new feature (I really should make a release already ;)). Instead of:

Code:

AviSource("funny.avi")
GripFit(528, 480)
FluxSmooth()
GripBorders()
LegalClip()

one would now use:

Code:

AviSource("funny.avi")
GripCrop(528, 480)
# Filters can go here
GripSize() # Optional
FluxSmooth()
GripBorders() # Optional
LegalClip()

As you can see, I split "GripFit" into "GropCrop" and "GripSize". Surprisingly, GripCrop now just crops existing borders (ala RemoveBorders), and GripSize does the resizing. GripBorders adds borders, as usual.

I did this so that it's possible to insert filters between the crop (so that they run faster) and the resize (so that they can operate on the full-size image). Many people do this as a matter of routine, since it makes smoothers less aggressive than running them after the resize.

I can think of a bunch of other stuff I want to add (such as auto-detection of anamorphic source material) but that'll have to wait until after I've written the docs and got 0.1 out of the door.

Let me know if you have problems :).

muaddib 01-15-2003 10:23 PM

Quote:

Originally Posted by SansGrip
As you can see, I split "GripFit" into "GropCrop" and "GripSize". Surprisingly, GripCrop now just crops existing borders (ala RemoveBorders), and GripSize does the resizing. GripBorders adds borders, as usual.

That's GREAT SansGrip!
But I’m just wondering… as a cosmetic issue and to make it a bit clearer
isn’t it good to have the resize values in the GripSize function? :roll:

SansGrip 01-16-2003 08:18 AM

Quote:

Originally Posted by muaddib
But I’m just wondering… as a cosmetic issue and to make it a bit clearer isn’t it good to have the resize values in the GripSize function? :roll:

It would be clearer, I agree. Unfortunately all the work is done in GripCrop, and GripSize simply takes the values stored by GripCrop to use when resizing. You see, if GripCrop doesn't know what the target size is, it can't work out how much to crop the clip to maintain aspect ratio.

The only other option would be to specify the target size in both GripCrop and GripSize, but I think that would be even worse than the current way :).

mfb 01-17-2003 09:24 AM

a little more height
 
Hi SansGrip,

Is it possible for GripFit to cut a little more on left/right side of the frames
to gain more height for movies in 1:2,35 or 1:2,40 format?

I don't like the small picture-bar of such movies, but i love GripFit....

regards, ***mfb***

SansGrip 01-17-2003 09:41 AM

Re: a little more height
 
Quote:

Originally Posted by mfb
Is it possible for GripFit to cut a little more on left/right side of the frames to gain more height for movies in 1:2,35 or 1:2,40 format?

At the moment it's not possible to alter the crop behaviour, but you can force it to cut more from the sides by doing this:

Code:

Mpeg2Source("foo.d2v")
Letterbox(0, 0, 16, 16)
GripCrop(...)

The Letterbox line will make 16-pixel black borders left and right before GripCrop sees the clip. GripCrop will then crop these black borders off, effectively doing what you want. You can of course use any value you like -- 16 is just an example.

mfb 01-17-2003 09:51 AM

Quote:

The Letterbox line will make 16-pixel black borders left and right before GripCrop sees the clip. GripCrop will then crop these black borders off, effectively doing what you want. You can of course use any value you like -- 16 is just an example.
Thanks - I'll give it a try and I'am hoping that you will include such a
function in further version of your great GripFit.

regards, ***mfb***

Jellygoose 01-17-2003 10:30 AM

That's what I was going to ask...

Is it possible to reduce the width of the clip without reducing the height too? because Blcoks-Overscan is a good thing, but it just sucks that the height is reduced too... That makes Lord Of The Rings For example almost unwatchable at TV Overscan 2... it's just too small of a picture... in fact the top and bottom borders are bigger than the actual movie... :cry:

SansGrip 01-17-2003 10:51 AM

Quote:

Originally Posted by Jellygoose
That makes Lord Of The Rings For example almost unwatchable at TV Overscan 2

Code:

GripCrop(528, 480) # default is 0 overscan blocks
Letterbox(0, 0, 16, 16)

This will give you two overscan blocks left and right, but none top and bottom.

kwag 01-17-2003 11:03 AM

Quote:

Originally Posted by SansGrip
Code:

GripCrop(528, 480) # default is 0 overscan blocks
Letterbox(0, 0, 16, 16)

This will give you two overscan blocks left and right, but none top and bottom.

Wouldn't this change a little the original aspect of the movie? I know it's a little, but it won't be the original. Or am I wrong :?:

-kwag

SansGrip 01-17-2003 11:18 AM

Quote:

Originally Posted by kwag
Wouldn't this change a little the original aspect of the movie? I know it's a little, but it won't be the original. Or am I wrong :?:

No, because the pixel aspect ratio remains the same. All it's doing is blacking out the left and right edges. It should still display correctly on the standalone.

At least I think that's the case. I'll ponder it while I walk my daughter to school ;).

Edit: It'll change the display aspect ratio of the active portion of the frame, but not the pixel aspect ratio, so it'll still display correctly on the standalone (and in WinDVD etc.)

SansGrip 01-17-2003 12:30 PM

@Jellygoose

Could you give me some figures from your LOTR encode? It will help me decide how to implement what you ask for. I need to know:

- All the GripXxx lines from your script
- The size of the original, unaltered frame
- The size of the existing borders as worked out manually by you
- The size of the frame after GripCrop
- The size of the frame after GripSize

That should give me something to work with :).

rendalunit 01-18-2003 01:04 PM

what's the latest version of GripFit_preview.dll?
 
@SansGrip,

Is 0.0c the latest version? Are there docs?

Thanks

SansGrip 01-18-2003 02:25 PM

Re: what's the latest version of GripFit_preview.dll?
 
Quote:

Originally Posted by rendalunit
Is 0.0c the latest version?

Yep.

Quote:

Are there docs?
Not yet -- I'm still bug-fixing and adding the features I want in the first release, 0.1. Once the feature-set has stabilized I'll finish the docs and make a release :).

SansGrip 01-18-2003 02:34 PM

Just to clarify what I was saying, releasing 0.1 is pretty high on my to-do list. At the moment I'm still testing to make sure that it's matching the result from FitCD pretty closely (working backwards from the rounded resize to the cropping-to-maintain-aspect-ratio part is proving trickier than I first thought). I also need to add a way to override its border-detection for difficult movies (e.g. those with subtitles in the border), and try to figure out how to do overscan borders on one plane only (i.e. left and right or top and bottom but not both) while maintaining aspect ratio, or if this is even necessary given the latest fixes I've done.

Also somewhere near the top of my to-do list is recompiling my Avisynth 2.5 filters for the latest build, and finishing drywalling the dining room (my wife wants me to nudge that last one a little higher on my list) :mrgreen:.

rendalunit 01-18-2003 02:59 PM

Quote:

Originally Posted by SansGrip
finishing drywalling the dining room (my wife wants me to nudge that last one a little higher on my list)

ooh fun! I just finished drywalling a giant doghouse I built :D

SansGrip 01-18-2003 03:40 PM

Quote:

Originally Posted by rendalunit
I just finished drywalling a giant doghouse I built :D

Did you insulate? :mrgreen:

This is the first time I've done drywalling, and it's going quite well I think... I'm mudding at the moment and getting more on myself than on the wall, but it's slowly taking shape ;).

rendalunit 01-18-2003 03:54 PM

Quote:

Originally Posted by SansGrip
Did you insulate?

yep, insulated with R-11 and wired it too :wink: The biggest mistake I used to make when taping is that I'd tape over large gaps (>1/4") and large bubbles would form behind the tape- solve that by filling the gaps with mud- let it dry, then tape! :lol:


All times are GMT -5. The time now is 02:46 PM  —  vBulletin © Jelsoft Enterprises Ltd

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