Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require 'pathname'
- ARGV.each do |input|
- pathname = Pathname(input)
- output = pathname.sub_ext(pathname.extname == ".mp4" ? ".m4a" : ".mp3").to_s
- system("ffmpeg", "-vn", "-acodec", "copy", "-i", input, output)
- end
Add Comment
Please, Sign In to add comment