Created
February 23, 2017 09:14
-
-
Save motoishmz/7183bf5925962a5afef975ecd1fc127b to your computer and use it in GitHub Desktop.
convert .mov with alac encoding audio to .wav using ffmpeg
This file contains hidden or 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
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