fbpx
29 C
Lahore

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

Must read

Ayyaz Zafarhttps://www.ayyaztech.com
I am Full Stack Web Developer with 10 years of professional Experience. I have following Skills: HTML5, CSS3, Javascript, jQuery, Ajax, PHP, MySQL, jQuery, Angular, React.js, Wordpress, Codeigniter, Laravel, Node.js, Mongo DB, Express.js, GraphQL, Typescript, Apollo and many more..
$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