Discussion

Using USB Camera @Banana Pi(Local Test)

9 7865
Post Last Edited by tony_zhang at 2014-5-7 16:29

Post Last Edited by tony_zhang at 2014-5-7 15:42

Image: RP for BP.
USB Camera: Bluelover S11 (20RMB).

1. First check the usb camera has been identified by your Banana Pi:
  1. pi@raspberrypi ~ $ lsusb
  2. Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
  3. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  4. Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  5. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  6. Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  7. [color=Red]Bus 001 Device 003: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera[/color]
  8. Bus 001 Device 004: ID 062a:4101 Creative Labs

  9. pi@raspberrypi ~ $ ls /dev/video*
  10. [color=Red]/dev/video0[/color]
Copy the Code
2.Install mplayer:
  1. sudo apt-get install mplayer
Copy the Code
3. Start the program to use USB camera to capture video:
  1. sudo mplayer tv://
Copy the Code
1.png
Nice!

Edited by aki_il_barone at Dec 21, 2015 07:19

I have a problem with the library libbcm_host.so : mplayer: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
This is what happens to me:



francesco@bananapi0 ~ $ lsusb
Bus 002 Device 002: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 005 Device 002: ID 2341:0001 Arduino SA Uno (CDC ACM)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
francesco@bananapi0 ~ $ ls /dev/video*
/dev/video0

francesco@bananapi0 ~ $ sudo apt-get  install mplayer
Reading package lists... Done
Building dependency tree      
Reading state information... Done
mplayer is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

francesco@bananapi0 ~ $ mplayer tv://
mplayer: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory
francesco@bananapi0 ~ $

francesco@bananapi0 ~ $ cat /etc/issue
Raspbian GNU/Linux 7 \n \l

Where do you use libbcm_host.so  ?

when I use mplayer tv: //

francesco@bananapi0 ~ $ mplayer tv://       [ENTER]

mplayer: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory

Please help me!

I think the usb camera do not need the libbcm_host.so . Try to appoint the video0 device and v4l2 driver:
  1. mplayer -tv driver=v4l2:device=/dev/video0
Copy the Code

equals does not find libbcm_host.so (what is?).

the result is the same even if I type only player:
francesco@bananapi0 ~ $ mplayer       [ENTER]

mplayer: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory

The libbcm_host library seems to be Raspberry Pi specific.

I'm sure you're using the distro from Lemaker.
which kernel version?

uname -a [enter]
Linux bananapi0 3.4.103 #1 SMP PREEMPT Thu Dec 18 13:07:12 CST 2014 armv7l, GNU/Linuz

You have to log in before you can reply Login | Sign Up

Points Rules