Results 1 to 3 of 3

Thread: Assigning tv card to /dev/video0 and webcam to /dev/video1?

  1. #1
    Join Date
    Jun 2005
    Location
    Canada
    Beans
    94
    Distro
    Ubuntu 9.10 Karmic Koala

    Assigning tv card to /dev/video0 and webcam to /dev/video1?

    I have a TV Card and a webcam connected to my computer. I've noticed that after a restart the TV Card capture device is /dev/video1 (while other times it's /dev/video0). When the device changes I have to update my tvtime.xml, which is a hassle.

    How can I force the capture device to be /dev/video0 and the webcam to /dev/video1?

    Thanks
    ASUS P7P55D Pro | Intel i7 860 | 4G Ram | Nvidia GeForce 250 GTS | ATI TV Wonder Pro

  2. #2
    Join Date
    Oct 2008
    Beans
    12
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: Assigning tv card to /dev/video0 and webcam to /dev/video1?

    Hey,

    I have three TV cards that get assigned a different number with each reboot. I've been using UDEV to assign a symlink to them, then referencing them with that. Here's the article I used for mythtv:
    - http://www.mythtv.org/wiki/Device_Filenames_and_udev

  3. #3
    Join Date
    Jun 2005
    Location
    Canada
    Beans
    94
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Assigning tv card to /dev/video0 and webcam to /dev/video1?

    Quote Originally Posted by jrothney View Post
    Hey,

    I have three TV cards that get assigned a different number with each reboot. I've been using UDEV to assign a symlink to them, then referencing them with that. Here's the article I used for mythtv:
    - http://www.mythtv.org/wiki/Device_Filenames_and_udev
    Thanks for the tutorial, I solved my problem. Here's my solution:

    Code:
    # Logitech, Inc. QuickCam Communicate STX
    KERNEL=="video[0-9]*", ATTR{name}=="gspca*", SYMLINK+="video-webcam"
    
    # ATI TV Wonder Pro
    KERNEL=="video[0-9]*", ATTR{name}=="cx88*", SYMLINK+="video-tv"
    ASUS P7P55D Pro | Intel i7 860 | 4G Ram | Nvidia GeForce 250 GTS | ATI TV Wonder Pro

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •