基於mini2440的WEB遠程視頻實時監控系統

基於mini2440的WEB遠程視頻實時監控系統

 2014年3月2號

1 本項目是基於申嵌實踐項目中的一個


  由於官方提供的(光盤)編譯之後的代碼有問題,在這花費了不少的時間,再次寫這篇博客,希望大家在以後的學習中少走彎路,

   參考:http://blog.csdn.net/opencpu/article/details/7016904

2   開發環境;

     編譯器版本 :4.3.2

    ubuntu 12.04

     攝像頭中星微Z301p(YUYV) 和 Pixarrt()  (這個免驅動的,因爲內核2.6以後已經包含了功能驅動,選中相應的模塊編進內核即可)


3     第一需要首先確定攝像頭可以被正常的識別到

顯示信息:

[root@FriendlyARM /]# usb 1-1: USB disconnect, address 2
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=093a, idProduct=2700
usb 1-1: New USB device strings: Mfr=16, Product=96, SerialNumber=0
usb 1-1: Product: USB2.0_Camera
usb 1-1: Manufacturer: PixArt Imaging Inc.
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device USB2.0_Camera (093a:2700)

Pixarrt() 攝像頭正常識別


[root@FriendlyARM /]# usb 1-1: new full speed USB device using s3c2410-ohci and address 2
usb 1-1: New USB device found, idVendor=0ac8, idProduct=301b
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: PC Camera
usb 1-1: Manufacturer: Vimicro Corp.
usb 1-1: configuration #1 chosen from 1 choice
gspca: probing 0ac8:301b
zc3xx: probe 2wr ov vga 0x0000
zc3xx: probe sensor -> 0011
zc3xx: Find Sensor HV7131R(c)
gspca: probe ok

中星微攝像頭正常識別


4 測試 Pixarrt() 攝像頭

運行./start_uvc.sh

打印錯誤信息:

[root@FriendlyARM mjpg-streamer-mini2440-read-only]# ./start_uvc.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
Unable to set format: Invalid argument
 Init v4L2 failed !! exit fatal
 i: init_VideoIn failed

[root@FriendlyARM mjpg-streamer-mini2440-read-only]# ./start_uvc_yuv.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
Unable to set format: Invalid argument
 Init v4L2 failed !! exit fatal
 i: init_VideoIn failed

[root@FriendlyARM mjpg-streamer-mini2440-read-onlyMPEG]# ./start_uvc.sh
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
正常顯示



[root@FriendlyARM mjpg-streamer-mini2440-read-onlyMPEG]# ./start_uvc_yuv.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
Unable to set format: Invalid argument
 Init v4L2 failed !! exit fatal
 i: init_VideoIn failed

[root@FriendlyARM mjpg-streamer-mini2440-read-onlyYUV]# ./start_uvc.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
Unable to set format: Invalid argument
 Init v4L2 failed !! exit fatal
 i: init_VideoIn failed

[root@FriendlyARM mjpg-streamer-mini2440-read-onlyYUV]# ./start_uvc_yuv.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
Unable to set format: Invalid argument
 Init v4L2 failed !! exit fatal
 i: init_VideoIn failed


[root@FriendlyARM mjpg-streamer-mini2440-read-only301p]# ./start_uvc.sh
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

正常顯示



[root@FriendlyARM mjpg-streamer-mini2440-read-only301p]# ./start_uvc_yuv.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
Unable to set format: Invalid argument
 Init v4L2 failed !! exit fatal
 i: init_VideoIn failed

5 測試測試 中星微攝像頭

[root@FriendlyARM mjpg-streamer-mini2440-read-only]# ./start_uvc.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
 o: www-folder-path...: ./www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled
zc3xx: probe 2wr ov vga 0x0000

WEB顯示花屏:說明文件格式不正確

[root@FriendlyARM mjpg-streamer-mini2440-read-only]# ./start_uvc_yuv.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
 o: www-folder-path...: ./www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled
zc3xx: probe 2wr ov vga 0x0000

WEB顯示花屏:說明文件格式不正確


[root@FriendlyARM mjpg-streamer-mini2440-read-onlyMPEG]# ./start_uvc.sh
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
 Pixel format is unavailable, using JPEG
WARNING: unknown frame format, expect wiered results!
 o: www-folder-path...: ./www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled
zc3xx: probe 2wr ov vga 0x0000

WEB顯示花屏:說明文件格式不正確

[root@FriendlyARM mjpg-streamer-mini2440-read-onlyMPEG]# ./start_uvc_yuv.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
 Pixel format is unavailable, using JPEG
WARNING: unknown frame format, expect wiered results!
 o: www-folder-path...: ./www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled
zc3xx: probe 2wr ov vga 0x0000

WEB顯示花屏:說明文件格式不正確

[root@FriendlyARM mjpg-streamer-mini2440-read-onlyYUV]# ./start_uvc.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
 Pixel format is unavailable, using JPEG
WARNING: unknown frame format, expect wiered results!
 o: www-folder-path...: ./www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled
zc3xx: probe 2wr ov vga 0x0000

WEB顯示花屏:說明文件格式不正確

[root@FriendlyARM mjpg-streamer-mini2440-read-onlyYUV]# ./start_uvc_yuv.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
 Pixel format is unavailable, using JPEG
WARNING: unknown frame format, expect wiered results!
 o: www-folder-path...: ./www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled
zc3xx: probe 2wr ov vga 0x0000

WEB顯示花屏:說明文件格式不正確

[root@FriendlyARM mjpg-streamer-mini2440-read-only301p]# ./start_uvc.sh
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
zc3xx: probe 2wr ov vga 0x0000

正常顯示



[root@FriendlyARM mjpg-streamer-mini2440-read-only301p]# ./start_uvc_yuv.sh
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: YUV
 i: JPEG Quality......: 80
 o: www-folder-path...: ./www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled
zc3xx: probe 2wr ov vga 0x0000


WEB顯示花屏:說明文件格式不正確













發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章