In addition to capturing still images, we can use our Yun to display a video stream transmitted over the network.
Among the solutions available for Linux, I chose to use mjpg-streamer (official site), an application that is able to capture video from your webcam and make it available via a web interface.
The installation package for mjpg-streamer is not yet available in the official Linino repository, but thanks to two users of the Arduino forum (fibasile that compiled it and MadScience that made it available on his website) you can however install it:
move to the /tmp folder and download the package using wget:
install the package with opkg:
opkg install mjpg-streamer.ipk
Edit the /etc/config/mjpg-streamer file and change the enabled option to 1. In the same file you can change also resolution, frame rate…:
Now you can start the program:
Point your browser to the Yun’s IP Address and to port 8080 to open the web interface of mjpg-streamer:
Choosing the Stream menu item you can watch the live video coming from your webcam:
Pages: 1 2