现在,我正在运行单独的命令来降低音量、在开始时添加淡入并在结束时淡出音频、在音频的开始和结束时添加静音。如何将所有这些单个命令合并为一个?
ffmpeg -y -i /home/music/memories.mp3 -filter:a "volume=0.5" -write_xing 0 /home/music/memories-volume.mp3
ffmpeg -y -i /home/music/memories-volume.mp3 -af "afade=in:st=0:d=5,afade=t=out:st=5:d=5" -write_xing 0 /home/music/memories-fade.mp3
ffmpeg -y -i /home/music/memories-fade.mp3 -af areverse,apad=pad_dur=5s,areverse -write_xing 0 /home/music/memories-silence-front.mp3
ffmpeg -y -i /home/music/memories-silence-front.mp3 -af apad=pad_dur=5s -write_xing 0 /home/music/memories-silence-end.mp3