Created
February 10, 2018 02:03
-
-
Save jimkang/e18166ba0f6fbff80e598f659387b0ce to your computer and use it in GitHub Desktop.
A thing that'll say large numbers like an octillion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: ZEROES=9 make number-audio | |
# e.g. A million has six zeroes (3 * (1 + 1)). | |
# A billion has nine zeroes (3 * (2 + 1)). | |
# A trillion has 12 zeroes (3 * (3 + 1)). | |
number-audio: | |
rm -f output.wav | |
rm -f test-list.txt | |
echo "file static/one.wav\n" > test-list.txt | |
for i in {1..$(ZEROES)}; do printf "file 'static/zero.wav'\n" >> test-list.txt; done | |
ffmpeg -f concat -safe 0 \ | |
-i test-list.txt \ | |
-c copy output.wav | |
convert-to-video: | |
rm -f video.mp4 | |
ffmpeg -loop 1 -i static/base.png \ | |
-i output.wav -c:a aac -ab 112k \ | |
-c:v libx264 -shortest -strict -2 -pix_fmt yuv420p \ | |
video.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment