Skip to content

iljalukin/laravel-stream

 
 

Repository files navigation

Example code repository for tutorial on how to transcode video using FFmpeg in Laravel using queues.

Setup Instructions

$ git clone https://github.com/iljalukin/laravel-stream.git
$ composer install
$ php artisan preset bootstrap
$ npm install && npm run dev
$ php artisan key:generate

# update database credentials, queue connection driver and FFmpeg binaries
# if you're running app on Windows.
$ nano .env

DB_DATABASE=laravel_stream
DB_USERNAME=username
DB_PASSWORD=password

QUEUE_CONNECTION=database

FFMPEG_BINARIES=''
FFPROBE_BINARIES=''

# connection settings for sqlite db
DB_CONNECTION=sqlite
DB_FILENAME=database/database.sqlite

$ touch database/database.sqlite
$ php artisan migrate
$ php artisan db:seed

Running queue worker

$ php artisan queue:work --tries=3 --timeout=8600

About

Transcoding media with FFmpeg using Laravel queues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 90.4%
  • HTML 9.4%
  • Vue 0.2%