Download the PHP package rllngr/kirby-videozer without Composer
On this page you can find all versions of the php package rllngr/kirby-videozer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rllngr/kirby-videozer
More information about rllngr/kirby-videozer
Files in rllngr/kirby-videozer
Package kirby-videozer
Short Description Kirby CMS plugin — compresses uploaded videos with FFmpeg and generates poster frames
License MIT
Homepage https://github.com/rllngr/kirby-videozer
Informations about the package kirby-videozer
Kirby Videozer
A Kirby CMS plugin that automatically compresses uploaded videos using FFmpeg and generates poster frames. All processed files are stored in a video-cache/ directory outside Kirby's content folder and served directly by the web server.
What it produces for each uploaded video:
{name}-compressed.mp4— H.264/AAC optimized MP4{name}-opt.webm— VP9/Opus WebM variant (optional){name}-poster.jpg— Thumbnail extracted at 1 second (or 10% of duration)
The poster is also copied to the page's content directory so Kirby's thumb system can generate srcset variants and the Panel can show a video preview image. The video's orientation (portrait/landscape/square) is auto-detected from its dimensions and saved as a content field on upload.
Requirements
- Kirby CMS ^4 || ^5
- PHP >=8.0
- FFmpeg installed on the server
Installation
Via Composer (recommended)
Manual
Download and extract the plugin into site/plugins/videozer/.
Configuration
Add options to your site/config/config.php:
Usage
Page and site method
Use $page->videozFiles() or $site->videozFiles() to retrieve files excluding any
generated variants (useful for cover and gallery fields). In a blueprint, write the
query as model.videozFiles: model is Kirby's own name for whatever the field is
attached to, so one field definition serves a page and the site alike.
File methods
All methods are available directly on video file objects:
Cache URL pattern
Generated files are stored at:
Make sure your web server serves this directory statically. Example nginx rule:
Panel API routes
The plugin exposes three authenticated Panel API endpoints:
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/videozer/status |
FFmpeg availability + video stats |
POST |
/api/videozer/optimize |
Process a single file (page, filename, preset, force) |
POST |
/api/videozer/optimize-all |
Batch process all videos (preset, force) |
Troubleshooting
- Check
videozer.login Kirby's logs root (site/logs/by default, or whereverroots.logspoints) for processing errors. Setrllngr.videozer.logto another path, orfalseto use PHP'serror_logonly. If the file cannot be written, the plugin logs toerror_loginstead and still processes the video. - If FFmpeg is not found, set
rllngr.videozer.ffmpegto the full binary path. - Uploads trigger
processBackground()— FFmpeg runs in a detached shell so the Panel request returns immediately. The poster and last frame are extracted first (a few seconds), then the MP4/WebM encodes run. The job reads a snapshot of the source (a hard link in{cache}/videozer/, removed at the end), so publishing or renaming the page while it runs is safe. - Sources in 4:2:2 / 4:4:4 (ProRes exports, screen recordings) are converted to 4:2:0, the only pixel format browsers play in H.264.
- The API routes (
/api/videozer/optimize,/api/videozer/optimize-all) use the synchronousprocess()method — suited for scripts and manual re-processing.
License
MIT — Nicolas Rollinger 🫰
All versions of kirby-videozer with dependencies
getkirby/composer-installer Version ^1.2
getkirby/cms Version ^4.0 || ^5.0 || ^6.0