请尊重别人的劳动成果 转载请务必注明出处
昨天几经周折把mjepg streamer移植好,蛋疼的realink 还在使用2.6.21的内核,gcc是3.4.2 搞得移植mjepg streamer 花费了不少功夫。
将编译出来的so动态库文件以及www 网页文件一并放进文件系统,打包下载。系统启动后执行命令:
mjpg_streamer
# cd /
# ls
media var usr opt sys init tmp bin proc
etc_ro home dev sbin mnt lib etc www
# c www/
/bin/sh: c: not found
# ls
media var usr opt sys init tmp bin proc
etc_ro home dev sbin mnt lib etc www
# cd www
# ls
java.html cambozola.jar fix.css
java_control.html functions.js sidebarbg.gif
stream_simple.html index.html static.html
control.htm bodybg.gif stream.html
favicon.png style.css static_simple.html
javascript_simple.html LICENSE.txt example.jpg
favicon.ico javascript.html java_simple.html
# cd /opt/
# ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -w ./www"
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: MJPEG
o: www-folder-path...: ./www/
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
Ignoring empty buffer ...
Ignoring empty buffer ...
Ignoring empty buffer ...