Multiple fadeIn/fadeOut effects in one audio file with ffmpeg

后端 未结 3 1735
逝去的感伤
逝去的感伤 2021-02-06 00:02

I have some problem to add several fade effects to one audio file. When I try to use a command like this:

ffmpeg -y -i /home/user/video/test/sound.mp3 -af \"afad         


        
3条回答
  •  清歌不尽
    2021-02-06 00:45

    Works for me with ffmpeg 2.5.2.

    I'm using fade in and fade out audio filter, both for the duration of 3 seconds.

    ffmpeg -i audio.mp3 -af 'afade=t=in:ss=0:d=3,afade=t=out:st=27:d=3' out.mp3
    

    I'd recommend to upgrade your ffmpeg, as this might be a bug. More information in the docs.

提交回复
热议问题