await execFilePromise(ffmpeg.path, [ '-ss', start_time / 1000, '-i', `"${media.audio_path}"`, '-t', actual_length * Math.max(1, time_scale) / 1000, '-filter:a', `"afade=t=out:st=${actual_length * time_scale / 1000 - 0.5 / time_scale}:d=0.5,atempo=${time_scale},volume=0.7"`, mergeHitSoundArgs.push('-guess_layout_max', '0', '-i', path.resolve(file_path, `hitsounds${i}.wav`)); hitSoundPromises.push(execFilePromise(ffmpeg.path, ffmpegArgsChunk, { shell: true })); mergeHitSoundArgs.push('-filter_complex', `amix=inputs=${chunksToMerge}:dropout_transition=${actual_length},volume=${chunksToMerge},dynaudnorm`, path.resolve(file_path, `hitsounds.wav`)); await execFilePromise(ffmpeg.path, mergeHitSoundArgs, { shell: true }); ]; await execFilePromise(ffmpeg.path, mergeArgs, { shell: true });