There is a really interesting tool that allows us to see graphically and in video form the directory structure of our git project and which developers are adding, deleting or editing content. I’m talking about gource.
We must install the tool, which we can find in the Gentoo ports:
emerge -av dev-util/gource
Or if we use FreeBSD:
pkg install gource
Now we move to the directory where we have our git repo and run:
gource ./
We will see a video as amazing as these .
We can also generate the video using ffmpeg.
We compile ffmpeg with the following use flags:
vi /etc/portage/package.use/ffmpeg
media-video/ffmpeg 3dnow 3dnowext jpeg2k libv4l v4l threads
emerge media-video/ffmpeg
Or if we use FreeBSD, we simply install the package:
pkg install ffmpeg
We generate the video:
gource -1280x720 -o gource.ppm
ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mkv
ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mkv