mathr / blog / #

Falling Leaves

A live-coded bytebeat music session inspired by approaching autumn:

A bit stroboscopic, be careful if that affects you. See Falling Leaves on archive.org or download:

MKV (164MB) MP4 (61MB) OGV (46MB)

Falling Leaves audio code log, plus video rendering with mplayer and ffmpeg:

mplayer -benchmark -nosound -demuxer rawvideo \
  -rawvideo fps=31.25:w=16:h=16:y8 -vo pnm falling-leaves.1u8
ffmpeg -i falling-leaves.flac -framerate 31.25 -i "%08d.ppm" -sws_flags neighbor \
  -filter:v "scale=w=1024:h=1024, pad=w=1920:h=1080:x=448:y=28:color=0x808080" \
  -pix_fmt yuv420p -crf:v 0 -codec:a copy falling-leaves.mkv

(I uploaded this a couple of weeks ago but didn't get around to blogging about it until today.)