Hardware Reference
In-Depth Information
10. If you'd really like to run Motion at the same time, first start MJPG-streamer
with a lower frame rate:
pi@raspberrypi ~ $ mjpg_streamer -b -i "input_uvc.so -r 480x270 -f
15" -o "output_http.so -w /usr/www"
Then start Motion and make it run in the background with the & character:
pi@raspberrypi ~ $ motion &
Now make the avconv utility read the camera stream as input from
Motion instead:
pi@raspberrypi ~ $ avconv -f mjpeg -r 1 -i "http://localhost:8081"
-f flv [RTMP URL]/[Stream Key]
Turning your TV on or off using the Pi
For this example, we are relying on a technology called Consumer Electronics
Control ( CEC ), which is a feature of the HDMI standard to send control messages
to your home electronics equipment.
To help us send these messages, we'll need a software package called libCEC.
Unfortunately, the libCEC version that is currently part of the Raspbian package
repository doesn't actually support the Raspberry Pi, so we'll need to build our
own software from source code. Follow these steps to build libCEC:
1.
Before building the software, we will need to add some developer headers
and code libraries that libCEC relies on:
pi@raspberrypi ~ $ sudo apt-get install autoconf libtool libudev-
dev liblockdev1-dev
2.
Next, we check out the libCEC source code from the project's Git repository:
pi@raspberrypi ~ $ git clone git://github.com/Pulse-Eight/libcec.
git
3.
Now we enter the source directory and build the software using the
following sequence of commands:
pi@raspberrypi ~ $ cd libcec
pi@raspberrypi ~/libcec $ ./bootstrap
pi@raspberrypi ~/libcec $ ./configure --prefix=/usr --with-rpi-
include-path=/opt/vc/include --with-rpi-lib-path=/opt/vc/lib
pi@raspberrypi ~/libcec $ make
pi@raspberrypi ~/libcec $ sudo make install
 
Search WWH ::




Custom Search