is there a utility or SOME method to determine which /dev/videoX (like /dev/video0 or /dev/video1) is being used by a device??? Example I have a USB camera and a USB TV module how do I determine which device is on /dev/video0 and which is on /dev/video1 I have seen perhaps a way in dmesg but I am looking for the BEST way and the correct way. Thanks, Jerry
On Mon, 2008-12-15 at 19:32 -0500, Jerry Geis wrote:> is there a utility or SOME method to > determine which /dev/videoX (like /dev/video0 or /dev/video1) > is being used by a device??? > > Example I have a USB camera and a USB TV module > how do I determine which device is on /dev/video0 and which is on > /dev/video1 > > I have seen perhaps a way in dmesg but I am looking for the > BEST way and the correct way.Look under /sys/class/video4linux. -- Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> PLEASE don't CC me; I'm already subscribed -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20081215/6207092e/attachment-0003.sig>
Not sure this helps b/c maybe u need a non human interactive method. mplayer /dev/video0 lsusb -v On 12/15/08, Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> wrote:> On Mon, 2008-12-15 at 19:32 -0500, Jerry Geis wrote: >> is there a utility or SOME method to >> determine which /dev/videoX (like /dev/video0 or /dev/video1) >> is being used by a device??? >> >> Example I have a USB camera and a USB TV module >> how do I determine which device is on /dev/video0 and which is on >> /dev/video1 >> >> I have seen perhaps a way in dmesg but I am looking for the >> BEST way and the correct way. > > Look under /sys/class/video4linux. > > -- > Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> > > PLEASE don't CC me; I'm already subscribed >