Problem with upload and FFMPEG

So that should have called the ExtractThumb function, what part isn’t working? Is it still calling that function for images, or just not writing the thumbnail anymore?

The image or video is uploaded to normally, but the video thumbnail is not generated.

And if you remove the if statement, and just always call ExtractThumb it works correct?

Resolved. I had created the directory /imgs inside /uploads.

One more little question: Do you know show me a good tutorial on how to generate thumbnail files .Pdf?

Just want to make sure I understand correctly before I send you off on a wild goose chase. You want to create a thumbnail of a PDF correct? Or do you want to save a video/image thumnail as a PDF?

Yes, only generate a thumbnail pdf. Uploading images and videos is already solved.

I believe you can do this using imagemagick.

I also need Ghostscript to accept PDF, right? ImageMagick can be downloaded here http://www.imagemagick.org/script/binary-releases.php#windows?

Where do I download Ghostscript? I found nothing.

I don’t think you need ghostscript, but maybe it does now (my last experience with ImageMagick was 5 years ago)

Here is ghostscript

Friend, can you give me one last help? See this my old topic: http://www.sitepoint.com/forums/showthread.php?866331-Help-with-upload-progress-bar&p=5149882