user23598: I would like to add multiple mp3 files to an mp4 file.
For adding a single mp3 to an mp4, I used this command with success:
"-i /path/to/mp4File -i /path/to/soundmp3File -codec copy -shortest path/to/output/fileWithSound"

But I'm stuck with adding another mp3. I tried this, but it didn't work:
"-i /path/to/mp4File -i /path/to/soundmp3File1 -i path/to/soundmp3File2 -codec copy -shortest path/to/output/fileWithSounds"

How can I make it work with multiple audio files?

user1871: Use
-i /path/to/mp4File
-i /path/to/soundmp3File1
-i path/to/soundmp3File2
-map 0 -map 1:a -map 2:a
-codec copy -shortest path/to/output/fileWithSounds

FFmpeg will automatically select one video and one audio stream from among all the inputs. -map options are required to include all streams.

23598: <p>I would like to add multiple mp3 files to an mp4 file.
For adding a single mp3 to an mp4, I used this command with success:</p>

<pre><code>"-i /path/to/mp4File -i /path/to/soundmp3File -codec copy -shortest path/to/output/fileWithSound"
</code></pre>

<p>But I'm stuck with adding another mp3. I tried this, but it didn't work:</p>

<pre><code>"-i /path/to/mp4File -i /path/to/soundmp3File1 -i path/to/soundmp3File2 -codec copy -shortest path/to/output/fileWithSounds"
</code></pre>

<p>How can I make it work with multiple audio files?</p>
 1871: <p>Use</p>

<pre><code>-i /path/to/mp4File
-i /path/to/soundmp3File1
-i path/to/soundmp3File2
-map 0 -map 1:a -map 2:a
-codec copy -shortest path/to/output/fileWithSounds
</code></pre>

<p>FFmpeg will automatically select one video and one audio stream from among all the inputs. <code>-map</code> options are required to include all streams.</p>
