mehrdad-dadkhah/hls-video-generater

PHP library for generating video m3u8 playlist

v1.1.0 2017-08-27 05:07 UTC

This package is auto-updated.

Last update: 2024-10-22 19:28:56 UTC


README

Software License Packagist Version

PHP package for generating video m3u8 playlist. it generate hls video for diffrent bitrates.

System requirements

Tested with >=5.5, following binaries need to be installed

Installation

composer require mehrdad-dadkhah/hls-video-generater

Usage

use MehrdadDadkhah\Video\HlsGenerater;

$hlsGenerater = new HlsGenerater();
$result = $hlsGenerater->setSource('path-to-video')
            ->setOutputDirectory('path-to-output-directory')
            ->checkAndGenerateOutputDirectory()
            ->setUri('/example/uri')
            ->setPrefix('sprite')
            ->setFilesOwnerAndPermission('root:www-data', 775)
            ->generate();

Acknowledgments

Uses:

License

hls-video-generater is licensed under the GPLv3 License.