Browse Source

视频预览

moshaorui 3 weeks ago
parent
commit
e4669b6c1a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Console/Commands/GeneratePreviewVideo.php

+ 2 - 1
app/Console/Commands/GeneratePreviewVideo.php

@@ -92,7 +92,8 @@ class GeneratePreviewVideo extends Command
         $video->filters()->clip(TimeCode::fromSeconds(0), TimeCode::fromSeconds($this->timeSecond));
 
         // 输出为H.264编码的MP4
-        $format = new \FFMpeg\Format\Video\X264('aac');
+        //$format = new \FFMpeg\Format\Video\X264('aac');
+        $format = new FFMpeg\Format\Video\X264('libfdk_aac');
         $video->save($format, $outputPath);
 
         return $outputPath;