Jump to content

how to get thumbnail of the video


sowmithrii

Recommended Posts

Am having a collection of videos in my server application folder under "...../sowmithrii/videos/" . now i want to display all the list on a webpage but not as a word list but as a thumbnail list.

 

how can i implement this in php. if any one got some sample code.. i will be very thankful.

 

regards

sowmithrii

Link to comment
https://forums.phpfreaks.com/topic/80425-how-to-get-thumbnail-of-the-video/
Share on other sites

Hi Mate,

 

i use:

 

       ## convert string
       $encode = "/usr/bin/ffmpeg -i $uploadedmoviesdir -sameq -acodec mp3 -ar 22050 -ab 32 -f flv -s 320x240 $outputflvdirectory";
       
       $scrcap = "/usr/bin/ffmpeg -i $outputflvdirectory -s 320x240 -ss 00:00:05 -t 00:00:01 -f image2 flvmovies/screencaps/$var_loggedinuser-$timestamp-screencap.jpg";
          
       ## execute
       exec($encode);
       exec($scrcap);

 

just chance the path and name of the screencap.jpg at the end:)

 

Graham

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.