Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4462707
  • 博文数量: 1148
  • 博客积分: 25453
  • 博客等级: 上将
  • 技术积分: 11949
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 21:14
文章分类

全部博文(1148)

文章存档

2012年(15)

2011年(1078)

2010年(58)

分类: 嵌入式

2011-04-26 13:21:52

本文的copyright归yuweixian4230@163.com 所有,使用GPL发布,可以自由拷贝,转载。但转载请保持文档的完整性,注明原作者及原链接,严禁用于任何商业用途。
作者:yuweixian4230@163.com
博客:
yuweixian4230.blog.chinaunix.net 


ARM9远程视频监控output_viewer.so测试,显示视频在LCD上



当第一次输入:


  1. [root@yuweixian yu]# mjpg_streamer -i "/lib/input_uvc.so -r 320*240" -o "/lib/output_viewer.so"
有错误信息,说明有错误,没有成功因为我在移植 qt的时

候,好像没有移植 usb鼠标 成功, 所以这里 鼠标没有用,只

有触摸屏有用


  1. [root@yuweixian yu]# mjpg_streamer -i "/lib/input_uvc.so -r 320*240" -o

  2. "/lib/output_viewer.so"

  3. MJPG-streamer [974]: starting application
  4. MJPG Streamer Version: svn rev:
  5. MJPG-streamer [974]: MJPG Streamer Version: svn rev:

  6.  i: Using V4L2 device.: /dev/video0
  7. MJPG-streamer [974]: Using V4L2 device.: /dev/video0

  8.  i: Desired Resolution: 320 x 240
  9. MJPG-streamer [974]: Desired Resolution: 320 x 240

  10.  i: Frames Per Second.: 5
  11. MJPG-streamer [974]: Frames Per Second.: 5

  12.  i: Format............: MJPEG
  13. MJPG-streamer [974]: Format............: MJPEG

  14. Adding control for Pan (relative)
  15. UVCIOC_CTRL_ADD - Error: Invalid argument
  16. Adding control for Tilt (relative)
  17. UVCIOC_CTRL_ADD - Error: Invalid argument
  18. Adding control for Pan Reset
  19. UVCIOC_CTRL_ADD - Error: Invalid argument
  20. Adding control for Tilt Reset
  21. UVCIOC_CTRL_ADD - Error: Invalid argument
  22. Adding control for Pan/tilt Reset
  23. UVCIOC_CTRL_ADD - Error: Invalid argument
  24. Adding control for Focus (absolute)
  25. UVCIOC_CTRL_ADD - Error: Invalid argument
  26. mapping control for Pan (relative)
  27. UVCIOC_CTRL_MAP - Error: Invalid argument
  28. mapping control for Tilt (relative)
  29. UVCIOC_CTRL_MAP - Error: Invalid argument
  30. mapping control for Pan Reset
  31. UVCIOC_CTRL_MAP - Error: Invalid argument
  32. mapping control for Tilt Reset
  33. UVCIOC_CTRL_MAP - Error: Invalid argument
  34. mapping control for Pan/tilt Reset
  35. UVCIOC_CTRL_MAP - Error: Invalid argument
  36. mapping control for Focus (absolute)
  37. UVCIOC_CTRL_MAP - Error: Invalid argument
  38. mapping control for LED1 Mode
  39. UVCIOC_CTRL_MAP - Error: Invalid argument
  40. mapping control for LED1 Frequency
  41. UVCIOC_CTRL_MAP - Error: Invalid argument
  42. mapping control for Disable video processing
  43. UVCIOC_CTRL_MAP - Error: Invalid argument
  44. mapping control for Raw bits per pixel
  45. UVCIOC_CTRL_MAP - Error: Invalid argument
  46. MJPG-streamer [974]: starting input plugin /lib/input_uvc.so
  47. MJPG-streamer [974]: starting output plugin: /lib/output_viewer.so (ID: 00)
  48. Couldn't initialize SDL: Unable to open mouse
  49.        这个出错,需要解决,没有鼠标
  50. zc3xx: probe 2wr ov vga 0x0000
  51. [root@yuweixian yu]#

通过这个 http://blogold.chinaunix.net/u3/105675/showart_2149945.html 解决

