|
@@ -144,17 +144,9 @@ class GeneratePreviewVideo extends Command
|
|
|
|
|
|
|
|
|
$format = new \FFMpeg\Format\Video\X264();
|
|
|
- $format->setAudioCodec('none')
|
|
|
- ->setAdditionalParameters([
|
|
|
- '-crf 38',
|
|
|
- '-preset superfast',
|
|
|
- '-vf "scale=640:-2:flags=lanczos, fps=15"',
|
|
|
- '-tune zerolatency',
|
|
|
- '-x265-params rd=4:psy-rd=0:no-sao:no-deblock',
|
|
|
- '-g 30',
|
|
|
- '-pix_fmt yuv420p',
|
|
|
- '-movflags +faststart'
|
|
|
- ]);
|
|
|
+
|
|
|
+ $format->setKiloBitrate(500);
|
|
|
+ $format->setAudioCodec('none');
|
|
|
$video->save($format, $outputPath);
|
|
|
return $outputPath;
|
|
|
}
|