<p>You can use <a href="http://ffmpeg.org/download.html" rel="nofollow">FFmpeg</a>, a free command line tool to do this:</p>

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

<p>The <a href="https://ffmpeg.org/ffmpeg-all.html#subtitles-1" rel="nofollow">subtitles</a> filter accepts ASS styling <a href="http://fileformats.wikia.com/wiki/SubStation_Alpha" rel="nofollow">parameters</a>, such as font size and margins.</p>

CC BY-SA 3.0
2016-07-10T15:29:25.103Z
2016-07-10T15:29:25.103Z
Gyan
<p>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.</p>

<p>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.</p>

CC BY-SA 3.0
2016-07-10T20:03:03.437Z
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.
Michael Tiemann
<video><subtitles><aspect>
Add border to video, maintaing aspect ratio, and insert subtitles in the border
uehara
# Add border to video, maintaing aspect ratio, and insert subtitles in the border

(Asked by: username_0 on 2016-07-10)

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.

**Tags:** video, subtitles, aspect

> **Comments:**
> **username_1**: 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.  

---

## 1 answers

### Answer by username_2 on 2016-07-10. Score: 2 | Accepted answer

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.


---

