Sun Aug 10 09:39:14 EDT 2014

web cam streaming

- command line or other remote access to restart after power fail

android: ip webcam[1]
linux: vlc[2] or libprim/pdp hack

openWRT on zuk: connect to serial ttl usb 3.3V cable as colors are marked.
tom@zoo:~$ picocom --baud 115200 /dev/ttyUSB1

For OpenWRT:
- switch to client mode

- android ip webcam -> data recorder
- openwrt client mode
- ffmpeg / ffserver on linux

ffmpeg -f dshow  -framerate 20 -i video=screen-capture-recorder -vf scale=1280:720 -vcodec libx264 -pix_fmt yuv420p -tune zerolatency -preset ultrafast -f mpegts udp://

# Running this connected to my laptop on wifi, I can see the traffic
# on the router's wlan interface.  Checked that it's not routed outside,
avconv -s 320x240 -f video4linux2 -i /dev/video0 -f mpegts udp://

Multicast seems like a nice decentralized way to deal with this.  How
can it be played?

Iptables config is necessary:
-A INPUT -m pkttype --pkt-type multicast -j ACCEPT

avconv -s 320x240 -f video4linux2 -i /dev/video0 -vcodec libx264 -pix_fmt yuv420p -tune zerolatency -preset ultrafast -f mpegts udp://

# same host pair works somewhat:
avconv -s 320x240 -f video4linux2 -i /dev/video0 -f mpegts -vcodec mpeg4 udp://
ffplay udp://

but lots of junk coming out.. 
this needs a low bitrate codec

i'm not finding what i need here...
what about writing this from scratch?

Redoing PF in rust?

[1] https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en
[2] http://xmodulo.com/2013/09/live-stream-video-webcam-linux.html