Igor's Blog
Programming, DIY, Games, Hacks, and Tech

Gource is an awesome tool. It creates stunning, elastic visualisations of your RCS activity. I've written about it in the past when I first tried to use it on OSX with Subversion. Now that things have moved on and I am using Git I decided to give Gource another go.

What I wanted to do was build an animation of the Git commits we had for the last release of the project I'm working on. The Gource side is not too different after to how I described in my previous article, but the RCS (Git) log extraction does change. In the end I had this result (file names, users, anything identifying removed of course)...
gource3.png


So lets see how you get Gource going with Git...First extract the Git log between your two tags like so...
 Git Command:\
git log --pretty=format:user:%aN%n%at --reverse --raw --encoding=UTF-8 start_tag...end_tag > git.log


Replace start_tag and end_tag with your actual tag names. You can get a list of all tags by running 'git tag'.

Then to visualise the commits you can run Gource as follows:
 Gource Animation
gource --hide filenames,dirnames,usernames -c 4 -i 1200 --seconds-per-day 1 --camera-mode overview --bloom-multiplier 0.25 --bloom-intensity 0.25 -1280x720 --log-format git git.log




To create a video instead, you will need ffmpeg installed and the command now becomes this...
 Gource FFMPEG
gource --hide filenames,dirnames,usernames -c 4 -i 1200 --seconds-per-day 1 --camera-mode overview --bloom-multiplier 0.25 --bloom-intensity 0.25 -1280x720 --log-format git -o - git.log | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4


This is the video that I ended up with...



-i

comments powered by Disqus
Other posts you may like...

Recent Blog Posts

A hack to create an uber jar with the Maven Shade Plugin using local jar files

Is it worth it? Apple USB-C Digital Multi AV adapter vs a cheap eBay clone

Running X11 graphical applications after changing to another user using 'sudo su'

How to stop Facebook using ad images as post sharing thumbnails

Picking lists for Atari Lynx capacitor replacement kits

Performance - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Look and feel - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Using math to work out the diameter of hard to reach water cooling pipes

How to get the unreachable shard in the Hinterlands in DragonAge Inquisition

Measy RC12 wireless 2.4Ghz keyboard touchpad review

Recent Galleries

Monument Valley 2 is released and does not disappoint

Space Food - Chocolate Ice Cream with Chocolate Chips

Legeod Star Wars AT-DP kit

DIY spare parts computer build with a RAIDMAX Anura case

Fake 'Lepin' brand Lego packaging

Hardwood garden bench with clear resin void filler

Fixing a 3D printer extruder that stopped heating up

Easily increase disk space in a Lenovo Ideapad 100S 14" laptop with an M.2 SSD

Making a multi-piece 3D printed solder spool holder stand

DIY indoor apartment grow light wiring

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
300 George St Blogumentary

My Online Tools

UUID to OID Converter
Guru JSON-RPC Tester
Extrudifier Object Designer
Travel ┬ÁBlog

Blogs and Friends

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Don't forget to
me for more great articles!
Don't show this again