File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323Usage
2424*****
2525
26+ ::
27+
28+ python pygource.py \
29+ --name "Project ACME" \
30+ --path /path/to/acme \
31+ --audio-source '/path/to/audio.mp3' \
32+ --audio-loops 10
33+
34+
35+ ********
36+ Examples
37+ ********
38+
39+ Common
40+ ======
41+
2642Get an audio file::
2743
2844 youtube-dl --extract-audio --format=m4a \
@@ -36,32 +52,42 @@ Convert it to MP3 format::
3652 -c:v copy -c:a libmp3lame -q:a 4 \
3753 "./var/Beastie boys - Suco De Tangerina.mp3"
3854
39- Get sources of repository::
55+ Gource
56+ ======
57+
58+ Acquire sources::
4059
4160 git clone https://github.com/acaudwell/Gource ./var/Gource
4261
43- Invoke renderer and play video, example 1 ::
62+ Render and play video::
4463
4564 python pygource.py \
46- --name Gource \
65+ --name " Gource" \
4766 --path "./var/Gource" \
4867 --audio-source "./var/Beastie boys - Suco De Tangerina.mp3" \
49- --audio-loops 2
68+ --audio-loops 10
5069
5170 open -a vlc Gource.mp4
5271
53- Invoke renderer and play video, example 2::
72+
73+ CrateDB
74+ =======
75+
76+ Acquire sources::
77+
78+ git clone https://github.com/crate/crate ./var/crate
79+
80+ Render and play video::
5481
5582 python pygource.py \
56- --name "CrateDB 2022Q1 " \
57- --path ~/dev/crate/sources /crate \
83+ --name "CrateDB 2022H2 " \
84+ --path ./var /crate \
5885 --audio-source "./var/Beastie boys - Suco De Tangerina.mp3" \
5986 --audio-loops 10 \
6087 --outdir "./var" \
6188 --overwrite
6289
63- # --time-lapse \
90+ open -a vlc "./var/CrateDB 2022H2.mp4"
6491
65- open -a vlc "./var/CrateDB 2022Q1.mp4"
6692
6793.. _Gource : https://github.com/acaudwell/Gource
Original file line number Diff line number Diff line change 22PyGource backlog
33################
44
5+ - [o] Add ``--start-date `` and ``--stop-date `` options.
56- [o] Better ``--time-lapse `` option.
7+ - [o] Make option ``--audio-loops `` obsolete.
Original file line number Diff line number Diff line change 11"""
2- Renders video of repository commit history using gource, adds background song .
2+ Render video of VCS repository commit history using Gource, with audio .
33
44Prerequisites::
55
1111 --name acme-trunk \
1212 --path ~/dev/three-investigators/acme/trunk \
1313 --audio-source '/home/foobar/music/Beastie boys/Suco De Tangerina.mp3' \
14- --audio-loops 50 \
14+ --audio-loops 10 \
1515 # --overwrite
1616"""
1717import os
@@ -253,17 +253,7 @@ def run(self):
253253 shutil .move (tmpfile , self .video_file )
254254
255255
256- def render_single ():
257- """
258- Renders single projects' vcs repository, e.g.::
259-
260- bin/gource-render-single \
261- --name acme-trunk \
262- --path ~/dev/three-investigators/acme/trunk \
263- --audio-source '/home/foobar/music/Beastie boys/Suco De Tangerina.mp3' \
264- --audio-loops 50 \
265- # --overwrite
266- """
256+ def render ():
267257
268258 from optparse import OptionParser
269259
@@ -318,4 +308,4 @@ def render_single():
318308
319309
320310if __name__ == "__main__" :
321- render_single ()
311+ render ()
You can’t perform that action at this time.
0 commit comments