Access /dev/video0 with motion


I am trying to configure and run motion program, but on launch I get an error that video device is busy and cannot be accessed.

I presume this is the video stream software already installed that blocks, wich package is it? How to shut it down when motion starts?


Thank you for your time.

It should be mjpg-streamer. You can just stop and disable it

/etc/init.d/mjpg-streamer stop

/etc/init.d/mjpg-streamer disable