Raspberry Pi camera board test

Plug the camera board into the slot which is the between HDMI and Ethernet port. Just exactly like in picture.

This is tested on 2017-03-02-raspbian-jessie-lite image
Make sure to launch raspi-config to enable on board camera
sudo raspi-config
Select Enable Camera
Enable
Press on the right side and select Finish
And apply reboot with Yes
To test and record the video with the default timing which is 5 seconds and then it quits.
h264 is just a file extension. Better leave it.
raspivid -o output.h264
To record for 10 seconds use
raspivid -o output.h264 -t 10000
For an vertical flip use -vf switch
raspivid -o filename.h264 -t 10000 -vf
For an horizontal flip use -hf switch
raspivid -o video.h264 -t 10000 -hf
To set another resolution use -w and -h switch
raspivid -w 1280 -h 720 -o hello.h264 -t 10000 -vf
P.S. You can play these files on windows with VLC media player

No comments: