gource – visualize your repo! :)

Do you ever think about how to visualize your source code repository? Watch this :)

and now.. how it’s done (built for osx snow leopard).

# install missing libs
$ sudo port install pcre libsdl libsdl_image ftgl

# fetch && make gource
$ git clone git://github.com/acaudwell/Gource.git
$ cd Gource/
$ autoreconf -f -i
$ git submodule init
$ git submodule update
$ ./configure; make -j3

# it's not neccessary to run "make install"

# install ffmeg
$ sudo port install ffmpeg +gpl +lame +x264 +xvid

# fetch svn log, transform to readable form
$ cd my-svn-project
$ svn log --verbose --xml > my-project.log
$ python svn-gource.py --filter-dirs my-project.log > my-project-gource.log

# and run gource
$ cd Gource
$ ./gource --path ../my-project-gource.log -s 0.5 -b 000000 --highlight-all-users -title "My app" \
--hide progress,filenames --user-scale 2.0 -800x600 --output-ppm-stream - | ffmpeg -y -b 3000K \
-r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -vpre hq -crf 28 -threads 0 video.mp4

you could add some audio then:

$ ffmpeg -i audio.mp3 -i video.mp4 -vcodec libx264 -vpre hq -crf 28 -threads 0 video-with-audio.mp4

references:

Leave a Reply

Your email address will not be published. Required fields are marked *

36 + = 38