Live streaming from the spy camera

We are now going to end this chapter with a shorter project: using the camera to stream live video in a web browser. This stream will be accessible from any device connected to the same Wi-Fi network as Yun.

To start with this project, log in to your Yun using the following command (by changing the name of the board with the name of your Yun):

ssh root@arduinoyun.local

Then, type the following:

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

This will start the streaming from your Yun. You can now simply go the URL of your Yun, and add :8080 at the end, for example, http://arduinoyun.local:8080.

You will arrive at the streaming interface:

You can now stream ...

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.