#how do i get thumbnails for a video gallery?
14 messages · Page 1 of 1 (latest)
You can use ffmpeg to extract thumbnails during video uploads
how to? @wheat garden
Start by downloading ffmpeg
And "how" to extract the thumbnails depends on your back-end language, for php it's pretty easy... But no idea about other languages
okay thanks! @wheat garden
No problem 🙂
i extracted the folder but don't know what to do next @wheat garden
Start command prompt and write ffmpeg -version to make sure you can run ffmpeg commands, you should see something like this
If you cannot run ffmpeg commands, you need to add ffmpeg to environment variables
ok
When you can run ffmpeg commands, you can do command like
ffmpeg -i input_video.mp4 -vf "select='not(mod(n,300))'" -vframes 5 thumbnail_%03d.png
to extract thumbnails, just edit the video filename
And how you use this in your back-end video upload script, well... That kinda depends on what language you are using and what your video upload script looks like