digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: AddBorders (http://www.digitalfaq.com/archives/avisynth/13-avisynth-addborders.html)

Scav 04-23-2002 08:18 AM

AddBorders
 
Kwag,

Jeeez, I get to be the first poster in this section. I feel so... honored. 8)

I'm a little clueless about the AddBorders command in AVISynth. Specifically does it actually ADD video information to the encode process, or does specifying addborders tell avisynth to Ignore that area during encoding? I'm guessing it's the latter, but if so the name of the command is counter-intuitive.

kwag 04-23-2002 02:23 PM

Re: AddBorders
 
Quote:

Originally Posted by Scav
Kwag,

Jeeez, I get to be the first poster in this section. I feel so... honored. 8)

I'm a little clueless about the AddBorders command in AVISynth. Specifically does it actually ADD video information to the encode process, or does specifying addborders tell avisynth to Ignore that area during encoding? I'm guessing it's the latter, but if so the name of the command is counter-intuitive.

Hi Scav:

Here's the correct description on the AddBorders function in AviSynth.

From the AviSynth manual:

AddBorders adds black borders around the image, with the specified widths (in pixels). YUY2 format only stores color information for every two pixels horizontally, so if you're processing in YUY2 mode, left and right must be even.

Be aware that many lossy compression algorithms don't deal well with solid-color borders, unless the border width happens to be a multiple of the block size (16 pixels for MPEG).

You can use this filter in combination with Crop to shift an image around without changing the frame size. For example:

# Shift a 352x240 image 2 pixels to the right
Crop(0,0,350,240).AddBorders(2,0,0,0)



kwag


All times are GMT -5. The time now is 08:24 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.