I have an MKV wrapped 1920x800 video and a sidecar .srt subtitle file. I want to convert the video to 1920 x 1080 and add black border on top and bottom while keeping the original aspect ratio. I also want to insert the subtitles on the black border.

I have an idea on how to insert the subtitles, but I'm not sure how to add the border. I'd appreciate any suggestions on how to do this all in one pass so that I lose at little quality as possible.

  • What video editing tools are you using. This is very easily done with Adobe Premiere Pro, Davinci Resolve, Final Cut Pro X, and even Blender. Commented Jul 10, 2016 at 20:03

1 Answer 1


You can use FFmpeg, a free command line tool to do this:

ffmpeg -i input.mkv -vf pad=1920:1080:0:140,subtitles=filename.srt -crf 20 -c:a copy out.mkv

The subtitles filter accepts ASS styling parameters, such as font size and margins.


Your Answer

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

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