views:

1273

answers:

2

Can anyone help me out that how i can display video and pdf file as thumbnail?? Thanks..............

+1  A: 

For the PDF you can use Imagick.

How it's done is here in great detail

For the video snapshot, you can use FFMPEG. Here's an example code.

// this will create many images
$thumb = exec("ffmpeg -i video.mpg image%d.jpg");
Ólafur Waage
Thank you so much ......... I'll try this one
A: 

Use ImageMagick's PHP class. Supports both video and PDF.

vartec
Imagick's video support is very very limited on what codecs it can read.
Ólafur Waage