Last active
August 29, 2015 14:24
-
-
Save bchase/0d868b6d326e7396fe03 to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env ruby | |
| require 'pathname' | |
| input = Pathname.new ARGV[0] | |
| output = input.basename.to_s.chomp(input.extname) + '.mp3' | |
| %x[avconv -i #{input.to_s.inspect} -ab 192k #{output.inspect}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment