How do I extract an image from a video to use it as a thumbnail
i am using JW player to streaming my video. i just wants to know how to split the images from the video , my users uploading the video for my player.In the left hand side I wants to display the images of the video if i click the image the correspond video path is passed through on click event so for this i need the image from the video so it is possible to split the images 开发者_StackOverflow社区from the video using the php or js or else is it any other way to do this please guide me
You can use ffmpeg to extract an image from a video.
i.e.
ffmpeg -i input.dv -r 25 -f image2 images%05d.png
So if I were you I would extract a frame from the video when you upload it and store it in some directories as long as the video
If you are wondering how you can invoke ffmpeg from php see the system
or exec
functions
精彩评论