PDA

View Full Version : addborders request: mirror or repeat pixel mode


Mug Funky
9th December 2004, 06:52
hi. i think the title sums it up pretty well.

basically, a lot of plugins require modX widths, so addborders is the best way to handle it without losing any data. however, black borders often aren't desirable with a lot of filtering operations, like blurring or motion-compensation.

i think an option in addborders would be the best solution to this... something like "addborders(0,0,4,12,repeat=true)" would do well.

Manao
9th December 2004, 07:18
I think the filter already is in the mvtools ( don't ask why ;) ) : Padding(clip, int hpad, int vpad).

stickboy
9th December 2004, 12:16
What about Simon Walter's Border Control (http://www.geocities.com/siwalters_uk/fnews.html) plugin?

Didée
9th December 2004, 12:27
Or what about BorderMirror (http://forum.doom9.org/showthread.php?s=&postid=518131#post518131)?

Ah, yes - it's only a script function. Pffffh ... :)

ARDA
9th December 2004, 15:10
Sometimes a video clip has black borders or garbage at the four edges. This looks
ugly and does not compress well but possibly you don't want to crop because you
have to keep the diminsions as a multiple of 16 or some other number.

FillMargins is a simple Avisynth filter that fills the four margins of a video
clip with the outer pixels of the unfilled portion. It takes integer 4 parms
specifying the size of the left, top, right, and bottom margins. These may be
any value and do not have to be any particular multiple.

form the readme of FillMargins - 2003/06/18 V 1.0.2.0

http://mywebpages.comcast.net/trbarry/

I hope this can be useful
ARDA

Mug Funky
10th December 2004, 04:41
eheheeh. i shoulda used search.

just slap me with the n00b stick :)

[edit]

manao: it'd be cool if padding had 4 arguments, like addborders. just for cropping off odd numbers, but without the need to crop after padding.

Manao
10th December 2004, 06:48
In that case, use the other filters ( or wait ~two weeks for the next release of the MVTools )