Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-10T15:29:25.103Z
Answers.LastActivityDate: 2016-07-10T15:29:25.103Z
Answers.UserDisplayName: Gyan
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-10T20:03:03.437Z
Comments.Text: 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.
Comments.UserDisplayName: Michael Tiemann
Tags: <video><subtitles><aspect>
Title: Add border to video, maintaing aspect ratio, and insert subtitles in the border
UserDisplayName: uehara
ThreadText: # 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](http://ffmpeg.org/download.html), 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](https://ffmpeg.org/ffmpeg-all.html#subtitles-1) filter accepts ASS styling [parameters](http://fileformats.wikia.com/wiki/SubStation_Alpha), such as font size and margins.
  
  
  ---
  
  