Guest User

Untitled

a guest
Feb 22nd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. # Usage: ZEROES=9 make number-audio
  2. # e.g. A million has six zeroes (3 * (1 + 1)).
  3. # A billion has nine zeroes (3 * (2 + 1)).
  4. # A trillion has 12 zeroes (3 * (3 + 1)).
  5. number-audio:
  6. rm -f output.wav
  7. rm -f test-list.txt
  8. echo "file static/one.wav\n" > test-list.txt
  9. for i in {1..$(ZEROES)}; do printf "file 'static/zero.wav'\n" >> test-list.txt; done
  10. ffmpeg -f concat -safe 0 \
  11. -i test-list.txt \
  12. -c copy output.wav
  13.  
  14. convert-to-video:
  15. rm -f video.mp4
  16. ffmpeg -loop 1 -i static/base.png \
  17. -i output.wav -c:a aac -ab 112k \
  18. -c:v libx264 -shortest -strict -2 -pix_fmt yuv420p \
  19. video.mp4
Add Comment
Please, Sign In to add comment