0

I have a video file that is a screen recording of some slides. The slides had a 4:3 aspect ratio (1440x1080), but the video file is 16:9 (1920x1080), meaning there are black bars to the left and right. I would like to take a narrow column of pixels from the leftmost edge of the slide (say, the 241st column of pixels) and stretch them to cover the left black bar (and do the same on the right side to cover the right black bar). Is this something that can be done entirely on the command line by ffmpeg?

Schematically, what I'd like to do is turn this video frame: enter image description here

Into this one: enter image description here

1 Answer 1

1

FFmpeg has a fillborders filter that can be used here.

Assuming a 1440x1080 content area inside a 1920x1080 frame, use

ffmpeg -i in -vf fillborders=left=241:right=241:mode=smear -c:a copy out
1
  • Works perfectly, thank you.
    – Ubiquitous
    Nov 13, 2020 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.