user1452030
user1452030

Reputation: 1041

ffmpeg: Repeat an audio watermark, except in the first frame

I've looked at this question: ffmpeg: How to repeat an audio "watermark" and I was able to create a watermarked audio file, repeating every x seconds.

However, I need a small variation to the behaviour and I haven't been able to figure it out myself - how can I repeat the watermark every x seconds, AFTER the original audio clip has played for at least x seconds? In other words, I want the watermark to be audible at 10 seconds, 20 seconds and 30 seconds for a 33 second long clip, and currently it's also audible at 0 seconds (i.e. start of the clip).

Thanks in advance!

Upvotes: 0

Views: 419

Answers (1)

Gyan
Gyan

Reputation: 93319

Assuming you have followed step 1 in the linked answer. use

ffmpeg -i main.mp3 -filter_complex "amovie=beep.wav:loop=0,asetpts=N/SR/TB,adelay=10s:all=1[beep];
                                [0][beep]amix=duration=shortest,volume=2"   out.mp3

The start of the beelp is delayed by 10 seconds. Use a recent git build of ffmpeg, else all=1 won't be recognized and delay for all channels will have to be set.

Upvotes: 1

Related Questions