Web lists-archives.com

problem with streaming from two webcams with v4l2

Hello guys.

I have two computers (same configuration, same operating system, same
package versions) and on each of them I have 2 webcams connected
I'm running Mandriva, kernel on both of them, and vlc version
1.0.5. On both computers the cameras are /dev/video0 and /dev/video1.

On one computer the streaming works perfect for both cameras, but for
the second one I can only get streaming for one or the other, never at
the same time.

The commands I use for streaming are the following (on both computers):

    |cvlc --color v4l2:///dev/video0 :v4l2-width=320 :v4l2-height=240

    cvlc --color v4l2:///dev/video1 :v4l2-width=320 :v4l2-height=240

on the first computer, if I start both streams, I get the same output,
all is working properly, I can see both my streams. on the second
computer though, I start the first stream, output is ok, but when I'm
starting the second stream I get:

    |[webcam@computer2]$ cvlc --color v4l2:///dev/video1 :v4l2-width=320
    VLC media player 1.0.4 Goldeneye
    [0x884e648] inhibit interface error: Failed to connect to the D-Bus
    session daemon: /usr/bin/dbus-launch terminated abnormally with the
    following error: No protocol specified
    Autolaunch error: X11 initialization failed.

    [0x884e648] main interface error: no suitable interface module
    [0x87bc560] main libvlc error: interface "inhibit,none"
    initialization failed
    No protocol specified
    [0x884ecc8] main interface error: no suitable interface module
    [0x87bc560] main libvlc error: interface "globalhotkeys,none"
    initialization failed
    [0x884ecc8] dummy interface: using the dummy interface module...
    [0x8868aa0] main access out: creating httpd
    [0x8865438] v4l2 demux error: VIDIOC_STREAMON failed
    [0x8865438] v4l2 demux error: cannot set input (Device or resource busy)
    [0x886c5f0] v4l2 access error: VIDIOC_STREAMON failed
    [0x886c5f0] v4l2 access error: cannot set input (Device or resource
    [0x88556d0] main input error: open of `v4l2:///dev/video1' failed:
    [0x88556d0] main input error: Your input can't be opened
    [0x88556d0] main input error: VLC is unable to open the MRL
    'v4l2:///dev/video1'. Check the log for details.|

On the first impression, it looks like /dev/video0 and /dev/video1 point
to the same camera, but when I start them individually, I can clearly
see the output is different, each time from the proper camera. I tried
connecting the cameras to different usb ports, but to no avail. The
problem is still there.

First place I posted my problem was on the vlc forum, but they said the
error comes from the device driver, so I thought I'd ask you guys.

Any ideas on what I could try to fix this problem ? It's really weird
that in one place it works fine and in the second it doesn't.

Any help is greatly appreciated. Thanks for any ideas.

Mircea Uifalean

video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe