Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -68,11 +68,11 @@ class AdminMakeImmerse implements ShouldQueue | ... | @@ -68,11 +68,11 @@ class AdminMakeImmerse implements ShouldQueue |
68 | if ($is_bgm) { | 68 | if ($is_bgm) { |
69 | // 有背景音 融合 | 69 | // 有背景音 融合 |
70 | $audio = $this->getAbsolutePath($this->getTempPath('.mp3','audio')); | 70 | $audio = $this->getAbsolutePath($this->getTempPath('.mp3','audio')); |
71 | - $cmd = $this->ffmpeg . | 71 | + $cmd = $this->ffmpeg . ' -y '. |
72 | - ' -y -i ' . escapeshellarg($file) . | 72 | + ' -i ' . escapeshellarg($file) . |
73 | - ' -y -i ' . escapeshellarg($bgm) . | 73 | + ' -i ' . escapeshellarg($bgm) . |
74 | - ' -filter_complex amix=inputs=2:duration=first:dropout_transition=2;afade=t=out:st=33:d=5 ' . | 74 | + ' -filter_complex amix=inputs=2:duration=first:dropout_transition=2[amix];[amix]afade=t=out:st=33:d=5[afade] ' . |
75 | - ' -ar 48000 -ab 64k ' . escapeshellarg($audio); | 75 | + ' -map[afade] -ar 48000 -ab 64k ' . escapeshellarg($audio); |
76 | if (!$this->execCmd($cmd)) return; | 76 | if (!$this->execCmd($cmd)) return; |
77 | 77 | ||
78 | $audio_input = ' -i ' . escapeshellarg($audio); | 78 | $audio_input = ' -i ' . escapeshellarg($audio); | ... | ... |
-
Please register or login to post a comment