avconv -f x11grab -r 25 -s 1920x1200 -i :0.0 -vcodec libx264 -tune zerolatency -f mpegts udp://127.0.0.1:1234
mplayer -benchmark udp://127.0.0.1:1234
| import json | |
| import pystache | |
| # read template | |
| template = open('template.mustache','r').read() | |
| # ignore line breaks and parse \n instead | |
| template = ''.join(template.splitlines()).decode('string_escape') | |
| # load publications JSON |
| import java.io.*; | |
| DataInputStream dis; | |
| void setup() | |
| { | |
| size(256, 256); | |
| try { | |
| dis = new DataInputStream(new FileInputStream("/home/robbe/tmp/howtodrawmushrooms.8s.raw")); // 192khz, 8 bit signed, stereo PCM |