Quantcast Avisynth: Rebuild of Gripfit DLL - digitalFAQ.com Forums [Archives]
  #1  
08-12-2006, 05:31 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
I had a look at the GripFit c++ code and did some minor changes.
Sometimes it has been reported that GripFit does crash under certain circumstancies. Please do test this one on known GripFit crashing workouts of the past, so we can see if that issue has been solved.
Still no Mpeg4 targets using individual PAR supported, but will be added in the future. Mpeg4 sources for shure are supported as common.

The original code/work is from SansGrip.

Changes:
- Newer Avisynth.h header used - the older compile of GripFitYV12 did use a very old release of the avisynth_25.h file, maybe this change already solves the GripFit crash.
- Some minor changes on the PAR calculation have been done. So 544 width outputs now will be shown correctly by the SAP.
- If 720 is the source width and 704 is the target, then if source state is anamorph, at "default" also the 704 target will be anamorph. Before that has been supported only at 720->720 conversations.

Download: GripFit2006
(This is BETA, so no warranties)

Usage is as common:

Quote:
GripCrop(int width, int height, bool source_anamorphic, bool dest_anamorphic, int overscan, int crop_round_width, int crop_round_height, int resize_round_width, int resize_round_height, int luma_threshold, int samples)

GripSize(string resizer)

GripBorders()
So ... on a 720 source ..

GripCrop(704,576)
GripSize("Lanczos4Resize)
GripBorders()

Will keep the 720x576 sources anamorph state in case of, and does convert it to 704x576. I actually say "convert" as in here it correctly just crops the borders to get to 704x576.



GripCrop(352,576, source_anamorphic=false, resize_round_width=2, resize_round_height=2)
GripSize("Lanczos4Resize)
GripBorders()

Will resize a NON-anamoprh 720x576 stream to 352x576 (1/2 DVD) and does use MOD2 instead of default MOD16 when resizing (default is recommended).
The same logic appears on the parameters "crop_round_width" and "crop_round_height" as here you also can alter the cropping MOD.

The parameters "luma_threshold" and "samples" are for altering the border detection, so Luma detection stands for the border-blackness threshold and samples for how many frames of the whole video should be used as reference for detection.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
08-12-2006, 10:05 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Inc,

Thank you for this update. A (working) gripfit function gives an easier way to handle the scripts we can gives to the members, specially newcomers.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: GripFit? corrupt2k Avisynth Scripting 4 12-06-2004 11:22 AM
Avisynth 2.0 Gripfit.dll is missing? Blubear Avisynth Scripting 2 07-22-2004 03:09 AM
Avisynth: Script with GripFit X BicubicResize? jorel Avisynth Scripting 11 03-16-2004 03:02 PM
Avisynth: Gripfit problems... TKS Avisynth Scripting 1 11-28-2003 05:43 AM
AviSynth resize vs GripFit? NismoSX Avisynth Scripting 22 08-04-2003 02:55 PM

Thread Tools



 
All times are GMT -5. The time now is 10:28 PM  —  vBulletin Jelsoft Enterprises Ltd