sidgrafix/php-ffmpeg-video-streaming

PHP FFMpeg - Video Streaming - DASH, HLS

Maintainers

Package info

github.com/sidgrafix/PHP-FFmpeg-video-streaming

pkg:composer/sidgrafix/php-ffmpeg-video-streaming

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

v0.3.2 2026-04-08 18:03 UTC

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.