Skip to content

Instantly share code, notes, and snippets.

@spiritbroski
Created October 25, 2020 11:44
Show Gist options
  • Save spiritbroski/50dca62e6b037c40d229a13a377fed52 to your computer and use it in GitHub Desktop.
Save spiritbroski/50dca62e6b037c40d229a13a377fed52 to your computer and use it in GitHub Desktop.
audio_converter.py
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