Jan 27
Sewerage is the practice of conveying sewage in sewers. They’re easily confused words.
require 'rubygems' require 'rmov' # locs refers to the filename of the original files. locs = [2732, 2734, 2736, 2739, 2740, 2744, 2746, 2748, 2749] offsets = [41.12, 4.25, 1.8, 0.0, 0.8, 2.5, 1.65, 4.7, 0.8] clips = [] locs.zip(offsets).each do |l,off| filename = "source/MVI_#{l}/MVI_#{l} - iPhone.m4v" clips << QuickTime::Movie.open(filename) clips.last.delete_section 0, off end background = QuickTime::Movie.open 'source/background_480x360.png' q = QuickTime::Movie.empty length = clips.map(&:duration).max.ceil puts length (length*15).times do q.insert_movie background, 0 end WIDTH = 480 HEIGHT = 360 clips.each_with_index do |c,i| row = i / 3 col = i % 3 q.composite_movie c, 0 a = q.tracks[-1] a.scale 0.34, 0.34 a.translate col*WIDTH/3, row*HEIGHT/3 end exporter = q.exporter if File.exist? 'settings.st' exporter.load_settings 'settings.st' else exporter.open_settings_dialog exporter.save_settings 'settings.st' end outname = "output.mov" puts "creating #{outname}." exporter.export outname do |progress| percent = (progress*100).round puts "#{percent}% complete" end
$('li:visible:not(:has(img.checkmark.checked))').hide('slow')