I got two different commands.
This command inserts second.mp3 into input.mp3. It seems to always keep the parameters of input.mp3. It inserts it in exact 10 seconds of input.mp3.
My final goal is to create final.mp3.
When playing final.mp3, it must play the whole input.mp3. But each 10-15 seconds, it must play second.mp3 without stopping input.mp3.(mix) It could be said that I must use "Second command" but in a loop. It would be great if there is one-line command for that in ffmpeg. I am working with flac, mp3 and wav and both of the commands were suitable for that.
input.mp3 could be 40 seconds long.
second.mp3 could be 2 seconds long.
When I play final.mp3 it will be 40 seconds long, but each 10-15 seconds(on random) it will play second.mp3 at the same time as input.mp3.
Sadly I have no experience with ffmpeg, both of the commands I got are answers to questions here in stackoverflow. Hope somebody can help me. Thank you!
But the final command works. I will ask a new question how to improve the results.
Not the answer you're looking for? Browse other questions tagged audio ffmpeg or ask your own question.
How to add a new audio (not mixing) into a video using ffmpeg?
FFmpeg - how to adjust video duration to sound duration if sound is longer, possible without re-encoding it with mp3 file?
How to trim silence and concatenate two audio files using FFMPEG in one command?