This is tested on
2017-03-02-raspbian-jessie-lite imageMake sure to launch
raspi-config to enable on board camera
sudo raspi-config
Select Enable Camera
Enable
Finish
Yes
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:
Post a Comment