A
A
ash_12014-10-19 21:07:52
PHP
ash_1, 2014-10-19 21:07:52

Poster from a video like Vkontakte in php, how to do it?

It is necessary to pull out a frame from the middle of the video clip, for a poster for a video like in VK. How to do it in php?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladlen Grachev, 2014-10-19
@gwer

You need to use something that allows you to work with video. For example, ffmpeg can do a lot. For PHP there is a wrapper FFMpeg-php. The frame is saved like this:
Time, respectively, you need to take, based on the duration of the video.

S
Sergey Semenko, 2014-10-19
@abler98

Google ffmpeg

P
Pavel Gogolinsky, 2014-10-19
@gogolinsky

I can offer an option for youtube.
YouTube saves thumbnails for each video and you can get them like this
where [VIDEO_ID] is the hash of the video,
[0-3] is the screenshot number (there are 4 of them in total)
You can display the picture directly at this URL, or after saving it to yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question