在视频合成中加入背景音乐的处理 混音
https://help.aliyun.com/document_detail/30429.html
将tts语音生成做成微服务,缺点:存错;
ffmpeg混音以及音视频混合 - CSDN博客 https://blog.csdn.net/matrix_laboratory/article/details/53158121
http://www.ffmpeg.org/ffmpeg-filters.html#amerge-1 http://www.ffmpeg.org/ffmpeg-filters.html#amerge-1
#ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT
#FFmpeg Filters Documentation http://www.ffmpeg.org/ffmpeg-filters.html#amerge-1
d = '{}{} '.format(ffmpeg_f_dir, ' -i testSong.mp3 -i 1530164762_34050450mp3cut1.mp3 -filter_complex amix=inputs=2:duration=first:dropout_transition=2 res.mp3')