李帅

1.测试一下音频淡出效果

...@@ -71,8 +71,8 @@ class AdminMakeImmerse implements ShouldQueue ...@@ -71,8 +71,8 @@ class AdminMakeImmerse implements ShouldQueue
71 $cmd = $this->ffmpeg . 71 $cmd = $this->ffmpeg .
72 ' -y -i ' . escapeshellarg($file) . 72 ' -y -i ' . escapeshellarg($file) .
73 ' -y -i ' . escapeshellarg($bgm) . 73 ' -y -i ' . escapeshellarg($bgm) .
74 - ' -filter_complex amix=inputs=2:duration=first:dropout_transition=2 ' . 74 + ' -filter_complex amix=inputs=2:duration=first:dropout_transition=2;afade=t=out:st=33:d=5 ' .
75 - '-ar 48000 -ab 64k ' . escapeshellarg($audio); 75 + ' -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);
......