We change the way we execute this filter.

This commit is contained in:
Romain Biard 2016-12-20 18:47:40 -03:00
commit 7c4eed68f9

View file

@ -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;
} }