erstellen Sie Miniaturansichten für mp4 mit ffmpeg

Iam mit ffmpeg-php zum erstellen von Miniaturansichten für videos on-the-fly .Es speichert die Miniaturansichten, um eine bestimmte Datei und dann bekomme ich es mit php. Ich möchte thumbnails zu erstellen, die für alle Arten von videos möglich. Das problem mit ffmpeg, die iam-Verkleidung ist, dass iam nicht in der Lage, zum erstellen von Miniaturansichten für videos mit .mp4-Erweiterungen.

<?
$ffmpeg = '/usr/bin/ffmpeg/ffmpeg'; //to load the extension ffmpeg

$video = '/path/to/video'.$file_thumb; //path to the video

$image = '/store/it/here'; //path to store the thumbnail

$interval = 5;
$size = '640x480';

//It runs with the below command    
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size 
$image 2>&1"; 

?>

InformationsquelleAutor user1411837 | 2012-05-23
Schreibe einen Kommentar