energine-cmf / energine

Energine is a content management system which allows to support web-applications (including websites) of any level of complexity. Energine is based on Energine CMF — a power full toolkit for web-application development using XML/XSLT transformations.
http://energine.org
MIT License
13 stars 3 forks source link

universal video thumbnails generation #55

Open drPavka opened 10 years ago

drPavka commented 10 years ago

We are using nginx module to produce thumbnails from video We need universal (PHP + ffmpeg?) mechanism for generating thumbnails

wildex commented 10 years ago

Idea: 1) When video is uploaded to file repository we need to generate a thumbnail and put it to image-cache/screenshoots/[file_path].jpg 2) If someone requesting video thumbnail, it should be rewritten to "/resizer/resizer.php?w=$1&h=$2&src=$3&zc=2", where script deciding if file is image and can be served by timthumb directly, or file is video, so we need to alter file path. For example: "uploads/public/13940336904886.mp4" becomes "cache/screenshoots/uploads/public/13940336904886.jpg"

wildex commented 10 years ago

Also, we need to add "resizerType" variable to system config and generate thumbnail ONLY if "resizerType" is "local".