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 > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 22nd June 2009, 12:40   #1  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
How to crop correctly. A guide using Megui.

How to crop your video using megui avs script creator
_______________________________________________________________

Watch youtube video guide


Step 1: Initializing the avs script editor to then use either method 1 or method 2
_______________________________________________________________

- From the megui tool tab, click avs script creator.

- Open the avs script creator and load your avs file. Your avs file should look like this. Notice nor resizing or cropping in the code:

directshowSource("C:\Users\red\Desktop\Blade Runner.GRF",audio=false,fps=23.976)

- From the Input Dar, go to "Select AR".
If the dvd box says 2.35:1, then type in 2.35
If the dvd box says the aspect ratio is 1.78:1, then type in 1.78
Then press ok.

Method 1
_______________________________________________________________

- Check the "Resize", "Suggested resolution mod16", "Crop" boxes.

- Assuming your source resolution is 720, 480 or 720, 576 Widescreen, And there is 8 pixel black bars on the left and right side of the video, change the 720 to 704 using the down arrow to the left of 720. Pressing it once will change the resolution to 704.

- Assuming the video is 720, 480 or 720, 576 Widescreen and there is no 8 pixel black bars on the left and right side, then keep the resolution to 720.

- Click the "Clever anamorphic encoding"box.

- You can now save the file.
Open the saved file and copy and paste the code you need to the avs you opened in the avs script creator process.

I needed to get 1.78:1 and after doing this my created avs looked like this:
# Set DAR in encoder to 16 : 9. The following line is for automatic signalling
global MeGUI_darx = 16
global MeGUI_dary = 9
Import("C:\Users\canteen\Desktop\test run2.avs")
#deinterlace
crop( 0, 0, 0, 0)

LanczosResize(704,464) # Lanczos (Sharp)
#denoise

And my working avs looked ike this after all this work was done and I'm ready to start encoding:

mpeg2source("C:\Users\canteen\Desktop\afro.d2v")
global MeGUI_darx = 16
global MeGUI_dary = 9
LanczosResize(704,464)

Method 2
_______________________________________________________________

- Assuming your source resolution is 1920x 1080 High Definition.

- Check these boxes:
Resize, Suggested resolution mod 16.
This will change the resolution of the 1920, 1080.

- Uncheck Suggested resolution mod 16.

- Check the crop box.

- Click Auto crop.

- Save the file.

- Copy and paste the results into your working avs file as done in method 1.

______________________________________________________


This picture shows how to initialize avs script creator to then do either of the two methods below



Method 1


method 2



Comparison pictures below



- You may be asking which method is the best one?
There is no Best method is the answer. Try a method. When have a finished avs with the values you got from the avs script editor, open the avs with megui, and there will be a picture pop up and it will show the aspect ratio of that picture.

If you do not think the aspect ratio shown in the picture is good enough, then try the other method. Simple as that.

- About cropping. If you select a video using your avs, and when the video screen pops up,and that video has a miniature video picture on the screen that is not what the rest of the movie resolution is.
Then when you crop using the avs script creator it will crop out the black border surrounding that miniature picture.
So you need to have a picture the size of the main movie in the pop up box when you start the avs script creator.

Note
Below is the original post for reference purpose. Above the line is my edited post with my solution I found


________________________________________________

sample vob

I want to resize the video to these three resolutions.
Not all at once in the same encode though.

The first resolution is 720x480, or ntsc sd dvd
The second resolution is 720x576 or pal dvd
The third resolution is 1080p, or 1920x1080

This is the solution I have now and I think it's wrong?

Code:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
setmtmode(5)
mpeg2Source("C:\Users\Red\Desktop\test run.d2v") 
setmtmode(2)
a= last
b=a.Spresso()
SeeSaw(a,b)
LimitedSharpenFaster(strength=11)
LimitedSharpenFaster(strength=11)
super = MSuper(pel=2,hpad=4,vpad=4)
backward_vec = MAnalyse(super,chroma=false, blksize=16, isb = true, search=5, searchparam=1)
forward_vec = MAnalyse(super, chroma=false, blksize=16)
MFlowFps(super, backward_vec, forward_vec, num=60, den=1, mask=1, ml=49)
distributor()

Crop(0,0,-0,-0)
Spline36Resize(720,480)
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.

Last edited by Jeremy Duncan; 7th July 2009 at 21:15.
Jeremy Duncan is offline   Reply With Quote
 

Tags
1.78;1, crop

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 03:12.


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