How to get USB camera working on Beagle Board

478 views
Skip to first unread message

sri

unread,
Jun 19, 2009, 2:06:06 AM6/19/09
to Beagle Board
Hi ,

I have connected Logitech camera to the USB hub, BB is detecting the
camera when board is booted and lsusb , dmesg | tail commands also
displaying the device.Here I am confused about camera is working or
not if works how to view the captured video on beagle board.


I have downloaded the files from the below source

http://www.angstrom-distribution.org/demo/beagleboard/ or Do I
need to build rootfs on my own.???????

1) Partitioned the hard disk (FAT 32, Ext3 formats)
2)Copied MLO,uImage.bin(2.6.29),U-boot bin into FAT 32 file system
3) Untar the Angstrom image into the ext 32 partition
4) unzip the modules file into /lib/modules in ext 32 partition
5) setting environmental variable

Angstrom is loaded,
Mouse and Keyboard are working fine.


Please suggest me if I have done any mistake in above procedure


Thank you

rajvi shah

unread,
Jun 19, 2009, 3:00:08 AM6/19/09
to beagl...@googlegroups.com
Do you use a self powered USB Hub to connect mouse and keyboard? Coz
on my hub it's not working ... :(

djlewis

unread,
Jun 19, 2009, 11:17:43 AM6/19/09
to Beagle Board
Hello, Perhaps I can give you what works for me. I use a Logitech
QuickCam Chat USB webcam (non-UVC).

Don Lewis
beagleboard irc (djlewis)

here is dmesg when webcam is plugged in.
>dmesg | tail -----------------------------------------------------
usb 2-2.4: new full speed USB device using ehci-omap and address 6
usb 2-2.4: configuration #1 chosen from 1 choice
Linux video capture interface: v2.00
gspca: main v2.4.0 registered
gspca: probing 046d:08af
zc3xx: probe 2wr ov vga 0x0000
zc3xx: probe sensor -> 11
zc3xx: Find Sensor HV7131R(c)
gspca: probe ok
usbcore: registered new interface driver zc3xx
zc3xx: registered

>lsusb ------------------------------------------------------
Bus 002 Device 005: ID 15a9:0004
Bus 002 Device 006: ID 046d:08af Logitech, Inc.
-----------------------------------------------------------------
root@beagle:~# uname -a
Linux beagle 2.6.29-omap1 #1 Fri May 8 12:10:53 PDT 2009 armv7l GNU/
Linux


root@beagle:~# lsmod ----------------------------------------

Module Size Used by
gspca_zc3xx 46400 0
gspca_main 22984 1 gspca_zc3xx
videodev 38116 1 gspca_main
v4l1_compat 14296 1 videodev
omaplfb 8228 0

Three working commands to test:

Works on sony-desktop and Beagle sakoman build ( my current is
build date 05092009)

mplayer tv:// -tv driver=v4l2:width=320:height=240:noaudio:device=/dev/
video0 -fps 15 -vo xv


Works great on Beagle: (-fps optional)
mplayer http://weather.djlewis.us/videolastday.wmv -fps 10

James webcam test: workd on sony-desktop and Beagle sakoman build
DISPLAY=:0.0 mplayer -tv width=320:height=240:driver=v4l2 -fps 15 tv://
----------------------------------------------------------------------------------------------------
Output of each of the above: ( for reference )
----------------------------------------------------------------------------------------------------
root@beagle:/# mplayer tv:// -tv
driver=v4l2:width=320:height=240:noaudio:device
=/dev/video0 -fps 15 -vo xv
MPlayer dev-SVN-r28346-4.3.3 (C) 2000-2009 MPlayer Team
CPU: ARM

Playing tv://.
Cache fill: 0.00% (0 bytes)
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olsch...@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: USB Camera (046d:08af)
Capabilites: video capture read/write streaming
supported norms:
inputs: 0 = zc3xx;
Current input: 0
Current format: unknown (0x4745504a)
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: Cannot get fps
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Audio: no sound
FPS forced to be 15.000 (ftime: 0.067).
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar
422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x783b98]BICUBIC scaler, from yuv422p to yuv420p using C
[swscaler @ 0x783b98]using C scaler for horizontal scaling
[swscaler @ 0x783b98]using 1-tap C "scaler" for vertical scaling (YV12
like)
[swscaler @ 0x783b98]320x240 -> 320x240
VO: [xv] 320x240 => 320x240 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
v4l2: ioctl set mute failed: Invalid argument
v4l2: 40 frames successfully processed, -39 frames dropped.

Exiting... (Quit)
root@beagle:/# mplayer http://weather.djlewis.us/videolastday.wmv -
fps 10
MPlayer dev-SVN-r28346-4.3.3 (C) 2000-2009 MPlayer Team
CPU: ARM

Playing http://weather.djlewis.us/videolastday.wmv.
Resolving weather.djlewis.us for AF_INET6...
Couldn't resolve name for AF_INET6: weather.djlewis.us
Resolving weather.djlewis.us for AF_INET...
Connecting to server weather.djlewis.us[216.35.196.35]: 80...
Cache size set to 8192 KBytes
Cache fill: 6.74% (565730 bytes)
ASF file format detected.
[asfheader] Video stream found, -vid 1
VIDEO: [WMV3] 640x480 24bpp 1000.000 fps 250.0 kbps (30.5 kbyte/
s)
==========================================================================
Requested video codec family [wmv9dmo] (vfm=dmo) not available.
Enable it at compilation.
Requested video codec family [wmvdmo] (vfm=dmo) not available.
Enable it at compilation.
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffwmv3] vfm: ffmpeg (FFmpeg WMV3/WMV9)
==========================================================================
Audio: no sound
FPS forced to be 10.000 (ftime: 0.100).
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar
YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V: 20.9 240/240 42% 6% 0.0% 0 0 0%

Exiting... (End of file)
root@beagle:/# DISPLAY=:0.0 mplayer -tv
width=320:height=240:driver=v4l2 -fps 15
tv://
MPlayer dev-SVN-r28346-4.3.3 (C) 2000-2009 MPlayer Team
CPU: ARM

Playing tv://.
Cache fill: 0.00% (0 bytes)
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olsch...@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: USB Camera (046d:08af)
Capabilites: video capture read/write streaming
supported norms:
inputs: 0 = zc3xx;
Current input: 0
Current format: unknown (0x4745504a)
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: Cannot get fps
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Audio: no sound
FPS forced to be 15.000 (ftime: 0.067).
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar
422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x783b98]BICUBIC scaler, from yuv422p to yuv420p using C
[swscaler @ 0x783b98]using C scaler for horizontal scaling
[swscaler @ 0x783b98]using 1-tap C "scaler" for vertical scaling (YV12
like)
[swscaler @ 0x783b98]320x240 -> 320x240
VO: [xv] 320x240 => 320x240 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
v4l2: ioctl set mute failed: Invalid argument
v4l2: 31 frames successfully processed, -30 frames dropped.

Exiting... (Quit)
root@beagle:/#


----------------------------------------------------------------------------------------------------
On Jun 19, 1:06 am, sri <srikanthparup...@gmail.com> wrote:
> Hi ,
>
> I have connected Logitech camera to the USB hub, BB is detecting the
> camera when board is booted and  lsusb , dmesg | tail  commands also
> displaying the device.Here I am confused about  camera is working or
> not if works how to view the captured video on beagle board.
>
> I have downloaded the files from the below source

> Thank you
Reply all
Reply to author
Forward
0 new messages