Letterboxing in VirtualDubMod
- n3ko-chan
- Joined: Fri Sep 30, 2005 12:12 am
Letterboxing in VirtualDubMod
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?
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?
- Kariudo
- Twilight prince
- Joined: Fri Jul 15, 2005 11:08 pm
- Status: 1924 bots banned and counting!
- Location: Los taquitos unidos
- Contact:
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
I might have messed something up in there...resizing isn't my strong suit
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
- Kariudo
- Twilight prince
- Joined: Fri Jul 15, 2005 11:08 pm
- Status: 1924 bots banned and counting!
- Location: Los taquitos unidos
- Contact:
- FinalResolve
- Joined: Sun Apr 15, 2007 1:34 pm
Avisynth is the way to go, just add this to the end of your script and hit f5 to refresh it.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.
Code: Select all
addborders(0,60,0,60)
- Phantasmagoriat
- Joined: Mon Feb 06, 2006 11:26 pm
- Status: ☁SteamPunked≈☂
- Contact:
X2FinalResolve wrote:Avisynth is the way to go
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...
...
-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."
"Effort to Understand; Effort to be Understood; to See through Different Eyes."
- LantisEscudo
- Joined: Thu Mar 08, 2001 5:21 pm
- Location: Eastern Massachusetts
- Contact:
- Qyot27
- Surreptitious fluffy bunny
- Joined: Fri Aug 30, 2002 12:08 pm
- Status: Creepin' between the bullfrogs
- Location: St. Pete, FL
- Contact:
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
or
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)
Code: Select all
[source loader]
Crop(0,4,0,-4)
AddBorders(0,64,0,64)
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).Phantasmagoriat wrote:-make a new .txt file in that folder
...
-change the file extension from .txt to .avs