Created
October 25, 2020 11:44
-
-
Save spiritbroski/50dca62e6b037c40d229a13a377fed52 to your computer and use it in GitHub Desktop.
audio_converter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd="ffmpeg -v debug -i 1.mp3 -i 2.mp3 -i 3.mp3 -i 4.mp3 -i 5.mp3 -i 6.mp3 -i 7.mp3 -filter_complex [0:0]concat=n=7:v=0:a=1[out] -map [out] final.mp3".split() | |
p = subprocess.Popen(cmd, stdin=subprocess.PIPE) | |
fout = p.stdin | |
fout.close() | |
p.wait() | |
print("merging audio done") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment