Log in

View Full Version : Resize with auto maintain AR


Vlcek
5th March 2005, 11:25
I need some help with AviSynth usage on resizing. I have multiple clips with different resolutions and need to resize them to PAL (720x576). But when I use simple resize (any of them), then AR is not maintained. Any idea how to write some universal script able to take any sized video and resize it to 720x576 and maintain AR by adding black bars to the top/bottom of video (letterboxing)?

Normally I use VirtualDub, but this time there are many video clips, so AviSynth is preferred...

Ark
5th March 2005, 12:01
Avisynth doesn't know what AR is, it simply see an image with two dimensions but nothing that in someway connects the two together, so i don't think is possible to do what you want...

buzzqw
5th March 2005, 12:05
you can search for a plugin called GripCrop.

BHH

Mug Funky
5th March 2005, 12:15
it'd be not-too-hard to write a function that takes a clip, frame size and output AR as arguments, then assuming 1:1 for all the input clips, it could resize and letterbox them.

you could even specify a video standard (D1 PAL interlaced) and have it convert frame-rates for you as well.

hmm... if i can be bothered any time soon i might write one, but this would be duplicating other's work.

buzzqw
5th March 2005, 14:02
@Mug Funky

you can always do better than what we have...

:D

BHH

kingmob
6th March 2005, 12:52
Do you mind telling us why you want the aspect ratio maintained on 720x576? Cos i'm not sure why anyone would want that.