Remove mandatory dimensions

This commit is contained in:
Romain Neutron 2012-05-25 18:24:37 +02:00
commit 06c6aabd9d
8 changed files with 36 additions and 60 deletions

View file

@ -193,8 +193,13 @@ class FFMpeg extends Binary
. escapeshellarg($this->pathfile) . ' '
. $format->getExtraParams() . ' ';
$cmd_part2 = ' -s ' . $format->getWidth() . 'x' . $format->getHeight()
. ' -r ' . $format->getFrameRate()
$cmd_part2 = '';
if ($format->getWidth() && $format->getHieght()) {
$cmd_part2 .= ' -s ' . $format->getWidth() . 'x' . $format->getHeight();
}
$cmd_part2 .= ' -r ' . $format->getFrameRate()
. ' -vcodec ' . $format->getVideoCodec()
. ' -b ' . $format->getKiloBitrate() . 'k -g 25 -bf 3'
. ' -threads ' . $threads

View file

@ -27,17 +27,6 @@ abstract class DefaultVideoFormat extends DefaultAudioFormat implements VideoFor
protected $GOPsize = 25;
protected $kiloBitrate = 1000;
/**
* Constructor
*
* @param integer $width
* @param integer $height The height of the video format
*/
public function __construct($width, $height)
{
$this->setDimensions($width, $height);
}
/**
* {@inheritdoc}
*/