Implement supportBFrames method to resizableVideos
This commit is contained in:
parent
1c047458c5
commit
1cb6723d86
4 changed files with 29 additions and 0 deletions
|
|
@ -21,6 +21,14 @@ class Ogg extends DefaultVideo
|
||||||
protected $audioCodec = 'libvorbis';
|
protected $audioCodec = 'libvorbis';
|
||||||
protected $videoCodec = 'libtheora';
|
protected $videoCodec = 'libtheora';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function supportBFrames()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,14 @@ class WebM extends DefaultVideo
|
||||||
protected $audioCodec = 'libvorbis';
|
protected $audioCodec = 'libvorbis';
|
||||||
protected $videoCodec = 'libvpx';
|
protected $videoCodec = 'libvpx';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function supportBFrames()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,14 @@ class X264 extends DefaultVideo
|
||||||
protected $audioCodec = 'libmp3lame';
|
protected $audioCodec = 'libmp3lame';
|
||||||
protected $videoCodec = 'libx264';
|
protected $videoCodec = 'libx264';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function supportBFrames()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,11 @@ class DefaultVideoTester extends DefaultVideo
|
||||||
protected $audioCodec = 'audiocodec1';
|
protected $audioCodec = 'audiocodec1';
|
||||||
protected $videoCodec = 'videocodec2';
|
protected $videoCodec = 'videocodec2';
|
||||||
|
|
||||||
|
public function supportBFrames()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public function getAvailableAudioCodecs()
|
public function getAvailableAudioCodecs()
|
||||||
{
|
{
|
||||||
return array('audiocodec1', 'audiocodec2', 'audiocodec3');
|
return array('audiocodec1', 'audiocodec2', 'audiocodec3');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue