<p>the Linux script should be</p>
<pre><code>#!/bin/bash
for filename in /Videos/*; do
    ffmpeg -i $filename -i &lt;audio_file&gt; -map 0:v -map 1:a -c:v copy -shortest OutputWithAudio_$filename
done
</code></pre>

CC BY-SA 4.0
2020-10-30T06:43:07.103Z
Not just linux, that will work on macs and Windows computers with bash installed.
stib
CC BY-SA 4.0
2020-10-29T02:30:42.940Z
2020-10-29T02:30:42.940Z
xer-rex
<p><a href="https://ffmpeg.org" rel="nofollow noreferrer">Ffmpeg</a> is by far the best software for this kind of thing. Here's the Powershell version for windows to add to @xer-rex's answer:</p>
<pre><code>get-childItems &quot;c:\path\to\videos\folder\&quot;|%{
  ffmpeg -i $filename -i &lt;audio_file&gt; -map 0:v -map 1:a -c:v copy -shortest (&quot;OutputWithAudio_&quot; + $_.name)
}
</code></pre>

CC BY-SA 4.0
2020-10-30T06:47:38.687Z
2020-10-30T06:47:38.687Z
stib
<p>Good Day. I have 1000 Video files ( without Audio ) I want to add audio in the video. same audio for all the videos. Any software suggestions?</p>

<video>
Add audio bulk in the video file
Bharath Sudar
# Add audio bulk in the video file

(Asked by: username_0 on 2020-10-28)

Good Day. I have 1000 Video files ( without Audio ) I want to add audio in the video. same audio for all the videos. Any software suggestions?

**Tags:** video


---

## 2 answers

### Answer by username_1 on 2020-10-29. Score: 1

the Linux script should be
#!/bin/bash
for filename in /Videos/*; do
    ffmpeg -i $filename -i  -map 0:v -map 1:a -c:v copy -shortest OutputWithAudio_$filename
done

> **Comments:**
> **username_2**: Not just linux, that will work on macs and Windows computers with bash installed.  

---

### Answer by username_2 on 2020-10-30. Score: 0

Ffmpeg is by far the best software for this kind of thing. Here's the Powershell version for windows to add to @username_1's answer:
get-childItems "c:\path\to\videos\folder\"|%{
  ffmpeg -i $filename -i  -map 0:v -map 1:a -c:v copy -shortest ("OutputWithAudio_" + $_.name)
}


---

