Prerequisites
Plug the camera
Plug the camera as explained here: http://www.youtube.com/watch?v=GImeVqHQzsE
Update system
$ sudo apt-get update
$ sudo apt-get upgrade
Enable camera
$ sudo raspi-config
Enable Camera then reboot.
Test
$ mkdir /home/pi/picam
$ cd /home/pi/picam
Capture an image in jpeg format:
$ raspistill -o image.jpg
Capture a 10s video:
$ raspivid -o video.h264 -t 10000
Capture a 10s video in demo mode:
$ raspivid -o video.h264 -t 10000 -d
Capture a 5s video in 1280x720 with a bitrate of 8Mb:
$ raspivid -o video.h264 -w 1280 -h 720 -b 8000000
Convert h264 to mp4:
$ sudo apt-get install -y gpac
$ MP4Box -fps 30 -add video.h264 video.mp4
Stream to VLC
$ sudo apt-get install vlc
$ raspivid -o - -t 0 -w 640 -h 360 -fps 25 | cvlc stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
In VLC: Open Network URL => http://IP:8090
MJPG Steamer
TODO: http://blog.miguelgrinberg.com/post/how-to-build-and-run-mjpg-streamer-on-the-raspberry-pi
Disable red led
$ sudo emacs /boot/config.txt
Add line:
disable_camera_led=1
Then reboot:
$ sudo reboot