Skip to content

Instantly share code, notes, and snippets.

@dennisreimann
Forked from halfbyte/ploppconvert.rb
Created July 23, 2012 14:04
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 dennisreimann/3163781 to your computer and use it in GitHub Desktop.
Save dennisreimann/3163781 to your computer and use it in GitHub Desktop.
ploppcast conversion
#!/usr/bin/env ruby
# dependencies:
# - ffmpeg (`brew install ffmpeg`)
puts "Usage: plopp DIR" and exit unless dir = ARGV[0]
Dir["#{dir}/*.mov"].each do |input|
output = File.basename(input, '.mov')
system "ffmpeg -i '#{input}' -map 0:0 -vn -acodec copy #{output}-1.m4a -map 0:1 -vn -acodec copy #{output}-2.m4a"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment