<p>Use</p>

<pre><code>ffmpeg -i video.mp4 -i audio.mp3 -filter_complex \
"[1:a]volume=150:enable='between(t,10,20)'[1a];[0:a][1a]amerge=inputs=2[a]" \
-map 0:v -map "[a]" -c:v copy -c:a libvorbis -ac 2 -shortest output.mp4
</code></pre>

CC BY-SA 4.0
2018-05-17T13:10:10.627Z
2018-05-17T13:10:10.627Z
Gyan
<p>I have two below command that is works perfectly for this question but how to work with one command?</p>

<p><strong>Commands:</strong></p>

<pre><code>ffmpeg -i video.mp4 -i audio.mp3 -filter_complex \
"[0:a][1:a]amerge=inputs=2[a]" \
-map 0:v -map "[a]" -c:v copy -c:a libvorbis -ac 2 -shortest output.mp4


ffmpeg -i audio.mp3 -af "volume=150:enable='between(t,10,20)'" audiochange.mp3
</code></pre>

<p>Thanks in advance.</p>

<ffmpeg>
how to change volume of audio at specific time in audio and add that audio to video(with audio) using ffmpeg command?
Jinal Somaiya
# how to change volume of audio at specific time in audio and add that audio to video(with audio) using ffmpeg command?

(Asked by: username_0 on 2018-05-17)

I have two below command that is works perfectly for this question but how to work with one command?
Commands:
ffmpeg -i video.mp4 -i audio.mp3 -filter_complex \
"[0:a][1:a]amerge=inputs=2[a]" \
-map 0:v -map "[a]" -c:v copy -c:a libvorbis -ac 2 -shortest output.mp4


ffmpeg -i audio.mp3 -af "volume=150:enable='between(t,10,20)'" audiochange.mp3

Thanks in advance.

**Tags:** ffmpeg


---

## 1 answers

### Answer by username_1 on 2018-05-17. Score: 0 | Accepted answer

Use
ffmpeg -i video.mp4 -i audio.mp3 -filter_complex \
"[1:a]volume=150:enable='between(t,10,20)'[1a];[0:a][1a]amerge=inputs=2[a]" \
-map 0:v -map "[a]" -c:v copy -c:a libvorbis -ac 2 -shortest output.mp4


---

