<p>Use</p>

<pre><code>-vf scale=480:-1,pad=480:852:(ow-iw)/2:(oh-ih)/2,setdar=1
</code></pre>

CC BY-SA 4.0
2018-09-20T04:46:42.843Z
2018-09-20T04:46:42.843Z
Gyan
<p>I have an video with this resolution: 1920x1080,</p>

<p>I want to scale it to 480x852, like this video:</p>

<p><a href="https://scontent-frx5-1.cdninstagram.com/vp/d7b76fe78c9ad72016b98dcda320a6ca/5BA532D8/t50.16885-16/10000000_232772710752607_772643665699930112_n.mp4" rel="nofollow noreferrer">https://scontent-frx5-1.cdninstagram.com/vp/d7b76fe78c9ad72016b98dcda320a6ca/5BA532D8/t50.16885-16/10000000_232772710752607_772643665699930112_n.mp4</a></p>

<p>but it seems it's not working correctly.</p>

<p>here is my command:</p>

<pre><code>-i input.mp4 -vf scale=480x852,setdar=1:009 -c:v libx264 -preset veryfast -profile:v main -crf 18 -c:a copy output.mp4
</code></pre>

<p>Where do I wrong?</p>

<video><ffmpeg><scale>
FFmpeg scale video to desire size
DevELopE
# FFmpeg scale video to desire size

(Asked by: username_0 on 2018-09-20)

I have an video with this resolution: 1920x1080,
I want to scale it to 480x852, like this video:
https://scontent-frx5-1.cdninstagram.com/vp/d7b76fe78c9ad72016b98dcda320a6ca/5BA532D8/t50.16885-16/10000000_232772710752607_772643665699930112_n.mp4
but it seems it's not working correctly.
here is my command:
-i input.mp4 -vf scale=480x852,setdar=1:009 -c:v libx264 -preset veryfast -profile:v main -crf 18 -c:a copy output.mp4

Where do I wrong?

**Tags:** video, ffmpeg, scale


---

## 1 answers

### Answer by username_1 on 2018-09-20. Score: 0 | Accepted answer

Use
-vf scale=480:-1,pad=480:852:(ow-iw)/2:(oh-ih)/2,setdar=1


---

