How to realize Network camera with OpenWRT
This article will explain in detail how OpenWRT implements network cameras, Xiaobian feels quite practical, so share it with you as a reference, I hope you can gain something after reading this article.
Bought a Microsoft LifeCam HD-3000, already past the age of video chat, plug in DIR-505 to play it.
The installation process is surprisingly simple:
opkg updateopkg install kmod-video-uvc
If the installation fails, see if the firmware should be upgraded, see Playing OpenWRT with UMU (Getting Started 5): Upgrading Firmware.
Plug in the camera, check whether/dev/video0 exists, if not, reboot, if it exists, install and run the application:
opkg install mjpg_streamer#Use MJPG format, recommended: mjpg_streamer -i "input_uvc.so -d /dev/video0" -o "output_http.so -p 8080 -w /www/webcam"#Use YUV format, one more-y parameter, slower, not recommended: mjpg_streamer -i "input_uvc.so -y -d /dev/video0" -o "output_http.so -p 8080 -w /www/webcam"
Other optional input parameters, such as:
-r 320 x 240 Set resolution to 320 x 240
-f 10 Set refresh rate
Set user password, add output parameters:
-c user:password
Then open the browser, type http://192.168.1.1:8080/ test, if there is no problem, refer to the instructions on the web page!
About "OpenWRT how to achieve network camera" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.