-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gource.sh
executable file
·62 lines (52 loc) · 3.99 KB
/
gource.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# TITLE="github.com/tomachinz/AminoSee Audio track by TOMACHI: Mechanoid Rein"
TITLE="github.com/tomachinz/AminoSee Audio track is the AminoSee audio logo recording session out-takes"
OUTPUTFILEMP4="video/gource.mp4"
FASTOUTPUTFILEMP4="video/fast_gource.mp4"
OUTPUTFILEWEBM="video/gource.webm"
OUTPUTFILEAUDIO="video/gource_music.mp4"
OUTPUTFILEAUDIO="video/fast_gource_audiologo.mp4"
# FASTOUTPUTFILEAUDIO="video/fast_gource_music.mp4"
FASTOUTPUTFILEAUDIO="video/fast_gource_audiologo.mp4"
# AUDIOTRACK="/Volumes/13xOLDSKOOL/Users/tom/Projects OLDSKOOL/Album2 The Atkinson Diet 13inch/Mechanoid Rain/Bounces/Mechanoid_Rain-18Jan2019_Version.wav"
AUDIOTRACK="audio/master2-long.ogg"
# THIS LAST ABOUT A MINUTE
FASTCOMMAND="gource --date-format '%d / %m / %Y %a' --camera-mode overview -1600x1040 --seconds-per-day 0.01 --auto-skip-seconds 1 --max-file-lag 20 --background-image src/public/WhitePaper_800px.png --logo src/public/funk-logo-140px.png --font-size 15 --key --bloom-multiplier 0.021321 --bloom-intensity 1 --background 012345 -e 0.15 --title '$TITLE'"
ENCODE="$FASTCOMMAND -o - | ffmpeg -probesize 63M -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -b:v 1000k -preset slow -pix_fmt yuv420p -crf 5 -threads 0 -bf 0 $FASTOUTPUTFILEAUDIO"
mkdir video
echo "Render an animation of the AminoSee Github open source code repository evolution of time"
echo title: $TITLE
echo audio: $OUTPUTFILEAUDIO
echo track: $AUDIOTRACK
echo THIS IS PREVIEW quit to render
eval $FASTCOMMAND
echo THIS IS ACTUAL ENCODE
eval $ENCODE
echo "Now Ima go add an audio track up in this..."
echo
ffmpeg -i $FASTOUTPUTFILEMP4 -i $AUDIOTRACK -c:v copy -c:a aac -strict experimental -filter:a "volume=1.0" fast_$OUTPUTFILEAUDIO
sleep 1
COMMAND="gource --date-format '%d / %m / %Y %a' --camera-mode overview -1600x1040 --seconds-per-day 0.1 --auto-skip-seconds 4 --max-file-lag 20 --background-image src/public/WhitePaper_800px.png --logo src/public/funk-logo-140px.png --font-size 15 --key --bloom-multiplier 0.021321 --bloom-intensity 1 --background 012345 -e 0.15 --title '$TITLE'"
ENCODE="$COMMAND -o - | ffmpeg -probesize 63M -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -b:v 1000k -preset slow -pix_fmt yuv420p -crf 5 -threads 0 -bf 0 $OUTPUTFILEMP4"
echo About to run...:
echo $COMMAND
echo THIS IS PREVIEW QUIT TO RENDER TO DISK PROPER
eval $COMMAND
echo About to encode the MP4 video soon, using this...:
echo $ENCODE
eval $ENCODE
echo ADDING A TUNE IM WORKING ON TO THE AUDIO TO THE VIDEO
ffmpeg -i $OUTPUTFILEMP4 -i $AUDIOTRACK -c:v copy -c:a aac -strict experimental -filter:a "volume=1.0" $OUTPUTFILEAUDIO
echo About to encode the WEBM video soon, using this...:
ENCODE="$COMMAND -o - | ffmpeg -probesize 100M -y -r 60 -f image2pipe ppm -i - -vcodec libvpx -acodec libvorbis -b:v 1024k -preset slow -pix_fmt yuv420p -crf 5 -threads 0 -bf 0 $OUTPUTFILEWEBM"
echo $ENCODE
sleep 1
eval $ENCODE
# gource --date-format '%d / %m / %Y %a' --camera-mode overview -1100x880 --seconds-per-day 0.2 --auto-skip-seconds 0.1 --max-file-lag 0.01 --background-image src/public/WhitePaper_800px.png --logo src/public/funk-logo-140px.png --font-size 14 --key --bloom-multiplier 0.125 --bloom-intensity 0.125 --background 012345 -e 0.75 --title 'github.com/tomachinz/AminoSee'
#
# -i /Volumes/13xOLDSKOOL/Users/tom/Projects\ OLDSKOOL/Album2\ The\ Atkinson\ Diet\ 13inch/Mechanoid\ Rain/Bounces/Mechanoid_Rain-18Jan2019_Version.wav -filter_complex 'anullsrc=channel_layout=mono:sample_rate=8000[a]'
# -map 0 -map '[a]' -c:v copy -c:a pcm_alaw -shortest output.mov
# ffmpeg -i input -filter_complex anullsrc=channel_layout=mono:sample_rate=8000[a]
# -map 0 -map "[a]" -c:v copy -c:a pcm_alaw -shortest output.mov
# -vcodec libvpx -acodec libvorbis output.webm
# $COMMAND -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4
# $COMMAND -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4