Creation of a setPasses method for the X264 format.

This commit is contained in:
Romain Biard 2016-11-10 12:19:17 -03:00
commit 010b3b8a6d
2 changed files with 54 additions and 5 deletions

View file

@ -19,6 +19,9 @@ class X264 extends DefaultVideo
/** @var boolean */
private $bframesSupport = true;
/** @var integer */
private $passes = 2;
public function __construct($audioCodec = 'libfaac', $videoCodec = 'libx264')
{
$this
@ -62,12 +65,23 @@ class X264 extends DefaultVideo
return array('libx264');
}
/**
* @param $passes
*
* @return X264
*/
public function setPasses($passes)
{
$this->passes = $passes;
return $this;
}
/**
* {@inheritDoc}
*/
public function getPasses()
{
return 2;
return $this->passes;
}
/**