Skip to content

Instantly share code, notes, and snippets.

@hannahherbig
Created August 30, 2016 07:37
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 hannahherbig/1b68bc74385d45cd92517d200c0bf9c9 to your computer and use it in GitHub Desktop.
Save hannahherbig/1b68bc74385d45cd92517d200c0bf9c9 to your computer and use it in GitHub Desktop.
script to render, mux, and upload osu replay video thingies to yt
PATHNAME="songs/kokou"
TITLE='50 replays - Yousei Teikoku - Kokou no Sousei [Chaos]'
MAP="https://osu.ppy.sh/b/118068&m=0"
BASENAME="$(basename $PATHNAME)"
MP3=($PATHNAME/*.mp3)
python multi_image.py "$PATHNAME" && \
ffmpeg -framerate 60 -i "out/$BASENAME-%05d.png" -i "$MP3" -map 0:v:0 -map 1:a:0 -c copy "$BASENAME.avi" && \
youtube-upload "$BASENAME.avi" -t "$TITLE" -d "map: $MAP\nsoource: https://github.com/andrew12/osr-stuff"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment