Cropping in VirtualDubMod

Locked
Ninjafox
Joined: Mon Nov 10, 2003 3:49 am
Location: Australia, NSW
Org Profile

Cropping in VirtualDubMod

Post by Ninjafox » Sat May 14, 2005 2:31 am

In VirtualDubMod when u crop sumthing how do u save the cropping u did? i went to File > Preview filtered to watch it after i cropped it but umm i dont think that was quite it :P

User avatar
Jnzk
Artsy Bastid
Joined: Tue Jan 28, 2003 5:30 pm
Location: Finland
Org Profile

Post by Jnzk » Sat May 14, 2005 3:03 am

File -> Save As (AVI)

User avatar
Rozard
Joined: Wed Oct 31, 2001 10:39 pm
Org Profile

Post by Rozard » Sat May 14, 2005 3:03 am

You would have to Save a new AVI file. However, it's much easier (and probably better) to do your cropping in AVISynth.

Crop(x,y,-x,-y), where x = pixels off of the left (-x is right) and y = pixels off of the top (-y is bottom). And yes, you do need the negatives there, unless it's zero. Another way to do it is to actually type out the beginning and ending pixels. So take these for example:

Crop(0,0,0,0) = Crop(0,0,720,480)
Crop(3,5,-4,-8) = Crop(3,5,716,412)

You should note that in most colorspaces, you can only crop even numbers. You can crop odd numbers after you add this: ConvertToRGB32()

After you crop, you should always resize back to what aspect ratio the video was in before you crop it. There are several resizers, but I believe the best is LanczosResize()

And to anyone more technically inclined than I am, feel free to correct me if I'm wrong somewhere.
Image
RichLather: We are guests of this forum, and as such we do not make the rules.
BishounenStalker The freedom to suck is what makes the Internet rock.

User avatar
Rozard
Joined: Wed Oct 31, 2001 10:39 pm
Org Profile

Post by Rozard » Sat May 14, 2005 3:08 am

Janzki wrote:File -> Save As (AVI)
lol, guess I went overboard :P
Image
RichLather: We are guests of this forum, and as such we do not make the rules.
BishounenStalker The freedom to suck is what makes the Internet rock.

User avatar
devilmaykickass
Joined: Mon May 12, 2003 8:47 pm
Org Profile

Post by devilmaykickass » Sun May 15, 2005 4:25 am

Rozard wrote: However, it's much easier (and probably better) to do your cropping in AVISynth.
This is correct.

Ninjafox
Joined: Mon Nov 10, 2003 3:49 am
Location: Australia, NSW
Org Profile

Post by Ninjafox » Sun May 15, 2005 4:30 am

Rozard wrote:You would have to Save a new AVI file. However, it's much easier (and probably better) to do your cropping in AVISynth.

Crop(x,y,-x,-y), where x = pixels off of the left (-x is right) and y = pixels off of the top (-y is bottom). And yes, you do need the negatives there, unless it's zero. Another way to do it is to actually type out the beginning and ending pixels. So take these for example:

Crop(0,0,0,0) = Crop(0,0,720,480)
Crop(3,5,-4,-8) = Crop(3,5,716,412)

You should note that in most colorspaces, you can only crop even numbers. You can crop odd numbers after you add this: ConvertToRGB32()

After you crop, you should always resize back to what aspect ratio the video was in before you crop it. There are several resizers, but I believe the best is LanczosResize()

And to anyone more technically inclined than I am, feel free to correct me if I'm wrong somewhere.
heh, how do i use avisynth? :P i mean ive got it installed but neva really touched it

User avatar
Rozard
Joined: Wed Oct 31, 2001 10:39 pm
Org Profile

Post by Rozard » Sun May 15, 2005 1:28 pm

Ninjafox wrote:heh, how do i use avisynth? :P i mean ive got it installed but neva really touched it
http://www.animemusicvideos.org/guides/ ... synth.html
Image
RichLather: We are guests of this forum, and as such we do not make the rules.
BishounenStalker The freedom to suck is what makes the Internet rock.

Ninjafox
Joined: Mon Nov 10, 2003 3:49 am
Location: Australia, NSW
Org Profile

Post by Ninjafox » Mon May 16, 2005 2:17 am

i created a avs. file saying "Crop(40,16,-40,-16)" without the " then i opened up VDubMod, File > Open Videofile > crop.avs (File name i save it as), then i get this error:

Avisynth open failure
Script error: Invalid arguments to function "Crop"
(C:\Documents and Settings\User\Desktop\crop.avs, line 1)

User avatar
FurryCurry
Joined: Sun Jul 14, 2002 8:41 pm
Org Profile

Post by FurryCurry » Mon May 16, 2005 2:33 am

Well, first off, you need to tell Avisynth what file to open.

You'll need a line like:

AVISource("C:\Documents and Settings\User\Desktop\mymastervid.avi")

or whatever the path to the file you want to crop is, then have the crop command as your second line.

The fact your error message says "line 1" suggests to me you didn't tell avisynth what file to read from.
My Eyes Are The Victim's Eyes.
My Hands Are The Assailant's Hands.

Ninjafox
Joined: Mon Nov 10, 2003 3:49 am
Location: Australia, NSW
Org Profile

Post by Ninjafox » Mon May 16, 2005 3:26 am

FurryCurry wrote:Well, first off, you need to tell Avisynth what file to open.

You'll need a line like:

AVISource("C:\Documents and Settings\User\Desktop\mymastervid.avi")

or whatever the path to the file you want to crop is, then have the crop command as your second line.

The fact your error message says "line 1" suggests to me you didn't tell avisynth what file to read from.
cool i got it workin, cheers mate :wink:

Locked

Return to “Video & Audio Help”