Skip to content

Instantly share code, notes, and snippets.

@seumasmorrison
Last active September 2, 2016 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seumasmorrison/f6d7d724f7d544ee51a0d3a600f6473d to your computer and use it in GitHub Desktop.
Save seumasmorrison/f6d7d724f7d544ee51a0d3a600f6473d to your computer and use it in GitHub Desktop.
import os
b = !ls
cd C:\ffmpeg\bin
for file_name in b[6:]:
input_file = '"G:\\videos\\' + file_name + '"'
output_file = '"G:\\videos\\' + file_name[:-4] + '.mov"'
os.system('ffmpeg -i ' + input_file + " " + output_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment