Skip to content

Instantly share code, notes, and snippets.

@Gro-Tsen
Created August 23, 2019 13:07
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 Gro-Tsen/6f985fa0348623a8131ffb63a0627910 to your computer and use it in GitHub Desktop.
Save Gro-Tsen/6f985fa0348623a8131ffb63a0627910 to your computer and use it in GitHub Desktop.
for i in $(seq 0 9) ; do convert -size 960x720 'xc:gray' -font 'FreeSans' -pointsize 200 -gravity Center -annotate 0 $i frame${i}.png ; done
for i in $(seq 0 9) ; do echo "file frame${i}.png" ; echo "duration 6.000" ; done > video.script
sox -n -r 48000 -c 2 -t flac silence.flac trim 0.0 60.0
ffmpeg -f concat -i video.script -i silence.flac -c:v libvpx -crf 12 -pix_fmt yuv420p -c:a libopus -b:a 192k test.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment