Install mjpg-streamer

mkdir /mnt/sda1/pic
nano /etc/init.d/mjpg-streamer  
        --output " --www $www --port $port" \
		--output " -f /mnt/sda1/pic -d 10000"
/etc/init.d/mjpg-streamer restart

"-d 10000" means every 10 seconds save file.

access video via browser from http://arduino.local:8080

root@Arduino:/mnt/sda1/pic# ls /mnt/sda1/pic/*


Write comment (0 Comments)

Setup mjpg-streamer

nano /etc/config/mjpg-streamer
        option port             "8080"
        option password         "admin:password"
nano /etc/init.d/mjpg-streamer
        config_get port "$s" 'port'
        config_get password "$s" 'password'
        [ -c "$device" ] || {
                --device $device --fps $fps --resolution $resolution" \
                --output " -c $password --www $www --port $port"
/etc/init.d/mjpg-streamer stop
/etc/init.d/mjpg-streamer start

login http://arduino.local:8080/  with admin/password.


Write comment (0 Comments)

Install Webcam driver: 

UVC webcam

Non UVC Camera

Install mjpg-streamer:

opkg update
opkg install mjpg-streamer
nano /etc/config/mjpg-streamer
config mjpg-streamer core	
option enabled		"1"	
option device		"/dev/video0"	
option resolution	"640x480"	
option fps		"30"	
option www		"/www/webcam"	
option port		"8080"
/etc/init.d/mjpg-streamer enable
/etc/init.d/mjpg-streamer restart

access video via browser from http://arduino.local:8080


Write comment (0 Comments)

Remove old version:

opkg remove imagemagick-jpeg
opkg remove imagemagick-png
opkg remove imagemagick-tiff
opkg remove imagemagick-tools
opkg remove imagemagick

Install new version:

cd /mnt/sda1
wget -O ipk.tar.gz --no-check-certificate
tar -zxvf ipk.tar.gz
rm  ipk.tar.gz
cd ipk
opkg install imagemagick_6.7.8-3_ar71xx.ipk
opkg install imagemagick-tiff_6.7.8-3_ar71xx.ipk
opkg install imagemagick-png_6.7.8-3_ar71xx.ipk
opkg install imagemagick-jpeg_6.7.8-3_ar71xx.ipk
opkg install imagemagick-tools_6.7.8-3_ar71xx.ipk

Install font:

opkg update
opkg install librrd
opkg files librrd |grep ttf

Download test image:

wget -O yun.png --no-check-certificate

Impress text to image:

convert  yun.png -fill white -box '#00770080' -gravity \
South -font /usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf -pointsize \
28 -annotate +0+5 '   Arduino Yún  ' /www/yunlabel.png

View image from browser:


Write comment (0 Comments)


Expand the Storage at Yun

Languages Supported by Yun

Backup and Recover

Network and Yun

Hardware & Yun

OpenWrt-SDK & Yun