title: using ffmpeg to automate splitting video into quarters and stacking
body: <p>I need to create a quick FFMPEG batch file that takes a very wide video file and splits it into quarters (dimension wise not time wise), then outputting a file where each quarter is under the previous. </p>
  
  <p>E.g. </p>
  
  <p>A  B  C  D </p>
  
  <p>Would become:</p>
  
  <p>A<br>
  B<br>
  C<br>
  D</p>
  
  <p>I know this should be possible with crop and pad commands, and through research I've found that someone divided into quarters and put the top left and bottom right next to each other horizontally using:</p>
  
  <pre><code>"%~dp0\ffmpeg.exe" -i %1 -filter_complex "[0:0]crop=iw/2:ih/2:0:0,pad=iw*2:ih:0:0[tl];[0:0]crop=iw/2:ih:iw/2:ih/2[br];[tl][br]overlay=W/2" -b:v 32000k -b:a 128k %1_2.avi
  </code></pre>
  
  <p>Can anyone help as the command line is beyond me?</p>