Cropping in VirtualDubMod
-
Ninjafox
- Joined: Mon Nov 10, 2003 3:49 am
- Location: Australia, NSW
Cropping in VirtualDubMod
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 
- Rozard
- Joined: Wed Oct 31, 2001 10:39 pm
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.
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.
- devilmaykickass
- Joined: Mon May 12, 2003 8:47 pm
-
Ninjafox
- Joined: Mon Nov 10, 2003 3:49 am
- Location: Australia, NSW
heh, how do i use avisynth?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.
- Rozard
- Joined: Wed Oct 31, 2001 10:39 pm
http://www.animemusicvideos.org/guides/ ... synth.htmlNinjafox wrote:heh, how do i use avisynth?i mean ive got it installed but neva really touched it
-
Ninjafox
- Joined: Mon Nov 10, 2003 3:49 am
- Location: Australia, NSW
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)
Avisynth open failure
Script error: Invalid arguments to function "Crop"
(C:\Documents and Settings\User\Desktop\crop.avs, line 1)
- FurryCurry
- Joined: Sun Jul 14, 2002 8:41 pm
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.
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.
My Hands Are The Assailant's Hands.
-
Ninjafox
- Joined: Mon Nov 10, 2003 3:49 am
- Location: Australia, NSW
cool i got it workin, cheers mateFurryCurry 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.
