Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 25th May 2020, 22:00   #1  |  Link
Registered User
Join Date: Mar 2011
Posts: 4,286
MeGUI Resizing Functions - AnyResizerMeGUI & CropResizeMeGUI

I wanted to solve an issue with MeGUI's resizing... the inability to use the Script Creator for cropping and resizing using a non-Avisynth resizer, without having to manually edit the scripts it creates, which can be annoying, as every time a change is made in the AVS Script Cretaor GUI, it re-writes the script.

This post is dedicated to the AnyResizerMeGUI script and the functions it contains.
The next post will be dedicated to using the CropResizeMeGUI function as it requires images, so it'll also be a substitute for a help file.

The new version includes a zip file containing Avisynth profiles. It can be imported directly into MeGUI via the "File/Import Presets" menu, so the Avisynth templates don't need to be created manually. Should you not wish to keep them, they're easily deleted.
A bonus function called MeGUISource.avsi is now included. It's sole purpose is to automatically remove the frame rate conversion MeGUI adds to a script for FFVideoSource.
The included AVS templates for CropResizeMeGUI have also been updated.
The new templates now include the Mod & HMod arguments for CropResize, rather than those arguments being modified by the CropResizeMeGUI function automatically.

AnyResizerMeGUI & CropResizeMeGUI 2020-06-23.zip

None of this will be likely to work with DGI Source configured to do the cropping and resizing in the AVS profile. I don't know how that's added to a script.

The AnyResizerMeGUI script contains the following functions. I won't go into too much detail as it comes with a help file. Instead I'll just offer some usage examples. The functions are intended to be used after creating appropriate AVS Profiles (templates) in the Script Creator.

Returns MeGUI's resizing width and height as a string. The width and height are separated by a comma.
ie 640,480
The same as for AnyResizerMeGUI, only the "a" and "b" arguments are included in the string when a Bicubic resizing option is selected.
Returns the selected resizer in the AVS Script Creator as a string.
ie "Spline36Resize"
Returns MeGUI's resizing width as an integer.
Returns MeGUI's resizing height as an integer.
Automatically crops the source to a Mod4 width. See the help file for usage details.

Here's how the above functions are used in an AVS Profile (template).
The first example specifies the Resize8 function for resizing. I use it regularly as it corrects the slight chroma shift that the Avisynth resizers can introduce. It also tells the Resize8 function which resizing kernel to use according to the resizing method specified in the Script Creator profile, or selected in it's GUI.

The above would result in the following, assuming MeGUI is resizing to 1280x720 and Spline36Resize is the selected method in MeGUI's script creator.

The next example gives MeGUI the ability to upscale with NNEDI3.

The above would result in the following, assuming MeGUI is resizing to 1280x720 and Spline36Resize is the selected method in MeGUI's script creator.

With any luck the included functions should allow the creation of templates that allow MeGUI to use any resizer.

If you don't have Avisynth installed and/or you don't auto-load plugins and scripts, you'll need to include importing the AnyResizerMeGUI script in the template, along with the appropriate resizing plugin or script and it's dependencies.

Last edited by hello_hello; 22nd June 2020 at 21:04.
hello_hello is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 20:33.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.