fillborders

Watch on youtube.com
doc

https://ffmpeg.org/ffmpeg-filters.html#fillborders

Note

“fillborders” is not directly related to “color manipulation”, but I think that some of the people who are interested in “color manipulation” may want to do “remove the garbage of the input video” which is exemplified here. That’s why this is here. If you are so, you are probably also interested in “delogo”, “removelogo” and “avgblur”, etc.

Approaches using “crop” and “pad” are quite easy:

00:00:21
#! /bin/sh
ffmpeg -y -i "sunset_ruined.mp4" -filter_complex "
[0:v]
crop=1712:962:104:58
,pad=1920:1080:(ow-iw)/2:(oh-ih)/2
[v]" -map '[v]' "sunset_corrected.mp4"

but you can use “fillborders” for the same purpose:

00:00:44
#! /bin/sh
"/c/Program Files/ffmpeg-4.1-win64-shared/bin/ffmpeg" -y \
-i "sunset_ruined.mp4" -filter_complex "
[0:v]
fillborders=
left=104:right=104:top=58:bottom=58:mode=fixed
[v]" -map '[v]' "sunset_corrected_2.mp4"
00:01:07
#! /bin/sh
"/c/Program Files/ffmpeg-4.1-win64-shared/bin/ffmpeg" -y \
-i "sunset_ruined.mp4" -filter_complex "
[0:v]
fillborders=
left=104:right=104:top=58:bottom=58:mode=mirror
[v]" -map '[v]' "sunset_corrected_3.mp4"
00:01:22
#! /bin/sh
"/c/Program Files/ffmpeg-4.1-win64-shared/bin/ffmpeg" -y \
-i "sunset_ruined.mp4" -filter_complex "
[0:v]
fillborders=
left=104:right=104:top=58:bottom=58:mode=smear
[v]" -map '[v]' "sunset_corrected_4.mp4"