Setting up live streaming

We can now move to the next part: configuring live camera streaming on the Arduino Yun. This is something we already did in Module 3 Chapter 6, Building a Cloud Spy Camera, so we'll only look at the most important parts here. Refer to the Hardware configuration section if you need to know how to configure your Yun again.

First, connect to your Yun using the following command:

ssh root@arduinoyun.local

Then, launch camera streaming with the following command:

mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 25" -o "output_http.so -p 8080 -w /www/webcam" &

You can check that the streaming is working at the following page http://arduinoyun.local:8080.

Get Arduino: Building exciting LED based projects and espionage devices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.