引用 上述博文中的内容


  1. 6.SDL程序的测试
  2.    SDL的运行时必须指定MOUSE设备.如使用tslib,则用如下命令设置SDL使用tslib.
  3.     export SDL_MOUSEDRV=TSLIB
  4.   如果没有任何输入设备,则环境变量 export SDL_NOMOUSE=1 ,否则初始化会提示
  5.   Couldn't initialize SDL:Unable to open mouse

所以,我在我的开发板上修改

vi /etc/profile 添加

  1. export SDL_MOUSEDRV=TSLIB
  2. export SDL_NOMOUSE=1



第二次输入

  1. [root@yuweixian /]# mjpg_streamer -i "/lib/input_uvc.so -r 320*240" -o "/lib/output_viewer.so "


  1. [root@yuweixian /]# mjpg_streamer -i "/lib/input_uvc.so -r 320*240" -o "/lib/output_viewer.so "



  2. MJPG-streamer [982]: starting application
  3. MJPG Streamer Version: svn rev:
  4. MJPG-streamer [982]: MJPG Streamer Version: svn rev:

  5.  i: Using V4L2 device.: /dev/video0
  6. MJPG-streamer [982]: Using V4L2 device.: /dev/video0

  7.  i: Desired Resolution: 320 x 240
  8. MJPG-streamer [982]: Desired Resolution: 320 x 240

  9.  i: Frames Per Second.: 5
  10. MJPG-streamer [982]: Frames Per Second.: 5

  11.  i: Format............: MJPEG
  12. MJPG-streamer [982]: Format............: MJPEG

  13. Adding control for Pan (relative)
  14. UVCIOC_CTRL_ADD - Error: Invalid argument
  15. Adding control for Tilt (relative)
  16. UVCIOC_CTRL_ADD - Error: Invalid argument
  17. Adding control for Pan Reset
  18. UVCIOC_CTRL_ADD - Error: Invalid argument
  19. Adding control for Tilt Reset
  20. UVCIOC_CTRL_ADD - Error: Invalid argument
  21. Adding control for Pan/tilt Reset
  22. UVCIOC_CTRL_ADD - Error: Invalid argument
  23. Adding control for Focus (absolute)
  24. UVCIOC_CTRL_ADD - Error: Invalid argument
  25. mapping control for Pan (relative)
  26. UVCIOC_CTRL_MAP - Error: Invalid argument
  27. mapping control for Tilt (relative)
  28. UVCIOC_CTRL_MAP - Error: Invalid argument
  29. mapping control for Pan Reset
  30. UVCIOC_CTRL_MAP - Error: Invalid argument
  31. mapping control for Tilt Reset
  32. UVCIOC_CTRL_MAP - Error: Invalid argument
  33. mapping control for Pan/tilt Reset
  34. UVCIOC_CTRL_MAP - Error: Invalid argument
  35. mapping control for Focus (absolute)
  36. UVCIOC_CTRL_MAP - Error: Invalid argument
  37. mapping control for LED1 Mode
  38. UVCIOC_CTRL_MAP - Error: Invalid argument
  39. mapping control for LED1 Frequency
  40. UVCIOC_CTRL_MAP - Error: Invalid argument
  41. mapping control for Disable video processing
  42. UVCIOC_CTRL_MAP - Error: Invalid argument
  43. mapping control for Raw bits per pixel
  44. UVCIOC_CTRL_MAP - Error: Invalid argument
  45. MJPG-streamer [982]: starting input plugin /lib/input_uvc.so
  46. MJPG-streamer [982]: starting output plugin: /lib/output_viewer.so (ID: 00)
  47. zc3xx: probe 2wr ov vga 0x0000

这里就没有了错误,LCD上也实时显示了 摄像头的视频了。。



下面是我按下了 ctrl+c  中断后,结束程序
  1. ^Csetting signal to stop
  1. MJPG-streamer [982]: setting signal to stop

  2.  i: cleaning up ressources allocated by input thread
  3. MJPG-streamer [982]: cleaning up ressources allocated by input thread

  4.  o: cleaning up ressources allocated by worker thread
  5. MJPG-streamer [982]: cleaning up ressources allocated by worker thread

  6. force cancellation of threads and cleanup resources
  7. MJPG-streamer [982]: force cancellation of threads and cleanup resources

  8. done
  9. MJPG-streamer [982]: done

  10. [root@yuweixian /]#













阅读(2114) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~