Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Add Comment
Please, Sign In to add comment