<p>I have video file (.avi) that 10 minutes long. I also have audio file (.wav) that is one minute long. I need to add the audio to the video, but the audio needs to start at one minute in to the video. How can I do this with ffmpeg?</p>

<p>I've already tried this command ( with a 30 second offset instead of one minute):</p>

<p><code>-i video.avi -i audio.wav -filter_complex \"[1]adelay=30000|30000[aud];[0][aud]amix\" - c:v copy out.avi"</code></p>

<p>and this one also: </p>

<p><code>-i video.avi -i audio.wav -filter_complex [1]adelay=30000|30000[aud];[0][aud]amix - c:v copy out.avi</code></p>

<p>But neither of them worked.</p>

CC BY-SA 3.0
2018-01-09T23:41:04.070Z
What didn't work? The audio didn't start when you wanted to? The audio didn't come through at all? Please share the full output of the commands.
Michael Liebman
CC BY-SA 3.0
2018-01-10T05:02:10.090Z
I get an error from the ffmpeg process. 
the query does not work
Yanshof
CC BY-SA 3.0
2018-01-10T13:56:09.803Z
What is the error? Please share the full command output.
Michael Liebman
CC BY-SA 3.0
2018-01-10T19:26:09.643Z
Answered at Stack Overflow [crosspost](https://stackoverflow.com/questions/48169031/how-to-add-audio-to-exist-video-using-ffmpeg-at-specific-time). Please avoid asking the same question at multiple Stack Exchange sites.
llogan
<video><ffmpeg><audio>
how to add audio to exist video using FFMPEG at specific time?
Yanshof
# how to add audio to exist video using FFMPEG at specific time?

(Asked by: username_0 on 2018-01-09)

I have video file (.avi) that 10 minutes long. I also have audio file (.wav) that is one minute long. I need to add the audio to the video, but the audio needs to start at one minute in to the video. How can I do this with ffmpeg?

I've already tried this command ( with a 30 second offset instead of one minute):

`-i video.avi -i audio.wav -filter_complex \"[1]adelay=30000|30000[aud];[0][aud]amix\" - c:v copy out.avi"`

and this one also:

`-i video.avi -i audio.wav -filter_complex [1]adelay=30000|30000[aud];[0][aud]amix - c:v copy out.avi`

But neither of them worked.

**Tags:** video, ffmpeg, audio

> **Comments:**
> **username_1**: What didn't work? The audio didn't start when you wanted to? The audio didn't come through at all? Please share the full output of the commands.  
> **username_0**: I get an error from the ffmpeg process.  the query does not work  
> **username_1**: What is the error? Please share the full command output.  
> **username_2**: Answered at Stack Overflow [crosspost](https://stackoverflow.com/questions/48169031/how-to-add-audio-to-exist-video-using-ffmpeg-at-specific-time). Please avoid asking the same question at multiple Stack Exchange sites.  

---

## 0 answers

