Skip to content
Advertisement

FFmpeg audio crossfade

I’m trying to merge several videos using ffmpeg and apply the cross-fade transition in between. I got video cross-fade working by referring to this. At the same time I need to have audio also to have cross-fade applied for original audios associated with each video. I referred several places but they resulted,

Buffer queue overflow, dropping.

This, this and this are few i referred. I got the solution of this and this producing the output with concat option where the length of the audio is greater than the video. Though I used the exact fade values used in video it seams not working like in video. Following is the ffmpeg command I’m testing.

JavaScript

Also when i use the same asetpts as video it result the same issue mentioned above. What am I doing wrong here and is there any other method that I can use to have both video and audio cross-faded?

Advertisement

Answer

Finally solved the issue by appending silent space to the beginning of each audio following first one. This will mix the audio one after the other.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement