Skip to content

Instantly share code, notes, and snippets.

@bowsersenior
Forked from BRIMIL01/gist:841225
Created February 23, 2011 21:33
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 bowsersenior/841227 to your computer and use it in GitHub Desktop.
Save bowsersenior/841227 to your computer and use it in GitHub Desktop.
namespace :gource do
desc "Build gource file"
task :build => :environment do
system("gource -s .05 -800x600 --disable-progress --stop-at-end --bloom-multiplier .4 --bloom-intensity 1.5 --hide-filenames --output-framerate 30 --user-image-dir #{Rails.root}/.git/avatar --output-ppm-stream #{Rails.root}/gource/pathways.ppm #{Rails.root}")
system("ffmpeg -y -b 3000k -r 30 -f image2pipe -vcodec ppm -i #{Rails.root}/gource/pathways.ppm -vcodec libx264 -vpre hq -vpre fastfirstpass #{Rails.root}/gource/pathways.mp4")
system("rm #{Rails.root}/gource/pathways.ppm")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment