Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Raspberry Pi Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Raspberry Pi Essentials

Raspberry Pi Essentials

By : Jack Creasey
3.8 (5)
close
close
Raspberry Pi Essentials

Raspberry Pi Essentials

3.8 (5)
By: Jack Creasey

Overview of this book

Programmers new to the Raspberry Pi and novice programmers with little to no experience with micro board computing will find the book useful. A basic knowledge of programming languages in general will prove useful for a better understanding of the topics.
Table of Contents (10 chapters)
close
close
9
Index

Project 1 – Running raspivid as a background service


Let's set up raspivid so that, as it runs in the background, we can simply send a message to the process to stop or start video acquisition. This setup can also work for taking snapshot still images with raspistill too.

The script we will create allows you to easily control rapsivid from the command line. The command line in the script that instantiates the raspivid process looks like this:

sudo raspivid -w 800 -h 600 -i pause -n -o /media/data/video/test%03d.h264 -sg 10000 -s -t 0 &

Code

Description

raspivid

This could also be raspistill or raspiyuv with different options. For more details, visit

http://www.raspberrypi.org/documentation/usage/camera/raspicam/README.md.

-w 800
-h 600

This sets the height and width of the captured image.

-i pause

This starts the playback in a paused state.

-n

This sets the no-preview window. If you want preview, you can remove this flag and add either –f for a fullscreen preview or the ...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY