Skip to content

Instantly share code, notes, and snippets.

@mattfoster
Created August 12, 2008 08:46
Show Gist options
  • Save mattfoster/5021 to your computer and use it in GitHub Desktop.
Save mattfoster/5021 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Quick script to create a movie from PNGs.
# Matt Foster
input = ARGV.shift || nil
if input == nil
puts "Usage: #{ARGV[0]} input_image_01.png [output_filename.mov]"
puts "Create a QuickTime Movie from an image sequence."
puts "Uses PNG image compression, and no audio."
exit(1)
end
output = ARGV.shift
if output == nil
ext = File.extname(input)
base = File.basename(input, ext)
output = "#{base}.mov"
end
exec("qt_export --sequencerate=1 #{input} --video=png,1 --audio=0 --replacefile #{output}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment