Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-17T13:10:10.627Z
Answers.LastActivityDate: 2018-05-17T13:10:10.627Z
Answers.UserDisplayName: Gyan
Body: <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>
  
Tags: <ffmpeg>
Title: how to change volume of audio at specific time in audio and add that audio to video(with audio) using ffmpeg command?
UserDisplayName: Jinal Somaiya
ThreadText: # 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
  
  ```
  
  
  ---
  
  