Quantcast Avisynth: Addborders - digitalFAQ.com Forums [Archives]
  #1  
04-23-2002, 08:18 AM
Scav Scav is offline
Free Member
 
Join Date: Apr 2002
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag,

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

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.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-23-2002, 02:23 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Scav
Kwag,

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

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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Need LanczosResize and AddBorders plugins Lost Soul Avisynth Scripting 5 04-28-2006 03:37 AM
Question sur AddBorders spirou Conversion et d'Encodage de Vidéo (Français) 4 03-01-2004 11:30 AM
AddBorders CaLaFaT Convertir y Codificar Video (Español) 5 07-12-2003 01:07 AM
Avisynth: Problems with resize + addborders J-Wo Avisynth Scripting 3 06-02-2003 08:05 PM

Thread Tools



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