iljalukin / laravel-stream

Transcoding media with FFmpeg using Laravel queues

Home Page:https://quantizd.com/transcoding-videos-using-ffmpeg-and-laravel-queues/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://quantizd.com/transcoding-videos-using-ffmpeg-and-laravel-queues/


Languages

Language:PHP 90.4%Language:HTML 9.4%Language:Vue 0.2%