Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在github上可视化git存储库_Git_Github_Repository_Data Visualization - Fatal编程技术网

在github上可视化git存储库

在github上可视化git存储库,git,github,repository,data-visualization,Git,Github,Repository,Data Visualization,我在github上有一个存储库,我想要一个工具来生成如下的可视化视频: 是否有在windows中制作此类视频的分步教程?有关于如何制作的好信息。好的,该视频是使用创建的。它了解Git日志,并且有一个Windows版本。此外,还有一篇关于使用它创建视频的Wiki文章要在Windows中生成实际视频(使用Gorce),请查看的Windows部分。在的旧SO post上运行相关命令。此处的说明:显示如何为svn生成gource日志文件,然后gource可以播放该文件。git变体应该是类似的。请注意,

我在github上有一个存储库,我想要一个工具来生成如下的可视化视频:


是否有在windows中制作此类视频的分步教程?

有关于如何制作的好信息。

好的,该视频是使用创建的。它了解Git日志,并且有一个Windows版本。此外,还有一篇关于使用它创建视频的Wiki文章

要在Windows中生成实际视频(使用Gorce),请查看的Windows部分。在的旧SO post上运行相关命令。此处的说明:显示如何为svn生成gource日志文件,然后gource可以播放该文件。git变体应该是类似的。请注意,原始问题与古尔塞有关。

文件中未解释的内容;在标准Windows GIT安装中,默认情况下不会将GIT二进制文件的路径添加到Windows path环境变量中。相反,GIT在windows上使用自己的命令提示符。因此,在windows命令提示符下运行gource将导致找不到git

要从标准windows命令提示符启用git,需要将其添加到PATH环境变量中

从windows命令提示符类型(其中C:\Program Files(x86)\Git\bin是计算机上Git的路径):


如果有人只想要一行复制粘贴,请使用此选项(需要ffmpeglibx264):


你能解释一下我应该把git文件放在哪里吗?我的意思是gource从哪里获得存储库的源文件?在你的本地机器上找到你的存储库并键入“gource.exe”-就这么简单。工作得很好。我唯一的问题是视频变得庞大。但是不同的参数已经帮了我很多。顺便说一句,如果你没有ffmpeg,你可以在macos上安装它:“brew安装ffmpeg”嗨,Alexander。欢迎来到stackoverflow。如果你在提供的解决方案中添加一些详细信息,以及解决OP问题的确切代码部分,你会提供更多帮助,你的答案可能会被更多人采纳。
set path=%path%;C:\Program Files (x86)\Git\bin
gource -1280x720 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -crf 1 -threads 0 -bf 0 gource.mp4
#!/bin/bash
# This is script of the generation video from "Gource".

# project: Screensaver Kodi Universe (http://berserk.tv)
# This script creates a ZIP archive of a Kodi screensaver.
# GNU GENERAL PUBLIC LICENSE. Version 2, June 1991
# 
OUT_DIR="output"
OUT="kodi-universe.mkv"
NAME_PROJ="screensaver.kodi.universe"
MEDIA_PATH="${NAME_PROJ}/resources/skins/default/media"
NAME_REP="https://github.com/berserktv/${NAME_PROJ}.git"

GSFILE="output.ppm"
SECONDS_PER_DAY="1"
GOURCE_FRAME_RATE="30"
RESOLUTION="-1920x1080"
CODEC_OUT_FRAME_RATE="25"

FFPARAM="-vcodec libx264 -profile:v high422 -pix_fmt yuv420p"
GSPARAM1="--camera-mode track ${RESOLUTION} --stop-position 1.0 --seconds-per-day ${SECONDS_PER_DAY}"
GSPARAM2="--git-branch origin/master --multi-sampling --stop-at-end --hide-filenames"
GSPARAM3="--highlight-users --file-idle-time 13 --max-files 0 --hide date"
GSPARAM4="--title Kodi --bloom-multiplier 1.0 --bloom-intensity 1.0"

VIS="visualize"
GIT_REP="https://github.com/xbmc/xbmc.git"
# arg1 - Git Project PATH
# example: ./create.sh "https://github.com/facebook/react.git"
if [ -n "$1" ]; then GIT_REP="$1"; fi

# INSTALL PACKAGE git zip ffmpeg gource
packages="git zip ffmpeg gource"
for i in $packages; do
  if ! dpkg -s $i | grep -q "install ok installed"; then sudo apt-get install -y $i; fi
done 

test -d ${OUT_DIR} || mkdir -p ${OUT_DIR}
cd ${OUT_DIR}
# download screensaver Kodi Universe и GIT for Visualization
if ! git clone ${NAME_REP} ${NAME_PROJ}; then echo "Error, not load ${NAME_REP}, exit ..."; exit 1; fi
if ! git clone ${GIT_REP} ${VIS};        then echo "Error, not load ${GIT_REP},  exit ..."; exit 2; fi


gource ${VIS} ${GSPARAM1} ${GSPARAM2} ${GSPARAM3} ${GSPARAM4} --output-framerate ${GOURCE_FRAME_RATE} --output-ppm-stream ${GSFILE}
ffmpeg -y -r ${GOURCE_FRAME_RATE} -f image2pipe -vcodec ppm -i ${GSFILE} ${FFPARAM} -r ${CODEC_OUT_FRAME_RATE} ${OUT} && sync
mv -f ${OUT} ${MEDIA_PATH}
rm -f ${GSFILE}
zip -r ${NAME_PROJ}.zip ${NAME_PROJ}