Add multiple mp3 files to an mp4 file with ffmpeg 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?
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.