Strange /dev/video permission errors

Forum for questions and support relating to the 1.25.x releases only.
Locked
johngc
Posts: 51
Joined: Sun May 25, 2008 4:38 pm

Strange /dev/video permission errors

Post 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.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Strange /dev/video permission errors

Post by mastertheknife »

Add www-data to the video group.
e.g.

Code: Select all

gpasswd -a www-data video
mastertheknife
Kfir Itzhak.
johngc
Posts: 51
Joined: Sun May 25, 2008 4:38 pm

Re: Strange /dev/video permission errors

Post 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
Locked