We change the way we execute this filter.
This commit is contained in:
parent
345656b1dc
commit
7c4eed68f9
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class PadFilter implements VideoFilterInterface
|
||||||
$commands = array();
|
$commands = array();
|
||||||
|
|
||||||
$commands[] = '-vf';
|
$commands[] = '-vf';
|
||||||
$commands[] = 'pad=' . $this->dimension->getWidth() . ':' . $this->dimension->getHeight() . ':(' . $this->dimension->getWidth() . '-iw)/2:(' . $this->dimension->getHeight() .'-ih)/2';
|
$commands[] = 'scale=iw*min(' . $this->dimension->getWidth() . '/iw\,' . $this->dimension->getHeight() .'/ih):ih*min(' . $this->dimension->getWidth() . '/iw\,' . $this->dimension->getHeight() .'/ih),pad=' . $this->dimension->getWidth() . ':' . $this->dimension->getHeight() . ':(' . $this->dimension->getWidth() . '-iw)/2:(' . $this->dimension->getHeight() .'-ih)/2';
|
||||||
|
|
||||||
return $commands;
|
return $commands;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue