Page 1 of 1

Strange /dev/video permission errors

Posted: Thu Mar 01, 2012 3:46 pm
by johngc
I have ZM 1.25.0 installed on Ubuntu 10.04 x64 server edition and it has been working perfectly. I use a generic BT878 capture card which had two cameras plugged into it. As the frame rate was low I got hold of a second BT878 generic capture card and again it just seemed to plug and play :lol:

BUT, recently I have started to notice the feed on my new card crashing. The only error I can see in the log file is:

Code: Select all

Failed to open video device /dev/video1: Permission denied
If I ls -l /dev/video* I can see:

Code: Select all

crw-rw-rw-+ 1 root video 81, 0 2012-03-01 06:15 /dev/video0
crw-rw-rw-+ 1 root video 81, 2 2012-03-01 06:15 /dev/video1
So I know the permissions are set the same.

Resetting ZM works fine and it runs as normal until next time I notice it crash!

Any suggestions on how I can start to troubleshoot this would be greatly received.

Re: Strange /dev/video permission errors

Posted: Wed Mar 07, 2012 3:59 pm
by mastertheknife
Add www-data to the video group.
e.g.

Code: Select all

gpasswd -a www-data video
mastertheknife

Re: Strange /dev/video permission errors

Posted: Fri Mar 09, 2012 5:36 am
by johngc
Thank you - I will try that.

Since my post and today I have not had a problem with it in any case. There have been a number of alerts on the camera so I know it is working. I will keep an eye on it and see how it goes.

Thanks again