Method - 1
1. Plug-in the USB camera to LinkIt Smart 7688 Duo.
2. Login to the Web UI then go to "Services" -> "MJPG-streamer".
3. Select "Enable MJPG-streamer" then click on "Save & Apply".
4. The image captured by the USB camera will be display. Note that it's a snapshot.
5. To view the video, launch a web browser and enter the IP address assigned to LinkIt Smart 7688 Duo follow by ":8080".
Method - 2
1. Login to OpenWRT using Putty.
2. Check whether mjpg_streamer is installed.
root@mylinkit:~# mjpg_streamer -h
-----------------------------------------------------------------------
Usage: mjpg_streamer
-i | --input "<input-plugin.so> [parameters]"
-o | --output "<output-plugin.so> [parameters]"
[-h | --help ]........: display this help
[-v | --version ].....: display version information
[-b | --background]...: fork to the background, daemon mode
-----------------------------------------------------------------------
Example #1:
To open an UVC webcam "/dev/video1" and stream it via HTTP:
mjpg_streamer -i "input_uvc.so -d /dev/video1" -o "output_http.so"
-----------------------------------------------------------------------
Example #2:
To open an UVC webcam and stream via HTTP port 8090:
mjpg_streamer -i "input_uvc.so" -o "output_http.so -p 8090"
-----------------------------------------------------------------------
Example #3:
To get help for a certain input plugin:
mjpg_streamer -i "input_uvc.so --help"
-----------------------------------------------------------------------
In case the modules (=plugins) can not be found:
* Set the default search path for the modules with:
export LD_LIBRARY_PATH=/path/to/plugins,
* or put the plugins into the "/lib/" or "/usr/lib" folder,
* or instead of just providing the plugin file name, use a complete
path and filename:
mjpg_streamer -i "/path/to/modules/input_uvc.so"
-----------------------------------------------------------------------
3. Launch mjpg_streamer
root@mylinkit:~# mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 25"
-o "output_http.so -p 8080 -w /www/webcam"
MJPG Streamer Version: svn rev: exported
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 25
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
o: www-folder-path...: /www/webcam/
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
4. Check the result
Launch a web browser, enter the IP address of LinkIt Smart 7688 Duo and add the ":8080" to the end. For my setting, I entered 192.168.2.5:8080.
To stop mjpg_streamer, hit "ctrl-c" in putty terminal.
Note,
The MJPG-streamer option in the administration console doesn't need to be enabled for Method - 2 to work.
Reference:
Webcam streaming with LinkIt Smart 7688
No comments:
Post a Comment