Skip to content

Instantly share code, notes, and snippets.

@deepwilson
Created January 25, 2019 06:48
Show Gist options
  • Save deepwilson/74494def5bc2182974c8ff0411b5424a to your computer and use it in GitHub Desktop.
Save deepwilson/74494def5bc2182974c8ff0411b5424a to your computer and use it in GitHub Desktop.
directory = r"C:\Users\deep1\audio_segments/"
files_concat = ["audio_136","audio_062","audio_008","audio_009","audio_045","audio_050","audio_055","audio_114"]
ffmpeg_command = "ffmpeg -i \"concat:"
for file in files_concat:
ffmpeg_command += file+".mp3|"
ffmpeg_command = ffmpeg_command.rstrip("|")
ffmpeg_command = ffmpeg_command+"\" music_concat.mp3"
os.system(ffmpeg_command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment