Skip to content

Instantly share code, notes, and snippets.

@naveed-ahmad
Forked from XueshiQiao/gource.sh
Created September 30, 2017 16:57
Show Gist options
  • Save naveed-ahmad/908f775de687dbcc59d105a21f5631a7 to your computer and use it in GitHub Desktop.
Save naveed-ahmad/908f775de687dbcc59d105a21f5631a7 to your computer and use it in GitHub Desktop.
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
# 3.generate a video for you repo.
$ cd your_repo_dir
$ gource \
-s .06 \
-1280x720 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--key \
--highlight-users \
--hide mouse,progress \
--file-idle-time 0 \
--max-files 0 \
--background-colour 000000 \
--font-size 22 \
--title "This is video Title @@@@@@@@@@@@@@@" \
--output-ppm-stream - \
--output-framerate 30 \
| avconv -y -r 30 -f image2pipe -vcodec ppm -i - -b 65536K movie.mp4
# It's Done! Just share the video with your teammates, Have fun!
@naveed-ahmad
Copy link
Author

gource
-s .8 -f -e .02
-1280x720
--auto-skip-seconds .1
--multi-sampling
--stop-at-end
--key
--file-idle-time 0
--max-files 0
--camera-mode track
--highlight-dirs
--highlight-users
--background-colour 000000
--font-size 22
--title "Quran.com frontend"
--output-ppm-stream -
--output-framerate 30
| avconv -y -r 30 -f image2pipe -vcodec ppm -i - -b 65536K movie3.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment