Package untuk usb web camera
Kernel Modules
USB Support
- [*] kmod-usb-video
Video Support
- [*] kmod-video-core
- [*] kmod-video-uvc
Multimedia
- [*] ffmpg
[*] mjpg-streamer
Berikut Konfigurasi untuk stream web camera.
webcam yang support di OpenWRT
1. http://linux-uvc.berlios.de/
2. http://mxhaard.free.fr/spca5xx.html
Tambahan module kernel disesuaikan dengan jenis webcam nya
- kmod-video-gspca-core – 2.6.32.10-1
- kmod-video-gspca-zc3xx – 2.6.32.10-1 (tergantung jenis videonya, lihat list gspca)
- kmod-video-uvc – 2.6.32.10-1 (epro type WC-E329, lihat list uvc video)
berikut check interface v4l
gspca: probing 0ac8:301b
zc3xx: probe 2wr ov vga 0x0000
zc3xx: probe 3wr vga 1 0x0000
zc3xx: probe 3wr vga 2 0x0000
zc3xx: Sensor UNKNOW_0 force Tas5130
gspca: probe ok
root@OpenWrt:/# ls -l /dev/video0
crw-r–r– 1 root root 81, 0 Jan 1 00:02 /dev/video0
interface v4l sudah terinstal.
tambahkan package: motion atau mjpeg_stream untuk stream http atau hanya untuk snapshot aja.
Jika untuk snapshot. buat direktory khusus di stick USB, misalkan: /mnt/falsh (lihat file sharing samba).
Berikut konfigurasi untuk streamer.
1. MOTION
jika packagenya belum ada,
opkg install motion
edit file /etc/motion.conf
############################################################
# Live Webcam Server
############################################################
# Restrict webcam connections to localhost only (default: on)
webcam_localhost off
############################################################
# HTTP Based Control
############################################################
# Restrict control connections to localhost only (default: on)
control_localhost off
open web browser client
url: http://192.168.1.1:8081 , ganti 192.168.1.1 sesuai ip address streamer server
2. MJPG_stream.
jika packagenya belum ada,
opkg install mjpg-streamer
file konfigurasi: /etc/config/mjpg-stream
config mjpg-streamer core
option device “/dev/video0”
option resolution “640×480”
option fps “5”
option port “8080”
option enabled “true”
mjpg_streamer -i “input_uvc.so -d /dev/video0 -r 320×240 -f 30 -y” -o “output_http.so”
mjpg_streamer -i “input_uvc.so -d /dev/video0 -y” -o “output_http.so”
check stream lewat http client (web browser)
url:http://192.168.1.1:8080/?action=stream (untuk stream http) atau
url:http://192.168.1.1:8080/?action=snapshot (untuk liat snapshot pic)
ganti 192.168.1.1 sesuai ip address streamer server
See my result: