Let us move on to recording a video, again we’ll use command line to control the recording. Open up LX Terminal and type in the the following code, we’ll create a folder named webcam for our video clips first :
lets start the code for a 10 second film clip (10000 milliseconds ):
raspivid -o video1.h264 -t 10000
This will record a 10 sec video clip in your newly created Video folder. Again we can use omx player to play back the clip:
Congratulations , you should now have your first Raspi Cam video playing on your screen.