Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

the goal is to use the same webcam for video chat apps and for home security at the same time. Currently, the webcam is working just fine with either VLC (or mjpg-streamer) and with Kopete - just not simultaneously.

I am on Kubuntu 10.4 but at least one of these setups will be on Debian/Linux. A GNU/Linux generic method would be best, but Debian/Linux specific (with udev?) would be just fine.

I have a custom udev rule to control naming of the webcam and I had tried adding "MODE = "0666"" and I have tired running Kopete as root after opening the device with VLC, a permissions angle might not the trick.

Any brilliant insights?

share|improve this question
add comment

1 Answer

V4L2 API does not specify any sharing of one device between multiple applications. It's not obvious how this is possible at a low level as each application may want to set different resolution/colorspace/etc. options.

But it ought to be relatively straightforward to modify something like v4l2vd to be the single reader of the actual hardware device and make multiple copies for multiple clients in userspace.

share|improve this answer
    
thanks for the lead, I was originally looking at v4l2vd but then thought a single device wasnt the problem... just the access control which brought me to udev. If v4l2vd can be a single reader with multiple virtual devices, ill look back to it for a solution... BUT it is not so straightforward to me. Can you give me a bit more direction? –  Tom Jan 6 '11 at 7:44
    
V4L2VD does not support audio. This might not be a show stopper, will just need my streamer app to be able to select a separate audio device and for that audio device to be available to both Kopete and the streamer. –  Tom Jan 6 '11 at 7:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.