Minor fixes
This commit is contained in:
parent
3a080613e6
commit
559df352c5
1 changed files with 5 additions and 2 deletions
|
|
@ -17,14 +17,13 @@ namespace FFMpeg\Format\Video;
|
||||||
class X264 extends DefaultVideo
|
class X264 extends DefaultVideo
|
||||||
{
|
{
|
||||||
/** @var boolean */
|
/** @var boolean */
|
||||||
private $bframesSupport;
|
private $bframesSupport = true;
|
||||||
|
|
||||||
public function __construct($audioCodec = 'libfaac', $videoCodec = 'libx264')
|
public function __construct($audioCodec = 'libfaac', $videoCodec = 'libx264')
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setAudioCodec($audioCodec)
|
->setAudioCodec($audioCodec)
|
||||||
->setVideoCodec($videoCodec);
|
->setVideoCodec($videoCodec);
|
||||||
$this->bframesSupport = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -37,6 +36,7 @@ class X264 extends DefaultVideo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $support
|
* @param $support
|
||||||
|
*
|
||||||
* @return X264
|
* @return X264
|
||||||
*/
|
*/
|
||||||
public function setBFramesSupport($support)
|
public function setBFramesSupport($support)
|
||||||
|
|
@ -70,6 +70,9 @@ class X264 extends DefaultVideo
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
public function getModulus()
|
public function getModulus()
|
||||||
{
|
{
|
||||||
return 2;
|
return 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue