李帅

1.继续调试ffmpeg命令

......@@ -109,12 +109,12 @@ class MakeVideo implements ShouldQueue
$thumbnail = $last_frame_video;
}
$cmd = $this->ffmpeg. ' -y'.
' -i ' . escapeshellarg($video_temp).
' -i ' . escapeshellarg($thumbnail).
' -map 1 -map 0 -c copy -disposition:0 attached_pic '.
escapeshellarg($video);
$this->execmd($cmd);
// $cmd = $this->ffmpeg. ' -y'.
// ' -i ' . escapeshellarg($video_temp).
// ' -i ' . escapeshellarg($thumbnail).
// ' -map 1 -map 0 -c copy -disposition:0 attached_pic '.
// escapeshellarg($video);
// $this->execmd($cmd);
// 全部合成以后创建 临境
$video_info = $this->mediainfo($video);
......@@ -129,7 +129,7 @@ class MakeVideo implements ShouldQueue
'size' => $video_info['format']['size'],
'poem_id' => $this->adminMakeVideo->poem_id,
'temp_id' => $this->adminMakeVideo->temp_id,
'thumbnail' => $this->adminMakeVideo->thumbnail_url,
'thumbnail' => $thumbnail,
'bgm' => $this->adminMakeVideo->bgm_url,
]);
......