Remove mandatory dimensions
This commit is contained in:
parent
ecccc1c9f5
commit
06c6aabd9d
8 changed files with 36 additions and 60 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue