Hi Everyone, I am not sure if this helps but I think Ruben is right. I have run the same commands on a ubuntu server 10.04 64bit we have been using to capture lectures all semester with a Epiphan VGA2USB card as video1 and a Bluecherry 787 as video 0.
ls -o /dev | grep video lrwxrwxrwx 1 root 6 2010-12-07 14:39 camera -> video0 lrwxrwxrwx 1 root 6 2010-12-07 14:39 vga -> video1 crw-rw---- 1 root 81, 0 2010-12-21 14:35 video0 crw-rw---- 1 root 81, 2 2010-12-07 14:39 video1 getfacl /dev/video0 getfacl: Removing leading '/' from absolute path names # file: dev/video0 # owner: root # group: video user::rw- group::rw- other::--- getfacl /dev/video1 getfacl: Removing leading '/' from absolute path names # file: dev/video1 # owner: root # group: video user::rw- group::rw- other::--- matterh...@####:~$ groups matterhorn matterhorn : matterhorn audio video admin Cheers, Adam 2010/12/22 Rubén Pérez <[email protected]> > IMHO I think that those access control list (which I had never heard of > until now) add a whole new level of complexity. If the server edition > doesn't include them by default... well, it must be for some reason. > > Anyway, you will solve your permission problems by assigning the current > user to the group which the camera belongs to (probably video): > > usermod -aG video <username> > > You can provide a comma-separated list of groups, instead of a single one, > if you want (as it's done, for instance, in the 11th line from the bottom in > the > setup_user.sh<http://opencast.jira.com/svn/MH/trunk/docs/scripts/ubuntu_capture_agent/setup_user.sh>script > for capture agent installation). > > If your camera does not have a group (strange, but possible, situation) > then the things get a little more complicated. You may need to modify or > provide an udev rule to specify the camera's owner user and group when it's > plugged in the machine. If that's the case, > this<http://reactivated.net/writing_udev_rules.html>is a good guide to figure > out what's going on and how to fix it. > > Hope it helps. > > Best regards, > Rubenciño > > 2010/12/22 Geoffrey Smith <[email protected]> > > Looks like if you wanted to reproduce the same: >> >> setfacl -m u::rw- /dev/video0 >> setfacl -m u:lukeo:rw- /dev/video0 >> setfacl -m g::rw- /dev/video0 >> setfacl -m m::rw- /dev/video0 >> setfacl -m o::--- /dev/video0 >> >> There a -R (recursive) option. Directories can have default acls to spawn >> same on child files and directories, by prepending a d: like d:u::rw- >> >> HTH >> >> Geoff >> >> On Wed, Dec 22, 2010 at 12:37 PM, Luke Olson < >> [email protected]> wrote: >> >>> After more digging it seems to be a permission error. If run with sudo it >>> works on the server edition. The webcam mount has an access control list >>> which allows users to access the webcam on the desktop edition. On the >>> server edition there are no access control list associated with the webcam, >>> so only root can access it. This is from the desktop edition where the >>> webcam works fine, note the plus sign after the permissions which indicate >>> that there's a access control list associated with the file. >>> >>> lu...@751-115584a:~$ ls -o /dev | grep video >>> crw-rw----+ 1 root 81, 0 2010-12-22 10:55 video0 >>> >>> lu...@751-115584a:~$ getfacl /dev/video0 >>> getfacl: Removing leading '/' from absolute path names >>> # file: dev/video0 >>> # owner: root >>> # group: video >>> user::rw- >>> user:lukeo:rw- >>> group::rw- >>> mask::rw- >>> other::--- >>> >>> This is from the server edition where the webcam fails, note the missing >>> plus sign after the permissions indicating that no access control list is >>> associated with that file. I haven't tried the Epiphan yet but I assume it >>> will have the same issue. >>> >>> i...@testcaptureagent:~$ ls -o /dev | grep video >>> crw-rw---- 1 root 81, 0 2010-12-22 10:36 video0 >>> >>> Anyone familiar with access control lists? This is my first time dealing >>> with them. Not sure how the access control list was setup on the desktop >>> edition, maybe that same method can be used to setup the list on the server >>> edition. Or maybe just setting it up manually would be better? Or just >>> changing the file permissions itself rather than using the list? >>> >>> All the best, >>> >>> Luke >>> >>> >>> -----Original Message----- >>> From: [email protected] on behalf of Adam >>> Mckenzie >>> Sent: Tue 12/21/2010 2:39 PM >>> To: Matterhorn Users >>> Subject: Re: [Matterhorn-users] Having issues with the Trunk version. >>> >>> Hi Luke, >>> >>> Looking at the post you made on the Ubuntu forums have you tried using a >>> pipeline with a filesink instead of an xvimagesink? Something like: >>> >>> gst-launch v4l2src device=/dev/video0 ! ffenc_mpeg2video ! ffmux_mpegts ! >>> filesink location=hello.mpg >>> >>> Also what does it print out when you run: >>> vl4-info /dev/video0 or wherever the webcam happens to load to? >>> >>> Thanks, >>> Adam >>> >>> On Tue, Dec 21, 2010 at 1:50 PM, Luke Olson < >>> [email protected]>wrote: >>> >>> > For anyone interested I've posted the question on the Ubuntu forums as >>> > well. >>> > >>> > http://ubuntuforums.org/showthread.php?p=10265118 >>> > >>> > Luke >>> > >>> > -----Original Message----- >>> > From: [email protected] >>> > [mailto:[email protected]] On Behalf Of >>> Luke >>> > Olson >>> > Sent: Tuesday, December 21, 2010 1:30 PM >>> > To: Matterhorn Users >>> > Subject: Re: [Matterhorn-users] Having issues with the Trunk version. >>> > >>> > I tried to get webcams to work on Ubuntu Server by installing all >>> > relevant packages, tried both desktop and server kernels, made sure all >>> > modules were loaded, etc. Though with no success. Sandeep is working on >>> > it as well as we don't really want to deploy a bunch of capture agents >>> > using the desktop version of Ubuntu (shorter support lifespan, uses >>> more >>> > resources, takes longer to install and update). >>> > >>> > This will be an issue for anyone else wanting to use a webcam with the >>> > Ubuntu capture agent in future versions of Matterhorn (which seems like >>> > quite a few wanting to use webcams and UVC cameras). So whether we >>> > discover the solution later or if someone else already has, it would >>> > make a good addition to the Wiki. I'll be sure to ask the Ubuntu >>> > community but wanted to check here in case someone else has already run >>> > into the same issue because the likelihood is high. >>> > >>> > All the best, >>> > >>> > Luke >>> > >>> > >>> > -----Original Message----- >>> > From: [email protected] >>> > [mailto:[email protected]] On Behalf Of >>> > Christopher Brooks >>> > Sent: Tuesday, December 21, 2010 12:04 PM >>> > To: Matterhorn Users >>> > Subject: Re: [Matterhorn-users] Having issues with the Trunk version. >>> > >>> > On Tue, 21 Dec 2010 12:35:54 -0500 >>> > Sandeep Tamrakar <[email protected]> wrote: >>> > >>> > > >>> > > Hello, I work at Texas A&M University-Commerce under Luke. We have >>> > > been trying to figure out the way to make the USB camera to work on >>> > > the server version of Ubuntu 10.04. However, it has been a pain to >>> > > understand why it was not working. Then we tried installing the fresh >>> > > desktop version of Ubuntu and hey it works. We believe desktop >>> > > version is not what we want to use for the lecture capture agent. So >>> > > do you all have any ideas what might be wrong with the server version >>> > > not supporting the camera. (we are using Logitech C910). Thanks, >>> > > Sandeep Tamrakar >>> > >>> > Hi Sandeep, >>> > >>> > I think the ubuntu forums would be better off to help with this, unless >>> > someone here is using a similar camera on ubuntu... >>> > >>> > Chris >>> > >>> > -- >>> > Christopher Brooks, BSc, MSc >>> > ARIES Laboratory, University of Saskatchewan >>> > >>> > Web: http://www.cs.usask.ca/~cab938 <http://www.cs.usask.ca/%7Ecab938>< >>> http://www.cs.usask.ca/%7Ecab938> >>> > Phone: 1.306.966.1442 >>> > Mail: Advanced Research in Intelligent Educational Systems Laboratory >>> > Department of Computer Science >>> > University of Saskatchewan >>> > 176 Thorvaldson Building >>> > 110 Science Place >>> > Saskatoon, SK >>> > S7N 5C9 >>> > _______________________________________________ >>> > Matterhorn-users mailing list >>> > [email protected] >>> > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users >>> > _______________________________________________ >>> > Matterhorn-users mailing list >>> > [email protected] >>> > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users >>> > _______________________________________________ >>> > Matterhorn-users mailing list >>> > [email protected] >>> > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users >>> > >>> >>> >>> >>> -- >>> Adam McKenzie >>> MSc Student >>> ARIES Laboratory, University of Saskatchewan >>> >>> Web: http://aries.usask.ca/aiwiki/Adam_McKenzie >>> Mail: Advanced Research in Intelligent Educational Systems Laboratory >>> Department of Computer Science >>> University of Saskatchewan >>> 176 Thorvaldson Building >>> 110 Science Place >>> Saskatoon, SK >>> S7N 5C9 >>> >>> >>> _______________________________________________ >>> Matterhorn-users mailing list >>> [email protected] >>> http://lists.opencastproject.org/mailman/listinfo/matterhorn-users >>> >>> >> >> >> -- >> Geoff Smith >> Campus Technology Engineer >> U. Maine Farmington >> (207) 778-7307 >> [email protected] >> >> >> _______________________________________________ >> Matterhorn-users mailing list >> [email protected] >> http://lists.opencastproject.org/mailman/listinfo/matterhorn-users >> >> > > _______________________________________________ > Matterhorn-users mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users > > -- Adam McKenzie MSc Student ARIES Laboratory, University of Saskatchewan Web: http://aries.usask.ca/aiwiki/Adam_McKenzie Mail: Advanced Research in Intelligent Educational Systems Laboratory Department of Computer Science University of Saskatchewan 176 Thorvaldson Building 110 Science Place Saskatoon, SK S7N 5C9
_______________________________________________ Matterhorn-users mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
