burakboz / handbrake-php
This package is abandoned and no longer maintained.
No replacement package was suggested.
A PHP integration with the Handbrake CLI...
v1.0.4
2018-02-25 06:30 UTC
Requires
- php: ^7.0
Requires (Dev)
- phpunit/phpunit: ^6.4
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2021-10-22 08:28:12 UTC
README
A PHP integration with the Handbrake CLI.
Structure
src/
tests/
vendor/
Install
Via Composer
$ composer require burakboz/handbrake-php
Usage
<?php include 'vendor/autoload.php'; use BurakBoz\Handbrake as HB; $config = new HB\Config; // Set Type40 Defaults $config->handBrakeBinary = '/custom/path/HandBrakeCLI'; $config->input = '/home/user/test.avi'; $config->output = '/var/www/'; $config->audioLanguage = 'English'; $config->bitRate = '384k'; $config->mixdown = '6ch'; $config->videoRate = '23.976'; $config->audioRate = '48'; $config->encodingSceme = 'x264'; $config->quality = '25'; $config->frameRateType = 'cfr'; $config->additionalData = 'level=4.1:cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=4:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all'; $configuration = $config->getConfig(); $hb = new HB\Handbrake($configuration); echo $hb->run();
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email owzie123@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.