1

I am using this code for my thumbnail image

<?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"; 

its giving me the thumbnail image BUT i want to rotate that thumbnail image. I already tried transpose and rotate but nothing happen even i lost the thumbnail image also.

Tried solutions but nothing happen :-

$command ="$ffmpeg -itsoffset -$second -i $video -vcodec mjpeg -vframes 1 -vf 'transpose=1' -an -f rawvideo -s 175x150 $image"; 

and

$command ="$ffmpeg -itsoffset -$second -i $video -vcodec mjpeg -vframes 1 -vf 'rotate=PI/2' -an -f rawvideo -s 175x150 $image";

Please help me.....

Emii Khaos
  • 9,983
  • 3
  • 34
  • 57
Vishal Sharma
  • 1,372
  • 1
  • 8
  • 17

0 Answers0