I want to mix 2 audio files together - one file has a length of 2 mins and the other is a 10 second sound. I want both files to mix so both sounds can still be heard. I want this 10 second clip to come in exactly at 30 seconds for the 10 seconds so it will end at 40 seconds.
I know how to mix 2 audio files together using ffmpeg
ffmpeg -i input.mp3 -i input2.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 output.mp3
However, I do not know how to start this 10 second sound at a specific time.
since posting this i have found a solution to this problem - i want to share it for other people to use as i spent a lot of time looking for this.
create a blank audio file longer than the longest clip.
from here then you need to add the 10 second clip at the time you want to the blank audio file.
from here then you overlay this now longest clip to the original longer clip