public function scaleByHeight($height) { // ensure $height is even (mp4 requires this) $height = ceil($height / 2) * 2; $this->addArgument("scaleByHeight", '-vf "scale=trunc(oh/(ih/iw)/hsub)*hsub:' . $height . '"'); }