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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.