Audio Params (#344)

* 🚀 video profile and level
* add missing getter
* add missing use statement
* add missing return $this
* 1 test fixed
* fix other tests and clean up
We MUST rewrite them. They are too complex when it comes to new features
* trim trailing whitespaces
* fix typo
* 🚀 support for additional params in audio
This commit is contained in:
Jens Hausdorf 2017-06-27 23:44:26 +02:00 committed by Romain Biard
commit cb7d850338
8 changed files with 196 additions and 85 deletions

View file

@ -91,6 +91,13 @@ class Audio extends AbstractStreamableMedia
$commands[] = '-ac';
$commands[] = $format->getAudioChannels();
}
// If the user passed some additional parameters
if (null !== $format->getAdditionalParameters()) {
foreach ($format->getAdditionalParameters() as $additionalParameter) {
$commands[] = $additionalParameter;
}
}
$commands[] = $outputPathfile;
try {