fbpx
17 C
Lahore

PHP: How to generate thumbnail from a video using ffmpeg withPHP ?

$video = "your_video.mp4";
$output_file = "thumbnail.jpg";

exec("ffmpeg -i $video -ss 00:00:14.435 -vframes 1 $output_file", $out);

 

- Advertisement -spot_img

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article