<p>Was not too far!</p>

<pre><code>ffmpeg -i input -vf "scale=1920:886:force_original_aspect_ratio=decrease,pad=1920:886:(ow-iw)/2:(oh-ih)/2:#CFD3DA@1" output.mp4
</code></pre>

CC BY-SA 4.0
2020-01-21T20:45:18.290Z
2020-01-21T20:45:18.290Z
Kevin
<p>I've gotten a bit stuck on a manipulation that I am trying to do.</p>

<p>I have a 1920×1080 video.</p>

<p>I'd like to resize it to 1920×886, while keeping its aspect ratio, so it should add bars to the left and right. I'd like to specify the HEX color code of the side bars (<code>#CFD3DA</code>).</p>

<p>I've combined several answers to compose the following command, but it is unfortunately broken:</p>

<pre><code>ffmpeg -i input.mp4 -vf scale=1920:886:force_original_aspect_ratio=decrease,pad=1920:886:(ow-iw)/2:(oh-ih)/2:#CFD3DA@1,setsar=1 output.mp4
</code></pre>

<ffmpeg>
FFMPEG Convert video from while adding left/right bars with a specific color
Kevin
# FFMPEG Convert video from while adding left/right bars with a specific color

(Asked by: username_0 on 2020-01-21)

I've gotten a bit stuck on a manipulation that I am trying to do.
I have a 1920×1080 video.
I'd like to resize it to 1920×886, while keeping its aspect ratio, so it should add bars to the left and right. I'd like to specify the HEX color code of the side bars (#CFD3DA).
I've combined several answers to compose the following command, but it is unfortunately broken:
ffmpeg -i input.mp4 -vf scale=1920:886:force_original_aspect_ratio=decrease,pad=1920:886:(ow-iw)/2:(oh-ih)/2:#CFD3DA@1,setsar=1 output.mp4

**Tags:** ffmpeg


---

## 1 answers

### Answer by username_0 on 2020-01-21. Score: 1

Was not too far!
ffmpeg -i input -vf "scale=1920:886:force_original_aspect_ratio=decrease,pad=1920:886:(ow-iw)/2:(oh-ih)/2:#CFD3DA@1" output.mp4


---

