Example code repository for tutorial on how to transcode video using FFmpeg in Laravel using queues.
$ 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
$ php artisan queue:work --tries=3 --timeout=8600