The server hosting my website doesn't have ffmpeg and I am not allowed to install any additional extensions. Is there any other way I can make video thumbnails dynamically? Perhaps some kind of web service, where I pass the video file and as a result I get a picture file. I'm using php, by the way.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Do it in the browser with HTML5's video tag and canvas: https://gist.github.com/adamjimenez/5917897
Sothink's Video Encoder Engine may do what you expect. It said on the product page that can auto create meaningful thumbnail image and Add PNG watermark image as logo. Hope it helps.
Using external service won't be feasible, since even if you find one, you'll have to PUSH whole video to it and get the thumbnail results back.
I recommend you that you host your videos somewhere where you can install ffmpeg or some other utility that will produce your thumbnails, then access (reference) whole deal from your original server location.
EDIT:
Yet another alternative is to create thumbnails on the client. Can you describe what is the way of creating and uploading videos?
Try this: php video toolkit
See here:
http://www.facelooktube.info/wb/?category_name=svtm1
This software is created for creating thumbnails from video files. It can be used for video portals on low-cost servers without ffmpeg or you can use it if you need to replace auto created thumbnail of uploaded video.