Fade in and fade out audio with ffmpeg afade
A fade-in is easy in ffmpeg. A fade-out is not, because the filter needs to know when to start. You must give it the start time, and that depends on how long the file is. Fade in ffmpeg -i song.mp3 -af "afade=t=in:d=3" song in.mp3 t=in is the type and d=3 is the length in seconds