VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Jul 2005
    Location
    great britain
    Search Comp PM
    hi, this is my script:

    AVISource("c:\...\.avi")
    LoadPlugIn("c:\...\fdecimate.dll")
    fdecimate()
    assumefps(25)
    addborders(0, 48, 0, 48)
    LanczosResize(720,576)
    ConvertToYUY2()


    Why and when do you add borders? i just dont understand, or is it that you can add borders to any video or is it meant to be for some videos?

    Please someone fill me in with this, i cannot understand, i've read the avisynth "keyword explanation" thing but that doesnt give much info.

    Many thanks and any help is appreciated
    zig
    Quote Quote  
  2. Member
    Join Date
    Jun 2005
    Location
    America The Beautiful
    Search Comp PM
    You can use the add borders command along with the crop and resize commands to preserve/restore proper aspect ratios to a video clip. Is there something in particular you have in mind?
    flonk!
    Quote Quote  
  3. Member
    Join Date
    Jul 2005
    Location
    great britain
    Search Comp PM
    i been using dvd2svcd for a while now and i have a habit of reading the avs script that it produces, i notice that it uses the "addborders" for a number of different files.

    Example:
    File_a.avi - addborders(0, 48, 0, 48)
    File_b.avi - addborders(0, 72, 0, 72)

    what i want to know is how did dvd2svcd fiquire out these numbers ? ... i need to know manually as im starting to create my own avs script.

    im finding it difficult to explain myself. lol

    I need say a "full" synoposis of the "addborders" command, like why do we add borders, and when should we use different number of pixels for the border.

    I now know that our input file will "differ" the addborders command, i need to know why that border was created - the reason... did that make sensem i know its hard to explain yourself somtimes, sorry

    thanks
    zig
    Quote Quote  
  4. Member
    Join Date
    May 2005
    Location
    Montreal
    Search Comp PM
    It would help if you gave us the dimension of the video.
    My guess is that File_b is Widescreen.
    Quote Quote  
  5. Member
    Join Date
    Apr 2002
    Location
    Oskeeweewee Ontario
    Search Comp PM
    The addborders command allows you to keep the aspect ratio after cropping. Otherwise, things get stretched.
    It also helps in the encoding department..As far as i know, the result of the addborder() command, is that unnessecary encoding doesn't happen. This allows more bitrate to go to the video rather than empty black space...
    Quote Quote  
  6. Member
    Join Date
    Jul 2005
    Location
    great britain
    Search Comp PM
    yes but i need to know what number i should use for the addborders. I'd like to create avs scripts and load them straight into cce.

    608 x 256 is my avi input.

    what im trying to ask is... when/why should i use addborders? and when should i use a certain pixel number?

    So 48 and 72 are the only 2 add borders number? this is what im getting at... how do you determine the add border number?
    Quote Quote  
  7. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Download fitCD. it will give you the correct sizes and borders, and will even write a basic avs script for you.
    Read my blog here.
    Quote Quote  
  8. Member
    Join Date
    Jul 2005
    Location
    great britain
    Search Comp PM
    wowza guns1inger, fast reply!

    thats exactly what im looking for, thank you very much... i thought knowone would understand what i was on about, lol, thanks man

    zig
    Quote Quote  
  9. Member
    Join Date
    Jun 2005
    Location
    America The Beautiful
    Search Comp PM
    Originally Posted by ZiGGY909
    yes but i need to know what number i should use for the addborders. I'd like to create avs scripts and load them straight into cce.

    608 x 256 is my avi input.

    what im trying to ask is... when/why should i use addborders? and when should i use a certain pixel number?

    So 48 and 72 are the only 2 add borders number? this is what im getting at... how do you determine the add border number?
    DVD-Video frame size or "resolution" as some people refer to it as has a limited number of variances defined in the standard. What you want to do is look at the frame size of the source that you have and match it up with the frame size defined in the standard that closest matches your source. Then it's just a matter of adding or removing lines using the crop and add borders commands to make your source fit the target size as defined in the standard.

    Sometimes it's simple. For instance, I have downloaded videos that were widescreen and the person that encoded them cropped off the black borders at the top and bottom for whatever reason. Simple math there. Divide the number of lines missing by two and add that many to the top and bottom of the frame. Assuming you aren't adding borders to a cropped PAL source and resizing to an NTSC frame size, everything is fine and the aspect ratio doesn't get skewed. Frame rates can help determine what your source video is if you aren't sure.

    There are sections at the top left hand side of the pages at this site that detail the standards called out in the DVD-Video specification. Read up some and maybe it will make a little more sense to you.
    flonk!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!