GripFit
The coding of 0.1 is (I think) complete, and now I have to write the docs 8O. Here's a sneak peek for the impatient amongst you ;). No docs, of course, but the source is there if you're feeling adventurous, or want to look for bugs.
Basic usage: GripFit(clip clip, int width, int height, bool source_anamorphic, bool dest_anamorphic, int overscan, string resizer, int crop_round_width, int crop_round_height, int resize_round_width, int resize_round_height, int luma_threshold, int samples) Defaults: clip = last width = none height = none source_anamorphic = false, unless the source is 720x480 dest_anamorphic = false, unless width is 720 and height is 480 overscan = 0 resizer = "BilinearResize" crop_round_width = 4 crop_round_height = 4 resize_round_width = 16 resize_round_height = 16 luma_threshold = 60 samples = 5 There are two main ways of using it, one for creating "standard" frame sizes, and one for creating 1:1 view-on-the-monitor frames. Example of the latter: GripFit(height=256) Specifying no width lets GripFit choose the most appropriate based on rounding etc. Example of the former: GripFit(width=528, height=480, overscan=1) This'll create a properly sized frame for KVCDx3 with 1 overscan block (that is, 8-pixel gaps each side). Currently, no border is added, hence the command above will probably (depending on the source's dimensions) produce a frame that is 512 pixels wide -- i.e., 528 - 8 * 2. It'll work with both 1:1 view-on-monitor sources (e.g. AVIs) and "standard" aspect ratio sources (e.g. VCD, SVCD, DVD etc.). Because there's no docs you must be brave and forgiving if you want to try this release. It's not even on my site yet, so don't blame me for anything that goes wrong :mrgreen:. I'd greatly appreciate a TON of testing from you guys. Throw what you can at it, all different resolutions, sources, etc. -- for example, I've no Cinemascope source material to test on right now -- and see if you can make it crash. Really pound it and let me know as soon as you see a glitch or if it produces the wrong output for a particular set of inputs. Have fun... I'll be writing docs :x ;). |
YEEEEAHHHH :ole: :flip:
It's play time :mrgreen: |
yeah,i play too! :ole: :wink: :D
|
First note 8)
Here's what I'm using: GripFit( source_anamorphic = true, dest_anamorphic=false, width=528, height=480, overscan=2) Using "Center" in TMPEG as source aspect, the output looks Anamorphic. Setting "dest_anamorphic=true", it's full screen. -kwag |
Quote:
|
Quote:
Edit: GripFit produces 496X336 -kwag |
Code:
if(source_is_anamorphic && !dest_is_anamorphic) -kwag |
Stupid mistake -- forgot to take the existing borders into account when resizing ;). Here's the fix. Told you I shoulda tested it on Cinemascope material... :mrgreen:
|
BTW, here's a helpful script snippet:
Code:
Mpeg2Source("thing.d2v") Code:
Mpeg2Source("thing.d2v") |
Working like a charm :ole: :ole: :mrgreen:
Have a beer :lol: -kwag |
Quote:
|
This is what I'm currently using:
Quote:
-kwag |
Quote:
GripFit(width=528, height=480, overscan=2) I'm planning on implementing a "defaults" parameter, which you'd use like this: GripFit(width=528, height=480, overscan=2, ..., defaults="save") From then on, you could just use GripFit() and it'll use the saved defaults. The other option will be defaults="clear", which clears the stored defaults and uses the built-in ones. Quote:
Now... if only the forum would stop going down :(. Three times today, for me :x. |
Quote:
Quote:
Quote:
So it's probably time for me to look for a new provider :idea: When this happens, please go to www.webwarper.net, and see if you can access the site from there. If you do, then it's defitively the problem, and I'm writing once more to the provider (for the last time :wink: ) -kwag |
Quote:
Quote:
Quote:
|
To sum up the usage for everyone until the docs are ready, what you'll mostly be using is this:
GripFit(352, 240, overscan=x) where overscan is 0, 1, 2, whatever you usually use in FitCD. Or... GripFit(352, 480, overscan=x) GripFit(528, 480, overscan=x) GripFit(704, 480, overscan=x) and so on. If you want to produce 1:1 square-pixels view-on-your-monitor output, use GripFit(height=256) or... GripFit(height=384) GripFit(height=190) or whatever. It'll choose the correct width to maintain the aspect ratio for you. The option most often changed from default, I suspect, will be the resizer parameter. If you like Lanczos, use GripFit(width=528, height=480, resizer="LanczosResize") GripFit doesn't check what you specify as the resizer (you can use anything: bilinear, bicubic, Lanczos, simple, point...), so if you get a weird error try checking for a typo. Note that currently there's no facility for specifying a and b values for bicubic -- that'll be in the next release. You'll only need to touch the other options if you have some weird situation, like a 720x480 DVD that isn't anamorphic (very rare these days), or your player is able to play anamorphic KVCDs (even rarer). In the first circumstance, you would use: GripFit(528, 480, source_anamorphic=false) In the second, you would use: GripFit(528, 480, dest_anamorphic=true) Other options are generally best left at the defaults unless you really know what you're doing (e.g. you desperately want Avisynth to crash, in which case go ahead and change the resize_round_width to 1 ;)). Now back to writing docs...... :evil: ;) |
Got one that bombed here SansGrip. It's the movie "Siege". The movie is NOT anamorphic. At least, that's what FitCD says :roll:
Here's the data: Read from .d2v: 720x480 Cropped borders on TMPEG: 720x274 Read value on TMPEG with GripFit when .avs opens: 496x192 The .avs reads: GripFit( width=528, height=480, overscan=2) I adjusted the .avs line to: GripFit( source_anamorphic = false, dest_anamorphic=false, width=528, height=480, overscan=2) and now it's perfect :D The information read from DVD2AVI on the VOBs is: Aspect ratio of 4:3 720x480 After the adjustment, TMPEG opens the .avs as: 496x256 :) -kwag |
I guess we're posting almost at the same time :mrgreen:
|
Quote:
BTW, the reason FitCD knows this and GripFit doesn't is because FitCD gets the information from the .d2v file, while all GripFit has to go on is the clip's frame size and frame rate :). |
Yummy. This filter is delicious :mrgreen:.
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.