Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Motion http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome with a v4l2 webcam on /dev/video0 for motion detection.

I'd like to also use vlc for rtp streaming. Let's say, Motion detects a movement and then automatically starts vlc to stream a video via rtp.

The problem is that vlc can't capture images from the webcam while it's being used by Motion.

v4l2 demux error: cannot set input (Device or resource busy)

Is there a workaround, trick, solution?

share|improve this question

migrated from serverfault.com Jun 8 '11 at 23:08

This question came from our site for system and network administrators.

2 Answers 2

up vote 0 down vote accepted

I can't remember the details of how I got this working several years ago (don't have access to that system any longer), but I basically published a copy of the video stream using Motion. Then instead of connecting VLC directly to the camera, I connected it to the relayed stream that Motion was publishing.

share|improve this answer

There is software that can "split" a webcam in to multiple virtual devices, so that multiple programs can use its video feed at once. ManyCam comes to mind, but I'm sure there are free equivalents that don't watermark the video. Asus preinstalls a program called Asus Virtual Camera on many of their laptops that does this, I suspect it would also work on non-Asus hardware. Softpedia has downloads.

share|improve this answer

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.