Remotely browse through the Web and control the camera on 6410

Source: Internet
Author: User

to achieve remote browsing and control of the camera via the Web on Linux, you can use an open source software Mjpg-streamer, and early in the world, there have been enthusiasts mjpg-streamer transplanted to mini2440 and run, and create an open source project named mjpg-streamer-mini2440, the project's URL is:http://code.google.com/p/mjpg-streamer-mini2440/

3.2 Getting and modifying the source code of Mjpeg-stream
Create a directory under the/opt/mini6410 directory Webcamera as our working directory for this migration work, and enter the following command to create:
# Mkdir–p/opt/mini6410/webcamera
Go to the Webcamera directory and download the latest mjpg-streamer-mini2440 project source code via SVN:
# cd/opt/mini6410/webcamera/
# svn checkout http://mjpg-streamer-mini2440.googlecode.com/svn/trunk/ Mjpg-streamer-mini2440-read-only
Enter the following command to mjpg-streamer-mini2440-read-only the directory:
# CD Mjpg-streamer-mini2440-read-only

Modify according to the following instructions:
1) Edit the start_uvc_yuv.sh with VI, the content:
./mjpg_streamer-o "output_http.so-w./www"-I "input_uvc.so-y"
Modified into
./mjpg_streamer-o "output_http.so-w./www"-i "input_uvc.so-y-d/dev/video2"
2) Edit makefile with VI
A) at clean: delete make-c plugins/input_s3c2410 [email protected]
b) then delete the following:
Input_s3c2410.so:mjpg_streamer.h Utils.h
Make-c plugins/input_s3c2410 all cc=$ (CC)

CP plugins/input_s3c2410/input_s3c2410.so.
c) go to package: Delete the following two lines:
input_s3c2410.so \
start_s3c2410.sh \

Note: If the source code cannot be downloaded, it can be found in the "Development documentation and tutorials \ topic 04 via web remote browsing and control of the camera \ Source code on Mini6410" in Mini6410 CD A. The file name is: mjpg-streamer-mini2440-read-only.tar.gz.

3.3 Cross-compiling Mjpeg-stream
Execute the following command to compile and package:
# cd/opt/mini6410/webcamera/mjpg-streamer-mini2440-read-only/
# Export CC=ARM-LINUX-GCC
# make
# Make Package
Mjpg-streamer-mini2440-bin.tar.gz is generated in the current directory and is copied into the SD card.
Note: If the compilation fails, you can find our compiled executable in the "Development documentation and tutorials \ feature 04 Web remote browsing and control camera \ Bin on Mini6410" directory in Mini6410 CD A. The file name is mjpg-streamer-mini6410-bin.tar.gz.

3.4 Installing the Mjpeg-stream on the Mini6410
Plug the SD card into the Development Board and install the Mjpeg-stream by entering the following command on the terminal of the Development Board:
@# Mkdir/mjpg-streamer
@# Cd/mjpg-streamer
@# Tar xvzf/sdcard/mjpg-streamer-mini2440-bin.tar.gz

3.5 running the Mjpeg-stream on Mini6410
Start Mjpeg-stream by entering the following command on the terminal of the Development Board:
@# Cd/mjpg-streamer
@#./start_uvc_yuv.sh
At this point, you can see the following output information at the terminal, which indicates that the Mjpeg-stream program has been successfully started:
MJPG streamer Version.: 2.0
I:using v4l2 device.:/dev/video2
i:desired resolution:640 x 480
I:frames Per Second.: 5
I:format ...: yuyv...
I:jpeg quality ...: 80
O:www-folder-path ...:/www/
O:http TCP Port ...: 8080
O:username:password.: Disabled
O:commands .....: Enabled

3.6 Browsing images on the camera on your computer
On the computer, open a Web browser, enter in the browser's address bar: http://192.168.1.230:8080/stream_simple.html can see the camera's dynamic screen, as shown in:

Note: The default IP address of the development Board is 192.168.1.230, if you have modified the IP address, then enter the appropriate IP address according to the actual situation.

Remotely browse through the Web and control the camera on 6410

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.