[FFmpeg-user] Creating an advanced filter effect that repeats the outer pixels

Jesper Taxbøl jesper at taxboel.dk
Sun Jun 7 23:57:26 CEST 2015


I have run into a problem where I need to expand the edges of a video and
fill the newly added pixels with the nearest pixel value. Just when you use
clamp mode on a texture in graphics programming.

Look at the examnple here http://i.stack.imgur.com/padKk.png

I have tried copying the edge pixel, but the scale filter fails when I try
to scale to the needed size.

Is there an other way to achieve this clamp effect in a advanced filter
chain?

Kind regards

Jesper


More information about the ffmpeg-user mailing list