Skip to content

Instantly share code, notes, and snippets.

View Longlius's full-sized avatar

Matthew Longley Longlius

View GitHub Profile
import os
import sys
"""
This (pure!) python script streams a gzip-compressed YUV4MPEG video to stdout.
It easily runs at 1080p60fps on my machine.
Pipe it into a media player like this:
python3 gzip_swar_life.py | mbuffer | gunzip - | mpv -