Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Initial Parameters #61

Closed
syntaxevolution opened this issue Jun 9, 2020 · 1 comment
Closed

Allow Initial Parameters #61

syntaxevolution opened this issue Jun 9, 2020 · 1 comment

Comments

@syntaxevolution
Copy link

Is your feature request related to a problem? Please describe.
php-ffmpeg allows you to set initial parameters now and the latest prerelease is using this version of php-ffmpeg but doesn't allow setting of the initial parameters.

Describe the solution you'd like
Ability to call setInitialParameters just as in php-ffmpeg

Describe alternatives you've considered
No other method of setting initial parameters such as -presets veryfast at the moment.

Additional context
Please see PHP-FFMpeg/PHP-FFMpeg#703

@aminyazdanpanah
Copy link
Member

Usage:

$format = new X264();
$format->setInitialParameters(['param1', 'param2', ...]);

$ffmpeg = Streaming\FFMpeg::create();

$video = $ffmpeg->open('/var/media/video.mp4');

$video->hls()
    ->setFormat($format)
    ->autoGenerateRepresentations([720, 480])
    ->save('/var/media/hls.m3u8');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants