Движение и VLC вместе

3055
Spaffo

Я использую Motion http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome с веб-камерой v4l2 на / dev / video0 для обнаружения движения.

Я хотел бы также использовать vlc для потоковой передачи rtp. Допустим, Motion обнаруживает движение и затем автоматически запускает vlc для потоковой передачи видео через rtp.

Проблема в том, что vlc не может захватывать изображения с веб-камеры, когда она используется Motion.

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

Есть ли обходной путь, хитрость, решение?

0

2 ответа на вопрос

0
EEAA

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.

0
jcrawfordor

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.