// gol.c (262 bytes minified)

#define  F for(i=0;i<l*3;i++)
main(n){int i,j,w=640,h=480,l
=w*h,o[]={~w,-w,-w+1,-1,1,w-1
,w,w+1},b[l*4];F b[i]=rand();
for(puts("YUV4MPEG2 W640 H48"
"0 F30 C444");puts("FRAME");)
{F{for(n=j=8;j;n-=b[(i+l+o[--
j])%l]&1);b[i+l]=(n^5&&!b[i]|
n^6)-1;}F putchar(b[i]=b[i+l]
);}}// gcc g.c&&./a.out|mpv -

/*
 * Note: the program above
 * renders a video stream of
 * a simulation of Conway's
 * Game of Life.
 */


// even smaller, wth colours:

#define  F for(i=0;i<l*3;i++)
main(n){int i,j,w=640,h=480,l
=w*h,o[]={~w,-w,-w+1,-1,1,w-1
,w,w+1},b[l*5];F b[i]=rand();
for(puts("YUV4MPEG2 W640 H48"
"0 F30 C444");puts("FRAME");)
{F{for(n=j=8;j;n-=b[i+o[--j]]
&1);b[i+l]=(n^5&&!b[i]|n^6)-1
;}F putchar(b[i]=b[i+l]);}}