letterboxing

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
prYzm
Joined: Thu Feb 02, 2006 8:05 am
Location: 'Stralia
Org Profile

letterboxing

Post by prYzm » Fri Dec 21, 2007 7:15 pm

ive got to use letterboxing on my 16:9 footage for a mep segment im doing but ive never done it b4 and its a lil confusing to me. was wondering if sum1 could give me a hand

the footage is
  • 720x576
    16:9 PAR
    25 fps
    interlaced
    Top field order
so what i can think is that i need the conversion of the fps to the 23.97 just using Mrestore (hurrah for ezmode pal conversion) ive checked the mrestore and it doesnt screw my footage like it can do. but i still need to deal with the letterboxing
  • MPEG2Source("source.d2v")
    TDeint(mode=1)
    Mrestore()
so i need some sort of issue for the borders/cropping, but looking on the ermacs + AD's guide (or recently Zarxrax) im not sure which set to use, cause theres like 3 diff options of letterboxing. anyone have any reccomendations or can help with this?

one of the things i read is that i can apply borders AFTER ive exported from vegas, can this be confirmed? cause this would make editing a helluva lot easier
Image

User avatar
Purge
Joined: Mon Oct 10, 2005 9:18 am
Location: Under Aus
Org Profile

Post by Purge » Fri Dec 21, 2007 9:34 pm

you usually do letterboxing after you edit.
What is the resolution you need for the project? im guessing a 4:3 ratio so generally you can just export a lossless copy of your vid at 16:9 AR and then just add a border using avisynth and AddBorders(0, 0, 0, 0) to get a 4:3 ratio and resize to the required resolution if needed

another method is just to create in your editor a black vid at the needed resolution and then to just composite your vid in and just export as is.

720x576 isn't 16:9 either and you will have to resize it.

User avatar
prYzm
Joined: Thu Feb 02, 2006 8:05 am
Location: 'Stralia
Org Profile

Post by prYzm » Fri Dec 21, 2007 9:57 pm

needs to be 640x480, thx for confirming i can do borders after. i guess ill do the edit then worry about this =D
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 » Sat Dec 22, 2007 1:42 am

Borders can be applied either before or after editing; it depends on how you want the video presented. Generally, if you're using effects, unless you want the letterboxing incorporated into the effects, then edit normally and add the borders afterward.

With 720x576 it can be 16:9 if there's anamorphic signaling. The dimensions themselves aren't 16:9 but the video is resized to it on playback by the DVD or software player. In which case properly handling it would be to resize to 1024x576 (or 848x480 if you're going for NTSC) - this is a must if you're going to be using effects later on, so that the effects themselves don't get distorted when the video is resized to a square pixel ratio.

How much to letterbox is based on what the actual aspect ratio is. For generic 16:9 video, resizing to 640x352 is fine (or resizing to 640x360 and then cropping 4 pixels from the top and bottom of the video, if you want to be anally retentive about it), which would need AddBorders(0,64,0,64). For wider ratios, this number will be different (the height will be smaller). Flags for wider ratios aren't supported by DVD, though, even if they are supported by MPEG-2. On DVD, wider ratios are handled by letterboxing the video to a 16:9 frame and then using the normal anamorphic routine.

User avatar
prYzm
Joined: Thu Feb 02, 2006 8:05 am
Location: 'Stralia
Org Profile

Post by prYzm » Sat Dec 22, 2007 2:07 am

thx qyot =D. its a bit confusing but i get the general idea. ill just have to figure out the resize after ive actually made my clip now
Image

Locked

Return to “AviSynth Help”