Answers.Body: <p>The scale filter adjusts the aspect ratio, so that the display ratio remains the same. Assuming you don't want that.</p>
  
  <p>Use</p>
  
  <pre><code>ffmpeg -i input.mp4 -vf crop=1424:720:0:40,scale=1280:720,setsar=1 -c:a copy output.mp4
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-30T14:53:54.497Z
Answers.LastActivityDate: 2018-04-30T14:53:54.497Z
Answers.UserDisplayName: Gyan
Body: <p>I want to crop black border, then scale to video to <code>1280x720</code>, however, the following command does not work，<code>crop</code> works well, but <code>scale</code> has no effect:</p>
  
  <pre><code>ffmpeg -i input.mp4 -filter_complex '[0:v]crop=1424:720:0:40[c0];[c0]scale=1280:720[bg]' -map '[bg]' -map 0:a -pix_fmt yuv420p output.mp4
  </code></pre>
  
Tags: <ffmpeg>
Title: ffmpeg: crop then scale does not work
UserDisplayName: lutaoact
ThreadText: # ffmpeg: crop then scale does not work
  
  (Asked by: username_0 on 2018-04-30)
  
  I want to crop black border, then scale to video to `1280x720`, however, the following command does not work，`crop` works well, but `scale` has no effect:
  
  ```
  ffmpeg -i input.mp4 -filter_complex '[0:v]crop=1424:720:0:40[c0];[c0]scale=1280:720[bg]' -map '[bg]' -map 0:a -pix_fmt yuv420p output.mp4
  
  ```
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-04-30. Score: 6 | Accepted answer
  
  The scale filter adjusts the aspect ratio, so that the display ratio remains the same. Assuming you don't want that.
  
  Use
  
  ```
  ffmpeg -i input.mp4 -vf crop=1424:720:0:40,scale=1280:720,setsar=1 -c:a copy output.mp4
  
  ```
  
  
  ---
  
  