3 ms·
Imagorvideo is the ffmpeg based plugin for Imagor to handle video files. Imagor is an image optimization API/server. With Imagorvideo you can use URL parameters
by phillipseamore 4y ago
Imagorvideo is the ffmpeg based plugin for Imagor to handle video files. Imagor is an image optimization API/server. With Imagorvideo you can use URL parameters to request a frame from a local or remote video file. Since it now supports percentage indexes, a remote file doesn't have to be known to you. You could simply say that you want to get a frame from somewhere in the middle of the file. Adding the parameter "seek(0.5)" to the URL would request frames from around the middle of the file and then select the one frame that scores the best from a RMSE histogram. The frame can the go through the rest of Imagor pipeline and be re-sized, smartcropped, converted to JPEG, AVIF and so on. The image processing parameters are based on the Thumbor URL format.
I've been using Imagor and Imagorvideo for sometime now and am very happy with it, especially since I often work with video files that aren't known to me (e.g. UGC or remote files). In my use case this has replaced Thumbor and a whole bunch of shell scripts and various other glue to handle unknown files.