public function scaleByWidth($width) { // ensure $width is even (mp4 requires this) $width = ceil($width / 2) * 2; $this->addArgument("scaleByWidth", '-vf "scale=' . $width . ':trunc(ow/a/vsub)*vsub"'); }