|
@@ -144,8 +144,16 @@ class GeneratePreviewVideo extends Command
|
|
|
|
|
|
|
|
|
$format = new \FFMpeg\Format\Video\X264();
|
|
|
- $format->setAdditionalParameters([
|
|
|
- '-an'
|
|
|
+ $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'
|
|
|
]);
|
|
|
$video->save($format, $outputPath);
|
|
|
return $outputPath;
|