李帅

1.继续调试ffmpeg命令

......@@ -78,7 +78,7 @@ class MakeVideo implements ShouldQueue
$animate = $this->makeAnimate($last_frame_video, $end_wallpaper, '', $signature_x, $signature_y, $font);
}
$video_temp = $this->getTempPath();
$video = $this->getTempPath();
$cmd = $this->ffmpeg . ' -y ' .
' -i ' . escapeshellarg($file) .
' -i ' . escapeshellarg($animate) .
......@@ -98,16 +98,16 @@ class MakeVideo implements ShouldQueue
' -map [v] -map [a]' .
' -c:v libx264 -bt 256k -r 25' .
' -ar 44100 -ac 2 -qmin 30 -qmax 60 -profile:v baseline -preset fast ' .
escapeshellarg($video_temp);
escapeshellarg($video);
$this->execmd($cmd);
$video = $this->getTempPath();
if ( $adminMakeVideo->thumbnail == 1 && $adminMakeVideo->thumbnail_url){
$thumbnail = Storage::disk('public')->path($adminMakeVideo->thumbnail_url);
}else{
$thumbnail = $last_frame_video;
}
// $video = $this->getTempPath();
// if ( $adminMakeVideo->thumbnail == 1 && $adminMakeVideo->thumbnail_url){
// $thumbnail = Storage::disk('public')->path($adminMakeVideo->thumbnail_url);
// }else{
// $thumbnail = $last_frame_video;
// }
// $cmd = $this->ffmpeg. ' -y'.
// ' -i ' . escapeshellarg($video_temp).
......