WebCam in OpenWrt

Auf der Stufe der Konfiguration ist es notwendig folgende Module auszuwählen:
Kernel modules:
Video Support:
<M> kmod-video-core

Weiter ist die Art der Kamera, welche geplant ist anzuschließen, zu beachten. Ich habe eine UVC-Kamera, deshalb wähle ich den Modul kmod-video-uvc aus. Für die Bestimmung der Art der Kamera können wir diese an den Computer anschließen und die Ausgabe von dmesg prüfen.

$ dmesg
usb 1-5: new high speed USB device using ehci_hcd and address 20
usb 1-5: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device USB 2.0 PC Camera (058f:3881)
input: USB 2.0 PC Camera as /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/input/input12

<M> kmod-video-uvc
Multimedia:
<M> mjpg-streamer

* Ich sollte die Firmware für den korrekten Betrieb aktualisieren

Installieren:

root@OpenWrt:/# opkg install kmod-video-core kmod-video-uvc mjpg-streamer
Installing kmod-video-core (2.6.36-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/kmod-video-core_2.6.36-1_brcm47xx.ipk.
Installing kmod-i2c-core (2.6.36-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/kmod-i2c-core_2.6.36-1_brcm47xx.ipk.
Installing kmod-video-uvc (2.6.36-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/kmod-video-uvc_2.6.36-1_brcm47xx.ipk.
Installing mjpg-streamer (r94-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/mjpg-streamer_r94-1_brcm47xx.ipk.
Installing libjpeg (6b-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/libjpeg_6b-1_brcm47xx.ipk.
Configuring libjpeg.
Configuring kmod-i2c-core.
Configuring kmod-video-core.
Configuring kmod-video-uvc.
Configuring mjpg-streamer.

Schließen wir die Kamera an und überprüfen die Ausgabe des Befehls:

root@OpenWrt:/# ls /dev/v*
/dev/video0

Setzen wir ein:

root@OpenWrt:/# mjpg_streamer -i "input_uvc.so -d /dev/video0 -y" -o "output_http.so"
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: YUV
i: JPEG Quality......: 80
o: www-folder-path...: disabled
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled

Machen wir den Browser auf und prüfen:
Videos:
http://192.168.1.1:8080/?action=stream
Fotos:
http://192.168.1.1:8080/?action=snapshot


Bestellen Sie eine Webcam bei uns:

Веб камера