How to insert a play button in a video thumbnail?

I am creating thumbnails from a video using ffmpeg and it works great.

But now I want to add the image of the play button in the center of the thumbnail and save them.

I used CSS for this, but I want to know if there is any method for creating thumbnails with this image in the center.

+3
source share
2 answers

Yes, you can use a library like GD or ImageMagick.

But , why don't you continue with CSS? You can save the play button separately for ease of maintenance, use JPEG for thumbnails (the play buttons usually do not look very good when encoding as JPEG).

, ( API ).

+3

, , ​​GD ImageMagick. , html- . , css html.

+1

Source: https://habr.com/ru/post/1766903/


All Articles