Platform: MINI2440
System: Linux-2.6.32.2
Development: Ubuntu
Webcam: USB camera
Browser: Google Chrome
1. Compile Mjpeg-stream:
Source code: http://download.csdn.net/detail/wu20093346/7848285
Unzip the Mjpg-streamer.zip and go to the folder Mjpg-streamer:
# make CC=ARM-LINUX-GCC
To generate the Mjpeg-stream executable file.
Copy the Mjpg-streamer folder to the board
2. Set up the network: Change 2440 IP information to the same network segment as the current network
① modify/etc/eth0-setting:vi/etc/eth0-setting
② Restart the network:/etc/init.d/ Ifconfig-eth0 Restart
3. Run test: Run the start_uvc.sh
#/start_uvc.sh
In the folder if the following error occurs:
Pixel format is unavailable, using JPEG
Should never arrive exit fatal!!
I:init_videoln failed
Then compile the run attempt after modifying the source code, and modify the following:
Open PLUGINS/INPUT_UVC/V4L2UVC.C, delete the IF statement from rows 167 through 173, and repeat the steps above
4. Test Web page: The URL depends on the actual situation
Enter http://172.20.21.93:8080/stream_simple.html in Google Chrome to see real-time video streaming
Web browsing Remote network video