Skip to content

Mehrdad-Dadkhah/hls-video-generater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HlsVideoGenerater

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.

About

generate m3u8 playlist for all bitrates to streaming videos

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages