Letterboxing in VirtualDubMod

User avatar
n3ko-chan
Joined: Fri Sep 30, 2005 12:12 am
Org Profile

Letterboxing in VirtualDubMod

Post by n3ko-chan » Wed Dec 19, 2007 1:42 pm

I'm working on an AMV at the current moment and one anime that I'm using is cropped in wide screen format [640x360]

However the majority of the other footage in the AMV is full screen [640x480]

So can anyone tell me how to put letterboxes on the wide screen footage to make it full screen?

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Wed Dec 19, 2007 2:08 pm

video-filters-resize
one of the options should say "expand frame and letterbox image"
enable it, and set the resolution for 640x480

another option is to manually add borders via avisynth

Code: Select all

addborders(int left, int top, int right, int bottom)
addborders(0,60,0,60) <- in your case
I might have messed something up in there...resizing isn't my strong suit
Image
Image

User avatar
n3ko-chan
Joined: Fri Sep 30, 2005 12:12 am
Org Profile

Post by n3ko-chan » Wed Dec 19, 2007 2:48 pm

Thanks, but when I go to filters it doesn't give me an option to click it.

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Wed Dec 19, 2007 2:57 pm

gotta click "add" and search for the resize filter
Image
Image

User avatar
n3ko-chan
Joined: Fri Sep 30, 2005 12:12 am
Org Profile

Post by n3ko-chan » Wed Dec 19, 2007 3:04 pm

Whoops, I'm sorry I didn't notice that ^^ Thanks though when I do what you said to do, all four sides become black instead of just the top and bottom.

User avatar
FinalResolve
Joined: Sun Apr 15, 2007 1:34 pm
Org Profile

Post by FinalResolve » Wed Dec 19, 2007 3:10 pm

n3ko-chan wrote:Whoops, I'm sorry I didn't notice that ^^ Thanks though when I do what you said to do, all four sides become black instead of just the top and bottom.
Avisynth is the way to go, just add this to the end of your script and hit f5 to refresh it.

Code: Select all

addborders(0,60,0,60)
Check File> File Information to see if it's the correct resolution then render away if you're happy with it.
Image

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Post by Phantasmagoriat » Wed Dec 19, 2007 3:17 pm

FinalResolve wrote:Avisynth is the way to go
X2

It has many uses besides cropping; you can do virtually anything by running an avisynth script through vdub [avisynth+vdub come with the amvapp] that looks like this:

Code: Select all

avisource("insert-video-filename-between-these-quotes.avi")
converttoyv12()
addborders(0,60,0,60)
temporalcleaner()
DeRainbow(10)
blur(0,1)
sharpen(1)
etc()
etc...
...
-put your video into a new folder
-make a new .txt file in that folder
-copy any script you want into your .txt file, and save
-change the file extension from .txt to .avs
-open .avs with vdub

if your source is not an .avi, try directshowsource("/path.xxx")
...although, what I'd really like to see is mpeg2source("/path.d2v") for DVD footage
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

User avatar
n3ko-chan
Joined: Fri Sep 30, 2005 12:12 am
Org Profile

Post by n3ko-chan » Wed Dec 19, 2007 3:17 pm

How exactly would I do this? I try to stay away from AviSynth since every time I've tried using it it has never worked ^^;

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Post by LantisEscudo » Thu Dec 20, 2007 12:16 am

In VirtualDub, after you've selected the resize filter, you want it to look like this (you can pick whatever resizing mode you prefer, my personal preference is Bicubic or Lanczos3):
Image

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Thu Dec 20, 2007 2:39 am

Just a note: you might also want to resize or crop the original vid to 640x352 to maintain mod16 proportions. It would only differ by inputting 352 in the height value in the box in the example above (if resizing), or (if cropping), doing this:

Add the 'Null Transform' filter. Then in the main window, with that filter highlighted, click the Cropping... button and take 4 pixels from the top and bottom of the image (i.e. set both the Y1 and Y2 counters to '4'). Then, follow the example outlined above, adding the Resize filter and making sure that the width/height are 640x352 and the letterboxing is set to 640x480.

It would be much simpler in AviSynth, though, since it would only consist of

Code: Select all

[source loader]
Lanczos4Resize(640,352)
AddBorders(0,64,0,64)
or

Code: Select all

[source loader]
Crop(0,4,0,-4)
AddBorders(0,64,0,64)
Phantasmagoriat wrote:-make a new .txt file in that folder
...
-change the file extension from .txt to .avs
This actually isn't required anymore, since new versions of AviSynth install a context menu item that does that. Right click->New->AviSynth script. Then just double-click or right-click->Edit or whatever you usually do to bring up scripts in Notepad (I do the right-click->Edit routine since I have scripts set to play back when double-clicked).

Locked

Return to “Video & Audio Help”