Merge two mp3 / music with ffmpeg sample commands

Merge two mp3 / music with ffmpeg sample commands

Some commands you can use to merge 2 mp3

 

ffmpeg -i input1.mp3 -i input2.mp3 -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 output.mp3

 

 

ffmpeg -i input1.mp3 -i aj-loop.wav -filter_complex “amix=inputs=2:duration=longest” -ac 2 -c:a libmp3lame -q:a 4 output.mp3

 

 

ffmpeg -i /Applications/MAMP/htdocs/testimages/test/input1.mp3 -i /Applications/MAMP/htdocs/testimages/test/aj-loop.wav -filter_complex “amix=inputs=2:duration=longest” -ac 2 -c:a libmp3lame -q:a 4 /Applications/MAMP/htdocs/testimages/test/output.mp3

Leave a comment

Your email address will not be published

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

17 − 9 =