Answers.Body: <p>Add more outputs.</p>
  <pre><code>ffmpeg -i video.mp4 -filter:v &quot;fps=1,crop=759:41:33:99,scale=128:44&quot; row1-%d.png -filter:v &quot;fps=1,crop=759:41:33:140,scale=128:44&quot; row2-%d.png -filter:v &quot;fps=1,crop=759:41:33:181,scale=128:44&quot; row3-%d.png
  </code></pre>
  <p>Or do one row per command.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-23T06:10:40.767Z
Answers.LastActivityDate: 2020-06-23T06:10:40.767Z
Answers.UserDisplayName: Gyan
Body: <p>For each frame I want to crop multiple areas using ffmpeg but I am not sure how to proceed.</p>
  <p>This is what I have done to crop one part of the image,</p>
  <pre><code>fmpeg -i video.mp4 -filter:v &quot;fps=1,crop=759:41:33:99,scale=128:44&quot; %d.png
  </code></pre>
  <p>This is one frame of the video,</p>
  <p><a href="https://i.sstatic.net/7kH74.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7kH74.jpg" alt="enter image description here" /></a></p>
  <p>The above command crops the number one row or first position from the image. Likewise I want to crop all the positions or rows from this frame.</p>
  
Tags: <ffmpeg><linux>
Title: How do I crop multiple areas of each frame of the video using ffmpeg?
UserDisplayName: Rick K.
ThreadText: # How do I crop multiple areas of each frame of the video using ffmpeg?
  
  (Asked by: username_0 on 2020-06-22)
  
  For each frame I want to crop multiple areas using ffmpeg but I am not sure how to proceed.
  
  This is what I have done to crop one part of the image,
  
  ```
  fmpeg -i video.mp4 -filter:v "fps=1,crop=759:41:33:99,scale=128:44" %d.png
  
  ```
  
  This is one frame of the video,
  
  [![enter image description here](https://i.sstatic.net/7kH74.jpg)](https://i.sstatic.net/7kH74.jpg)
  
  The above command crops the number one row or first position from the image. Likewise I want to crop all the positions or rows from this frame.
  
  **Tags:** ffmpeg, linux
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-06-23. Score: 1 | Accepted answer
  
  Add more outputs.
  
  ```
  ffmpeg -i video.mp4 -filter:v "fps=1,crop=759:41:33:99,scale=128:44" row1-%d.png -filter:v "fps=1,crop=759:41:33:140,scale=128:44" row2-%d.png -filter:v "fps=1,crop=759:41:33:181,scale=128:44" row3-%d.png
  
  ```
  
  Or do one row per command.
  
  
  ---
  
  