Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meduzen/50ab9ae96860b2399bfeeb8df54837bc to your computer and use it in GitHub Desktop.
Save meduzen/50ab9ae96860b2399bfeeb8df54837bc to your computer and use it in GitHub Desktop.
Having FFMpeg working on Ubutu or macOS for Spatie Media Library

Spatie’s Media Library requires FFmpeg in order to create video poster images.

Install FFmpeg

  • sudo apt update;
  • sudo apt install ffmpeg;
  • ffmpeg -version should output FFmpeg version.

In Laravel .env

FFMPEG_PATH='/usr/bin/ffmpeg' # macOS: '/usr/local/bin/ffmpeg'
FFPROBE_PATH='/usr/bin/ffprobe' # macOS: '/usr/local/bin/ffprobe'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment