What you need:
- Raspberry Pi RevB
- Raspberry Pi NoIR camera
Download raspbian and install to SD-card. Here is a good guide on how to install the .img file to the card: https://www.andrewmunsell.com/blog/getting-started-raspberry-pi-install-raspbian
Connect ethernet or wifi, then boot the Raspberry Pi and follow configuration options. Make sure you enable the camera option.
When you get to the command-line:
bash <(curl -s ...)
raspivid -o - -t 0 -hf -w 800 -h 400 -fps 24 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8160}' :demux=h264 raspivid -o - -t 0 -hf -w 800 -h 400 -fps 24 -n |cvlc -vvv stream:///dev/stdin --sout '#std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/usr/share/nginx/www/live/stream.m3u8,index-url=http://10.0.0.3/live/stream-########.ts},mux=ts{use-key-frames},dst=/usr/share/nginx/www/live/stream-########.ts}' :demux=h264
raspivid -w 640 -h 480 -n -o - | ffmpeg -y -i - -codec copy test.mp4