I have a site where users upload movies (MP4, FLV, OGV).
I need a PHP function to generate a poster/screenshot in JPG automatically from an uploaded movie. The screenshot should be for the opening scene of the movie.
I can't find anything. Where should I look?
ffmpeg -i video.flv -ss 0 -vframes 1 shot.png
You could easily do that with ffmpeg-php. You will need to have FFMPEG installed on the server for this.
©2020 All rights reserved.