laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.65k stars 470 forks source link

add ffmpeg to support videos, when using Spatie media-library for Videos #671

Closed negoziator closed 6 months ago

negoziator commented 6 months ago

This PR makes it possible to use Spatie Media lbrary for videos.

In extension to this pr - which allows SVG. This PR just allows Videos as well 😄

Motivation

So if anyone uses Spatie Media library - they have an option to install the php-ffmpeg/php-ffmpeg package, which enables support for e.g. rendering a video thumbnail alongside with seamless making a <video>-tag for playback.

See docs: here

This package requires ffmpeg to be installed on the system, so instead of forcing people to publish sail, i consider the extension to be valuable enough for being preinstalled in Sail.