-
Notifications
You must be signed in to change notification settings - Fork 4
Frencil/MultiGource
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
___ ___ _ _ _ _____ | \/ | | | | (_) __ \ | . . |_ _| | |_ _| | \/ ___ _ _ _ __ ___ ___ | |\/| | | | | | __| | | __ / _ \| | | | '__/ __/ _ \ | | | | |_| | | |_| | |_\ \ (_) | |_| | | | (_| __/ \_| |_/\__,_|_|\__|_|\____/\___/ \__,_|_| \___\___| ===================================================== Author: Christopher Clark (@Frencil) March 24, 2012 Gource is an open source library for visualizing the growth of a version controlled source code repository over time with dynamic, colorful animations. On GitHub: https://github.com/acaudwell/Gource MultiGource is a little script I developed to recurse through subdirectories containing multiple Git repositories and condense their logs into a single custom-format log that can be fed to Gource to produce one massive visualization of many repos. GENERATING THE LOG ================== 1. Clone as many repositories as you like into a top-level directory. They can be buried in subdirectories. Only Git repositories are supported at this time. 2. Edit log_generator.php to define your root path and colors (see comments in USER DEFINED VALUES section) 3. From the location of log_generator.php: `./php log_generator.php > {LOGFILE}` Where {LOGFILE} is the destination of your custom-format log. GENERATING THE VISUALIZATION ============================ Here's the basic command to get your visualization running at 720p: % gource --load-config /path/to/multigource.conf -1280x720 {LOGFILE} WARNING! Running Gource on many big projects like this can take a long time! Watching your visualization as it renders may be excrutiatingly slow (and will vary in speed as the complexity of the content varies). RECOMMENDATION: Render your Gource visualization as a stream and pipe it to ffmpeg to get a video file that runs at a consistent speed, can be edited or uploaded to the internet, whatever. To do this you'll need to install ffmpeg. Just get it, it's awesome. Here's an updated command that turns Gource into a stream and pipes it to ffmpeg. The extra flags on the ffmpeg part are tuned to produce a 720p video file that has a good balance of high quality and decent file size. % gource --load-config /path/to/multigource.conf -1280x720 {LOGFILE} --output-ppm-stream - | \ ffmpeg -an -threads 4 -y -vb 4000000 -s 1280x720 -r 30 -f image2pipe -vcodec ppm -i - {OUTPUTFILE} Please refer to ffmpeg documentation to understand these flags and how to tweak them. {OUTPUTFILE} is the path to the final video and its format will be automatically determined by the extension you choose. (e.g. file.mov, file.flv, file.mp4) MULTIGOURCE IN ACTION ===================== Here are a couple of examples of Multigource in action: [SparkFun Original Open Source Projects] http://www.youtube.com/watch?v=Y4V-0y4qPSU [Open Source Packages used by SparkFun Electronics] http://www.youtube.com/watch?v=Jg2DYldS5U8 Obviously I used MultiGource to visualize development in terms of SparkFun Electronics, my current employer. The first example is stuff we've built and open sourced, the second is a selection of FOSS we use in production (selected because it had complete Git logs). The titles indicating the names of packages were added to the output file after the fact using Adobe Premiere. Sadly, Gource is not yet robust enough to natively support something like that.
About
Utility to generate custom logs from many Git repos for piping to a Gource visualization
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published