Created
August 12, 2008 08:46
-
-
Save mattfoster/5021 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 | |
# 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