title: How to rotate thumbnail image in ffmpeg
body: <p>I am using this code for my thumbnail image</p>
  
  <pre><code>&lt;?php 
  $ffmpeg = '/usr/bin/ffmpeg'; 
  $second = 2;
  $video = 'video/123.mp4';    
  $image = 'thumb/123.jpg';
  $command = "$ffmpeg  -itsoffset -$second  -i $video -vcodec mjpeg -vframes 1 -an -f rawvideo -s 175x150 $image"; 
  </code></pre>
  
  <p>its giving me the thumbnail image BUT i want to rotate that thumbnail image. I already tried <strong>transpose</strong> and <strong>rotate</strong> but nothing happen even i lost the thumbnail image also.</p>
  
  <p><strong>Tried solutions but nothing happen :-</strong></p>
  
  <pre><code>$command ="$ffmpeg -itsoffset -$second -i $video -vcodec mjpeg -vframes 1 -vf 'transpose=1' -an -f rawvideo -s 175x150 $image"; 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$command ="$ffmpeg -itsoffset -$second -i $video -vcodec mjpeg -vframes 1 -vf 'rotate=PI/2' -an -f rawvideo -s 175x150 $image";
  </code></pre>
  
  <p>Please help me.....</p>