Skip to content

Instantly share code, notes, and snippets.

@motoishmz
Created February 23, 2017 09:14
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 motoishmz/7183bf5925962a5afef975ecd1fc127b to your computer and use it in GitHub Desktop.
Save motoishmz/7183bf5925962a5afef975ecd1fc127b to your computer and use it in GitHub Desktop.
convert .mov with alac encoding audio to .wav using ffmpeg
import os
import glob
import commands
import time
files = glob.glob('*.mov')
for file in files:
if os.path.isfile(file) :
base, ext = os.path.splitext(file);
command = "/usr/local/bin/ffmpeg -y -i " + file + " " + base + ".wav"
print "start converting: " + file
os.system(command)
print "done " + base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment