This shows you the differences between two versions of the page.
Previous revision | |||
— | fuss:gource [2022/04/19 08:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Generate Movie from Subversion Log ====== | ||
+ | |||
+ | This is a small script that generate a movie from a remote Subversion repository using '' | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | ########################################################################### | ||
+ | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## | ||
+ | ## Please see: http:// | ||
+ | ## rights of fair usage, the disclaimer and warranty conditions. | ||
+ | ########################################################################### | ||
+ | # Generates a gource movie from a Subversion repository using ffmpeg. | ||
+ | # Requirements: | ||
+ | # * gource | ||
+ | # * xvfb-run | ||
+ | # * complete ffmpeg (http:// | ||
+ | # # | ||
+ | # Instructions: | ||
+ | # - Install xvfb: aptitude install xvfb xfonts-base xfonts-75dpi \ # | ||
+ | # xfonts-100dpi xfonts-cyrillic gource ffmpeg libavcodec-extra-52 | ||
+ | # - Configure the script in the section marked CONFIGURATION | ||
+ | # - Drop the script in the folder of choice / | ||
+ | # periodically generate reports. | ||
+ | # # | ||
+ | ########################################################################### | ||
+ | |||
+ | ########################################################################### | ||
+ | # | ||
+ | ########################################################################### | ||
+ | REMOTE_SVN_REPOSITORY=http:// | ||
+ | RENDER_RESOLUTION=640x480 | ||
+ | RENDER_RESOLUTION_DEPTH=24 | ||
+ | OUTPUT_FILE_PATH=/ | ||
+ | |||
+ | |||
+ | ########################################################################### | ||
+ | # INTERNALS | ||
+ | ########################################################################### | ||
+ | |||
+ | svn log $REMOTE_SVN_REPOSITORY -r 1:HEAD --xml | \ | ||
+ | xvfb-run -a \ | ||
+ | -s " | ||
+ | gource --log-format svn \ | ||
+ | -$RENDER_RESOLUTION \ | ||
+ | -r 30 \ | ||
+ | --seconds-per-day 1 \ | ||
+ | --stop-at-end \ | ||
+ | --auto-skip-seconds 1 \ | ||
+ | --output-ppm-stream - - | \ | ||
+ | ffmpeg -loglevel panic \ | ||
+ | -y \ | ||
+ | -f image2pipe \ | ||
+ | -vcodec ppm \ | ||
+ | -i pipe:0 \ | ||
+ | -c:v " | ||
+ | -an \ | ||
+ | $OUTPUT_FILE_PATH | ||
+ | |||
+ | </ | ||