Open drPavka opened 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"
Also, we need to add "resizerType" variable to system config and generate thumbnail ONLY if "resizerType" is "local".
We are using nginx module to produce thumbnails from video We need universal (PHP + ffmpeg?) mechanism for generating thumbnails