[FFmpeg-user] Add background music after every 5 seconds in .mp3 file usinf ffmpeg

nilesh nilesh.abstain at gmail.com
Tue Mar 4 10:16:52 CET 2014


Hi All

I want to add background music after every 5 seconds in .mp3 file using
ffmpeg.

I have 2 audio files : stock.mp3 of 2 seconds and sun.mp3 of 3 minutes 24
seconds. I want to add stock.mp3 after every 5 seconds in sun.mp3 like after
0,5,10,15,20,... seconds.

I tried with : passthru("$ffmpeg -i concat:'sun.mp3|stock.mp3' -acodec copy
output.mp3");

Its working fine but its added stock.mp3 at last and i want to add it after
every 5 seconds .

So i used passthru("$ffmpeg -i concat:'sun.mp3|stock.mp3' -itsoffset
00:00:05 -acodec copy output.mp3");

The itsoffset is not working.

How can i do it ? Please help me...

Thanks in advance



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Add-background-music-after-every-5-seconds-in-mp3-file-usinf-ffmpeg-tp4664180.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list