Skip to Content
Hands-On Robotics Programming with C++
book

Hands-On Robotics Programming with C++

by Dinesh Tavasalkar
March 2019
Intermediate to advanced
312 pages
7h 37m
English
Packt Publishing
Content preview from Hands-On Robotics Programming with C++

Recording a video with the RPi camera

Now that we know how to take a picture with the RPi camera, let's look at how to record video with it. The command for recording a video clip is as follows:

raspivid -o video1.h264 -t 5000 

The preceding command doesn't yield any output, as shown in the following screenshot:

In our command, we used raspivid to record the video and named it video1. We recorded the video in the h264 format. The number 5000 represents 5,000 milliseconds, that is, we recorded a 5-second video. You can open the pi folder and double-click on the video file to open it:

Now that we know how to take a picture and record a video, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming

Learn Robotics Programming

Danny Staple
C++ Reactive Programming

C++ Reactive Programming

Praseed Pai, Peter Abraham

Publisher Resources

ISBN: 9781789139006Supplemental Content