Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-16-2003, 11:53 PM   #1
Registered: May 2003
Posts: 256

Rep: Reputation: 30
Two Video Devices - /dev/video0 & /dev/video1

My video editor card comes up on /dev/video0.

When I put in my USB web came, this takes over /dev/video0.

How can I configure one for video0 and the other for video1.


Robert Liguori
Old 07-21-2003, 08:20 PM   #2
Registered: Jun 2001
Location: Recycle Bin
Distribution: Linux & Everything else on VirtualBox
Posts: 144

Rep: Reputation: 15
Whatever the driver is for the webcam, you need to query the driver and see if you can tell it to use /dev/video1.

For instance I have a Logitech QuickCam Express and the driver is mod_quickcam so I enter this:

# modinfo mod_quickcam
filename:    /lib/modules/2.4.21/kernel/drivers/usb/mod_quickcam.o
description: "Logitech Quickcam Express Webcam driver"
author:      "see README"
license:     "GPL"
parm:        debug int, description "Sets the debug output (1,2,4,8,16,32)"
parm:        interpolation int, description "Sets the interpolation mode (0-1)"
parm:        mode int, description "Sets the speed (0-1)"
parm:        keepexposure int, description "Keep gain settings across one open to another (0-1)"
parm:        tobgr int, description "Automatic RGB -> BGR conversion"
parm:        rgain int, description "Initial value of red gain (0-255)"
parm:        bgain int, description "Initial value of blue gain (0-255)"
parm:        ggain int, description "Initial value of green gains (0-255)"
parm:        bright int, description "Initial value for brightness (0-65535)"
parm:        video_nr int, description "Set videodevice number (/dev/videoX)"
So I hi-lighted the parameter I need to pass to the driver i.e. video_nr 1. Now I just edit /etc/modules.conf and pass the parameter to the mod_quickcam driver like thus:

alias camera mod_quickcam video_nr 1

To verify it worked I check in /proc/video/dev

# cat video0
name            : BT878(Hauppauge (bt878))
hardware        : 0x1
[dev]# cat video1
name            : Logitech Quickcam Express USB
type            : VID_TYPE_CAPTURE
hardware        : 0xcf1aa310


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/video0: No such device meranto Linux - Hardware 5 11-12-2005 10:38 AM
bttv on /dev/video1 liguorir Linux - Software 1 08-29-2004 02:38 PM
/dev/video0 question d1l2w3 Linux - Hardware 0 08-10-2004 07:39 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM
/dev/video0 Tuttle Slackware 10 07-23-2003 03:39 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration