Make a thumbnail screenshot of the video
$source_path = $_SERVER['DOCUMENT_ROOT'] . 'content/videos/my_video.mp4';
$dest_path = $_SERVER['DOCUMENT_ROOT'] . 'content/videos/my_video.jpg';
//"-10" means offset of 10 seconds from start
exec("ffmpeg -itsoffset -10 -i $source_path -s 320x240 $dest_path");
Комментариев нет:
Отправить комментарий