Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/gource #985

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gource/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ostelco-core.mp4
17 changes: 17 additions & 0 deletions gource/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generate a gource animation of the develop branch


This directory contains a script to generate a ["gource"](https://gource.io/)
animation of the commits that have gone into making this project.

The script "generate-mpeg.sh" checks if the prerequisite executables
are present in the runtime environment, and if it is will proceed too generate
a mpeg movie illustrating the evolution of the project. The output will
be placed in a file called "ostelco-core.mpeg" in the same directory as
the script is being run from.






18 changes: 18 additions & 0 deletions gource/generate-mpeg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

DESTINATION="ostelco-core.mp4"
DEPENDENCIES="gource ffmpeg"
for DEP in $DEPENDENCIES ; do
if [[ -z "$(which $DEP)" ]] ; then
echo "Could not find any \"$DEP\" executable in the current runtime envinronment, bailing out"
exit 0
fi
done

# Set up the dommands in the somewhat complicated pipeline
# --start-position 0.09 --stop-position 0.1
GOURCE_CMD='gource -f -1280x720 --seconds-per-day 1 --auto-skip-seconds 1 --title "ostelco-core" -o - '
FFMPEG_CMD="ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 $DESTINATION"

# Then run the pipeline
$GOURCE_CMD | $FFMPEG_CMD