CodeIgniter Forums
video thumbnail - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: video thumbnail (/showthread.php?tid=65010)



video thumbnail - pratikgaikwad69 - 04-20-2016

How to create thumbnail of video file???
is there any library??

please help...


regards,
pratik


RE: video thumbnail - InsiteFX - 04-20-2016

Usually it is the first video frame, or you create an image. I have never heard of a library to do.

But if you can extract the first video frame image then CI's image library should be able to create the thumb nail image for it.


RE: video thumbnail - RogerMore - 04-21-2016

Hey Pratik,

I don't know if this is the case, but if your video is a Youtube (or other service) video, you can use their api to get your thumbnails.

https://developers.google.com/youtube/v3/docs/thumbnails#methods

Grabbing frames from a local video file is tricky business because of all of the different codecs etc. I'm guessing you have to install and try ffmpeg to extract an thumbnail.

Hope this helps,

Roger