Implement supportBFrames method to resizableVideos

This commit is contained in:
Nicolas Le Goff 2012-06-11 19:19:03 +02:00
commit 1cb6723d86
4 changed files with 29 additions and 0 deletions

View file

@ -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}
*/ */

View file

@ -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}
*/ */

View file

@ -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}
*/ */

View file

@ -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');