-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgource.xml
22 lines (22 loc) · 1.05 KB
/
gource.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE project>
<project name="gource" default="makefilm" basedir=".">
<property name="title" value="NetworkParser"/>
<target name="gource" description="Visualization Git-Changes with Gource">
<mkdir dir="build" />
<mkdir dir="build/avi" />
<unzip src="lib/gource-0.42.win32.zip" dest="build/avi" />
<echo>*** created a huge PPM file containing screenshots</echo>
<echo>${basedir}</echo>
<exec executable="${basedir}/build/avi/gource.exe">
<arg line="-o build/${title}.ppm --title '${title}' -s 1 -a 1 -c 4"/>
</exec>
</target>
<target name="makefilm" depends="gource" description="Make a AVI with Visualization of Git-Changes">
<echo>*** now going to create a libx264 video file</echo>
<exec executable="${basedir}/build/avi/ffmpeg.exe">
<arg line="-y -r 60 -f image2pipe -vcodec ppm -i build/${title}.ppm -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -crf 1 -threads 0 -bf 0 build/${title}.x264.avi"/>
</exec>
<delete dir="build/avi"/>
<delete file="build/${title}.ppm" />
</target>
</project>