title: rotated thumbnail created using ffmpeg
body: <p>I am creating a thumbnail from video using ffmpeg with following command</p>
  
  <pre><code>$command = "$ffmpegpath -i $TempSrc -an -ss 00:00:01 -r 1 -vframes 1 -f mjpeg -y $output_image_path";
  exec($command);
  </code></pre>
  
  <p>Image is created successfully but with different orientation from the video.
  I recorded video from iPad in portrait view and uploaded it  and image is created in landscape side .Cant figure out what went wrong in the command. I also tried <code>exif_read_data</code> php function but it does not return any orientation value.</p>
  
  <p>NOTE: I have provided the correct values for $ffmpegpath and $output_image_path</p>