First of all, I'd like to say that I have read post viewtopic.php?f=13&t=56353 , and it didn't solve the problem for me.
I have two computers (same configuration, same operating system, same package versions) and on each of them I have 2 webcams connected (a4tech pk-335e).
I'm running Mandriva, kernel 2.6.31.5 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):
Code: Select all
cvlc --color v4l2:///dev/video0 :v4l2-width=320 :v4l2-height=240 --sout="#transcode{vcodec=FLV1,vb=640,width=320,height=240}:std{mux=ffmpeg{mux=flv},access=http{mime=video/x-flv},dst=0.0.0.0:9000/stream.flv}"
cvlc --color v4l2:///dev/video1 :v4l2-width=320 :v4l2-height=240 --sout="#transcode{vcodec=FLV1,vb=640,width=320,height=240}:std{mux=ffmpeg{mux=flv},access=http{mime=video/x-flv},dst=0.0.0.0:9001/stream.flv}"
Code: Select all
[webcam@computer1]$ cvlc --color v4l2:///dev/video0 :v4l2-width=320 :v4l2-height=240 --sout="#transcode{vcodec=FLV1,vb=640,width=320,height=240}:std{mux=ffmpeg{mux=flv},access=http{mime=video/x-flv},dst=0.0.0.0:9000/stream.flv}"
VLC media player 1.0.4 Goldeneye
[0x81be4f0] 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.
[0x81be4f0] main interface error: no suitable interface module
[0x8120450] main libvlc error: interface "inhibit,none" initialization failed
No protocol specified
[0x81c11c0] main interface error: no suitable interface module
[0x8120450] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x81c2fe0] dummy interface: using the dummy interface module...
[0x81cc970] main access out: creating httpd
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:
Code: Select all
[webcam@computer2]$ cvlc --color v4l2:///dev/video1 :v4l2-width=320 :v4l2-height=240 --sout="#transcode{vcodec=FLV1,vb=640,width=320,height=240}:std{mux=ffmpeg{mux=flv},access=http{mime=video/x-flv},dst=0.0.0.0:9001/stream.flv}"
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 busy)
[0x88556d0] main input error: open of `v4l2:///dev/video1' failed: (null)
[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.
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.