gource
software version control visualization
On commence par générér le fichier xml de l'activité : svn log -r 318:HEAD –xml –verbose –quiet > my-project-log.xml
svn log -r 678:HEAD --xml --verbose --quiet > handicap.xml
pour ffmpeg la liste de preset se trouve dans /usr/share/ffmpeg (ne pas oublier d'avoir, extra-codec comme pour openshot). Si l'option -preset ne marche pas, utiliser l'option -vpre
- en x264
gource -640x360 --auto-skip-seconds 1 --bloom-multiplier 1.0 --bloom-intensity 1.0 --background-image ~/lyx/lasc/svn_publications/handicap2012/images/background640.png -e 0.5 --seconds-per-day 2 --background 000000 --logo ~/Images/ian_manga64.png --title "Document LaTex Handicap 2012" --hide mouse,dirnames handicap.xml -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -vpre veryslow -crf 1 -threads 0 -bf 0 handicap.mp4
- en webm
gource -640x360 --auto-skip-seconds 1 --bloom-multiplier 1.0 --bloom-intensity 1.0 --background-image ~/lyx/lasc/svn_publications/handicap2012/images/background640.png -e 0.5 --seconds-per-day 2 --background 000000 --logo ~/Images/ian_manga64.png --title "Document LaTex Handicap 2012" --hide mouse,dirnames handicap.xml -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libvpx -b 10000K handicap.webm
Résultat
Avec git
from http://www.legendiary.at/2011/01/20/visualize-icinga-git-with-gource/
extraction du log :
git log --pretty=format:user:%aN%n%at --reverse --raw --encoding=UTF-8 --no-renames --since="1 year ago" > git.log
gource --path git.log -s 1 --auto-skip-seconds 1 --bloom-multiplier 1.0 --bloom-intensity 1.0 --file-idle-time 50 --max-files 500 --multi-sampling -1280x720 --stop-at-end --elasticity 0.1 -b 000000 --disable-progress --user-friction .2 -e 0.5 --seconds-per-day 2 --title "Edith project's life " --hide mouse,dirnames --output-ppm-stream - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libvpx -b 10000K test.webm
to get gravatar of the users
#!/usr/bin/perl #fetch Gravatars #if proxy #BEGIN { $ENV{HTTP_proxy}="http://proxy.ufu.br:3128"; } use strict; use warnings; use LWP::Simple; use Digest::MD5 qw(md5_hex); use Thread::Pool::Simple; my $size = 90; my $output_dir = '.git/avatar'; system("no .git/ directory found in current path\n") unless -d '.git'; mkdir($output_dir) unless -d $output_dir; open(GITLOG, q/git log --pretty=format:"%ae|%an" |/) or die("failed to read git-log: $!\n"); my %processed_authors; sub fetch { #try and fetch image my ($name, $email, $author_image_file) = @_; my $grav_url = "http://www.gravatar.com/avatar/".md5_hex(lc $email)."?d=404&s=".$size; warn "fetching image for '$name' $email ($grav_url)...\n"; my $rc = getstore($grav_url, $author_image_file); if($rc != 200) { unlink($author_image_file); } } my $pool = Thread::Pool::Simple->new(min => 10, max => 20, do => [\&fetch]); while(<GITLOG>) { chomp; my($email, $author) = split(/\|/, $_); next if $processed_authors{$author}++; my $author_image_file = $output_dir . '/' . $author . '.png'; #skip images we have next if -e $author_image_file; $pool->add(($author, $email, $author_image_file)); } $pool->join(); close GITLOG;
openshot et h264 et mp3 see http://openshotusers.com/forum/viewtopic.php?f=12&t=1261 i uused the PPA Jon Severisson 's Methode
Yann
~~UP~~