kkroening/ffmpeg-python

How to add background sound in an existing sound and output length will be the smallest?

debdip opened this issue · 1 comments

debdip commented

for direct ffmpeg command I found is something like this.
ffmpeg -i background.mp3 -i main.mp3 -filter_complex "[1:a]asplit=2[sc][mix];[0:a][sc]sidechaincompress=threshold=0.015:ratio=2:level_sc=0.8:release=500:attack=1[compr];[compr][mix]amix" final.mp3

Is it possible to do it using ffmpeg-python?

I have the same question!