Skip to content

Instantly share code, notes, and snippets.

@jimkang
Created February 10, 2018 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimkang/e18166ba0f6fbff80e598f659387b0ce to your computer and use it in GitHub Desktop.
Save jimkang/e18166ba0f6fbff80e598f659387b0ce to your computer and use it in GitHub Desktop.
A thing that'll say large numbers like an octillion
# 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