old php versions <.<
This commit is contained in:
parent
c43632faa8
commit
c393e31803
2 changed files with 6 additions and 6 deletions
|
|
@ -57,7 +57,7 @@ class Audio extends AbstractStreamableMedia
|
||||||
* @return Audio
|
* @return Audio
|
||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
*/
|
*/
|
||||||
public function save(FormatInterface $format, string $outputPathfile)
|
public function save(FormatInterface $format, $outputPathfile)
|
||||||
{
|
{
|
||||||
$listeners = null;
|
$listeners = null;
|
||||||
|
|
||||||
|
|
@ -85,7 +85,7 @@ class Audio extends AbstractStreamableMedia
|
||||||
* @return string
|
* @return string
|
||||||
* @since 0.11.0
|
* @since 0.11.0
|
||||||
*/
|
*/
|
||||||
public function getFinalCommand(FormatInterface $format, string $outputPathfile) {
|
public function getFinalCommand(FormatInterface $format, $outputPathfile) {
|
||||||
return implode(' ', $this->buildCommand($format, $outputPathfile));
|
return implode(' ', $this->buildCommand($format, $outputPathfile));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -97,7 +97,7 @@ class Audio extends AbstractStreamableMedia
|
||||||
* @return string[] An array which are the components of the command
|
* @return string[] An array which are the components of the command
|
||||||
* @since 0.11.0
|
* @since 0.11.0
|
||||||
*/
|
*/
|
||||||
protected function buildCommand(FormatInterface $format, string $outputPathfile) {
|
protected function buildCommand(FormatInterface $format, $outputPathfile) {
|
||||||
$commands = array('-y', '-i', $this->pathfile);
|
$commands = array('-y', '-i', $this->pathfile);
|
||||||
|
|
||||||
$filters = clone $this->filters;
|
$filters = clone $this->filters;
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ class Video extends Audio
|
||||||
* @return Video
|
* @return Video
|
||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
*/
|
*/
|
||||||
public function save(FormatInterface $format, string $outputPathfile)
|
public function save(FormatInterface $format, $outputPathfile)
|
||||||
{
|
{
|
||||||
$passes = $this->buildCommand($format, $outputPathfile);
|
$passes = $this->buildCommand($format, $outputPathfile);
|
||||||
|
|
||||||
|
|
@ -103,7 +103,7 @@ class Video extends Audio
|
||||||
* NOTE: This method is different to the Audio's one, because Video is using passes.
|
* NOTE: This method is different to the Audio's one, because Video is using passes.
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
public function getFinalCommand(FormatInterface $format, string $outputPathfile) {
|
public function getFinalCommand(FormatInterface $format, $outputPathfile) {
|
||||||
$finalCommands = array();
|
$finalCommands = array();
|
||||||
|
|
||||||
foreach($this->buildCommand($format, $outputPathfile) as $pass => $passCommands) {
|
foreach($this->buildCommand($format, $outputPathfile) as $pass => $passCommands) {
|
||||||
|
|
@ -121,7 +121,7 @@ class Video extends Audio
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @return string[][]
|
* @return string[][]
|
||||||
*/
|
*/
|
||||||
protected function buildCommand(FormatInterface $format, string $outputPathfile) {
|
protected function buildCommand(FormatInterface $format, $outputPathfile) {
|
||||||
$commands = array('-y', '-i', $this->pathfile);
|
$commands = array('-y', '-i', $this->pathfile);
|
||||||
|
|
||||||
$filters = clone $this->filters;
|
$filters = clone $this->filters;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue