Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd April 2006, 18:38   #1  |  Link
loekverhees
Registered User
 
Join Date: Sep 2005
Location: Holland
Posts: 86
Add Bars in Avisynth

Hello,

I've a video, but it's too small. I want to have a 16:9 format video, but I won't have a video just stretched up to 16:9 format of course. So I want to add black borders (at top and bottom).



I want to do this with Avisynt (using the GUI AVSEdit). Does someone know how my avs-script should be?

Thnx in advance
loekverhees is offline   Reply With Quote
Old 2nd April 2006, 18:49   #2  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Oddly enough, there's a function called AddBorders in avisynth. Its syntax is all in the manual and online on the wiki.
foxyshadis is offline   Reply With Quote
Old 3rd April 2006, 13:34   #3  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
assuming NTSC:

addborders(0,(480-last.height)/2,0,(480-last.height)/2)

for PAL, change the 480 to 576...
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 3rd April 2006, 13:43   #4  |  Link
Mr_Odwin
FAVC Man
 
Mr_Odwin's Avatar
 
Join Date: Nov 2005
Posts: 411
Assuming last.height is even that is.

Edit: In fact I made an avsi file to do resizes to dvd size just the other day.

http://www.james.pike.dsl.pipex.com/FAVCResize.avsi (Right-Click > Save As ...)

You Import it by adding

import("C:\blah\blah\blah\FAVCResize.avsi")
to your script, and then just use:

FAVCResize(last, PAL)

or

FAVCResize(last, NTSC)

It assumes 4:3 aspect ratio for an apsect ratio of less than 1.75 and a 16:9 aspect ratio otherwise.

Last edited by Mr_Odwin; 3rd April 2006 at 13:55.
Mr_Odwin is offline   Reply With Quote
Old 3rd April 2006, 17:18   #5  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
FitCD will calculate the script portion you are looking for.
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:17.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.