Skip to content

Instantly share code, notes, and snippets.

View syegulalp's full-sized avatar

Serdar Yegulalp syegulalp

View GitHub Profile
import os
import sys
"""
This (pure!) python script streams a YUV4MPEG format video to stdout. It easily
runs at 1080p60fps on my machine.
Pipe it into a media player like this:
python3 swar_life.py | mpv -
target triple = "x86_64-none-linux-gnu"
declare i32 @printf(i8*, ...) nounwind
declare i32* @malloc(i32) nounwind
declare void @free(i32*) nounwind
@format_int_s = internal constant [3 x i8] c"%d\00"