sidgrafix / php-ffmpeg-video-streaming
PHP FFMpeg - Video Streaming - DASH, HLS
Package info
github.com/sidgrafix/PHP-FFmpeg-video-streaming
pkg:composer/sidgrafix/php-ffmpeg-video-streaming
Requires
- php: ^8.3 || ^8.4
- php-ffmpeg/php-ffmpeg: 0.19 || ^1.0 || ^1.1 || ^1.2 || ^1.3
- symfony/filesystem: ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- aws/aws-sdk-php: ^3.0@dev
- google/cloud-storage: dev-main
- microsoft/azure-storage-blob: dev-master
- phpunit/phpunit: ^8.4
This package is auto-updated.
Last update: 2026-05-08 18:21:00 UTC
README
This package utilizes FFmpeg to bundle media content for online streaming, including DASH and HLS. Additionally, it provides the capability to implement DRM for HLS packaging. The program offers a range of options to open files from cloud storage and save files to cloud storage as well.
Documentation
Basic Usage
use Streaming\Representation; $r_360p = (new Representation)->setKiloBitrate(276)->setResize(640, 360); $r_480p = (new Representation)->setKiloBitrate(750)->setResize(854, 480); $r_720p = (new Representation)->setKiloBitrate(2048)->setResize(1280, 720); $video->hls() ->x264() ->addRepresentations([$r_360p, $r_480p, $r_720p]) ->save();
Contributors (prior to fork)
Your contribution is crucial to our success, regardless of its size. We appreciate your support and encourage you to read our CONTRIBUTING guide for detailed instructions on how to get involved. Together, we can make a significant impact.
Made with contrib.rocks.
License
The MIT License (MIT). See License File for more information.