Usb camera

From WRTnode Wiki Site
Jump to: navigation, search
This page contains changes which are not marked for translation.

Other languages:
English 100% • ‎中文(中国大陆)‎ 100%

hardware:
WRTnode
The 'special' USB cable customized for WRTnode or WRTnode standard shield
Usb camera
software:
WRTnode sdk or openwrt trunk
configure:

make menoconfig  
Multimedia      --->   <*> mjpg-streamer -- >     [*]   Install input uvc plugin
                                                  [*]   Install output http plugin
Kernel modules  --->   Video Support  --->        <*> kmod-video-core......
                                                  <*>   kmod-video-uvc....
                                                  -*-   kmod-video-videobuf2.

compile:

make V=s

flash firmware then do the following:
The first step: is there a video equipment

ls /dev

The second step: to view the parameters of the mjpg_streamer

mjpg_streamer --help

Video1.png

The third step: open the usb camera

mjpg_streamer -i "input_uvc.so -f 30 -r 1280*720" -o "output_http.so -p 8080"

Video2.png

The default device is video0, if your device is not video0, you need to use the -d specify your device:

mjpg_streamer -i "input_uvc.so -d /dev/video1 -f 30 -r 1280*720" -o "output_http.so -p 8080"

-f frames per second
-r The resolution of the video equipment
-p network port number
The fourth step: open the VLC player,Ctrl+n to open the window "open media"
The default IP address is 192.168.8.1
Video3.png

Video4.png