我遇到了FFMPEG和amix过滤器的问题。事实证明,音量不稳定,生成的音频以较低音量开始,并且在每个混合声音结束后音量越来越高。哈哈哈,我现在很头疼。
我在输入0的base.mp3上添加声音。
感谢的!
以下是命令行的示例:
ffmpeg -i /Applications/MAMP/htdocs/public/audio/base.mp3
-i /Applications/MAMP/htdocs/public/audio/n7.mp3
-i /Applications/MAMP/htdocs/public/audio/n7.mp3
-i /Applications/MAMP/htdocs/public/audio/n7.mp3
-i /Applications/MAMP/htdocs/public/audio/n7.mp3
-i /Applications/MAMP/htdocs/public/audio/n7.mp3
-filter_complex
"[0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=mono,atrim=end=30[tud0];
[tud0]volume=1[aud0];
[1:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=mono,atrim=end=0.944[bud1];
[bud1]adelay=1544[aud1];
[2:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=mono,atrim=end=0.215[bud2];
[bud2]adelay=2488[aud2];
[3:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=mono,atrim=end=0.2[bud3];
[bud3]adelay=2703[aud3];
[4:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=mono,atrim=end=0.209[bud4];
[bud4]adelay=2903[aud4];
[5:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=mono[bud5];
[bud5]adelay=3112[aud5];
[aud0][aud1][aud2][aud3][aud4][aud5]amix=inputs=6:duration=first:dropout_transition=0,dynaudnorm"
-map 0:a -c:a libmp3lame /Applications/MAMP/htdocs/public/server/temp/c685db3c87e801d049d13d702d9a0ddd.mp3