Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delay audio for a few seconds at the start of audio files (using ffmpeg)

I have been trying to get lots of wav files delayed by 2 seconds at the start using ffmpeg. And so far, even though I have read the manual, I was not able to get it working. Here is my command:

for %%A in (*.wav) do (
ffmpeg -i "%%A" -itsoffset 00:00:02 "%%~NA"1.wav )

And nothing is being changed. Files are simply getting copied. I also tried the same with mp3 files. I also tried mkv and avi (to make sure it was not a container writing issue), but it gives the same result also.

Command is same here and here, but it does not work. Please, help.

like image 786
get8p Avatar asked Nov 15 '25 13:11

get8p


1 Answers

You must put -itsoffset BEFORE you specify input. So:

ffmpeg -itsoffset 00:00:02 -i "%%A" "%%~NA"1.wav
like image 55
pavelkolodin Avatar answered Nov 18 '25 20:11

pavelkolodin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!