Answers.Body: <p>You can't change the behaviour of the tile filter, but you can adjust your inputs before and after to get the desired result.</p>
  
  <pre><code>ffmpeg -i input -vf hflip,transpose=cclock,tile=4x4,transpose=clock,hflip out.png
  </code></pre>
  
  <p>Note that the layout supplied to tile is transposed, so if you want the final result to be 6x4, tile should be given 4x6.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-07T05:21:35.523Z
Answers.LastActivityDate: 2018-04-07T05:21:35.523Z
Answers.UserDisplayName: Gyan
Body: <p>By default, the tile command builds the output one row at a time, from left to right.
  I would like instead for my output to be built in columns, top to bottom.</p>
  
  <p>That is, for a 4x4 tiling, the tile command by default arranges the frames like so:</p>
  
  <pre><code>    1  2  3  4
      5  6  7  8
      8  10 11 12
      13 14 15 16
  </code></pre>
  
  <p>Whereas I would like for them to be arranged like so:</p>
  
  <pre><code>    1  5  9  13
      2  6  10 14
      3  7  11 15
      4  8  12 16
  </code></pre>
  
  <p>What is the easiest way to make this happen?</p>
  
Tags: <ffmpeg>
Title: ffmpeg tile command: ordering frames top to bottom rather than left to right
UserDisplayName: Samet The Turk
ThreadText: # ffmpeg tile command: ordering frames top to bottom rather than left to right
  
  (Asked by: username_0 on 2018-04-06)
  
  By default, the tile command builds the output one row at a time, from left to right.
  I would like instead for my output to be built in columns, top to bottom.
  
  That is, for a 4x4 tiling, the tile command by default arranges the frames like so:
  
  ```
      1  2  3  4
      5  6  7  8
      8  10 11 12
      13 14 15 16
  
  ```
  
  Whereas I would like for them to be arranged like so:
  
  ```
      1  5  9  13
      2  6  10 14
      3  7  11 15
      4  8  12 16
  
  ```
  
  What is the easiest way to make this happen?
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-04-07. Score: 1
  
  You can't change the behaviour of the tile filter, but you can adjust your inputs before and after to get the desired result.
  
  ```
  ffmpeg -i input -vf hflip,transpose=cclock,tile=4x4,transpose=clock,hflip out.png
  
  ```
  
  Note that the layout supplied to tile is transposed, so if you want the final result to be 6x4, tile should be given 4x6.
  
  
  ---
  
  