mehrdad-dadkhah / hls-video-generater
PHP library for generating video m3u8 playlist
Installs: 1 444
Dependents: 0
Suggesters: 0
Security: 0
Stars: 24
Watchers: 2
Forks: 10
Open Issues: 0
Requires
- php: >=5.5
- captioning/captioning: ^2.0
- emgag/flysystem-tempdir: ^0.1.0
- php-ffmpeg/php-ffmpeg: ^0.6
- symfony/process: ^2.5
Requires (Dev)
- guzzlehttp/guzzle: ^5.0|^6.0
- phpunit/phpunit: 4.6.*
This package is auto-updated.
Last update: 2024-10-22 19:28:56 UTC
README
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
- ffmpeg (tested with v2.2)
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
- Thanks to emgag I use his package and follow video-thumbnail-sprite structure.
Uses:
License
hls-video-generater is licensed under the GPLv3 License.