Skip to content

Instantly share code, notes, and snippets.

@wookay
Created November 27, 2015 16:10
Show Gist options
  • Save wookay/628f10eb245b13781823 to your computer and use it in GitHub Desktop.
Save wookay/628f10eb245b13781823 to your computer and use it in GitHub Desktop.
for filename in readdir(".")
if contains(filename, ".mpg")
mp3 = replace(filename, ".mpg", ".mp3")
if !isfile(mp3)
println("ffmpeg -i $filename -vn -ar 44100 -ac 2 -ab 192 -f mp3 $mp3")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment