Adjust volume of both input mp3 files while merging using ffmpeg

后端 未结 1 433
鱼传尺愫
鱼传尺愫 2021-01-24 09:32

I am using the following command to merge two audio files (mp3) into one output.mp3

-i /sdcard/NNR/input1.mp3 -i /sdcard/NNR/input2.mp3 
    -filter_complex amer         


        
相关标签:
1条回答
  • 2021-01-24 10:30

    You would use

    -i /sdcard/NNR/input1.mp3 -i /sdcard/NNR/input2.mp3
    -filter_complex "[0]volume=0.5,pan=2c[a];[1]volume=0.7,pan=2c[b];[a][b]amix=duration=shortest"
    -ac 2 -c:a libmp3lame -q:a 4 /sdcard/NNR/output.mp3
    
    0 讨论(0)
提交回复
热议问题