-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
38 lines (31 loc) · 898 Bytes
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
Xvfb :99 -ac -screen 0 1920x1080x24 -nolisten tcp &
sleep 5
mkdir /video
cp /mnt/gource-mesa/commits.log /
mkdir -p ./tmp
mkfifo ./tmp/gource.pipe
gource --1920x1080 \
--camera-mode overview \
--file-idle-time 0 \
--auto-skip-seconds 0.5 \
--seconds-per-day 1 \
--bloom-multiplier 0.5 \
--bloom-intensity 0.1 \
--date-format "Day %j %b %Y" \
--max-file-lag 0.1 \
-key \
--background 000000 \
--font-size 16 \
--font-colour ffffff \
--hide "mouse,filenames,dirnames,usernames" \
--hide-root \
--stop-at-end \
/commits.log \
-r 60 \
-o - >./tmp/gource.pipe &
ffmpeg -r 60 -f image2pipe -probesize 100M -i ./tmp/gource.pipe -threads 0 \
-vcodec libx264 -level 5.1 -pix_fmt yuv420p -crf 23 -preset medium -threads 0 -bf 0 /video/$(date +%s).mp4
rm -rf ./tmp
cp /video/* /mnt/gource-mesa/video
echo "All Done"