Project

General

Profile

Actions

Feature #321

open

Static Paths for /dev/video*

Added by Anonymous over 14 years ago. Updated over 14 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/19/2010
Due date:
% Done:

0%

Estimated time:

Description

Hi,

with multiple v4l devices (pvr, webcam, ...)
ordering in /dev/video* is mostly non-deterministic,
eventually preventing vdr startup.

There are some hacks to create udev rules providing symlinks,
but http://locoteam.ubuntuforums.org/showpost.php?p=7070445&postcount=6
suggests to use /dev/v4l/by-path/ instead. I simply search&replaced
/dev/video%d in device.c with a Macro, and defined in device.h
the value for my setup.

The proper solution would be a mapping file
between CARDX and /dev/v4l/ devices,
also taking into account the minor numbers.
For my PVR the files there look like:

ls -l /dev/v4l/by-path/
lrwxrwxrwx 1 root root 12 2010-04-19 22:03 pci-0000:00:1d.7-usb-0:8:1.0-video-index0 -> ../../video0
lrwxrwxrwx 1 root root 12 2010-04-19 22:03 pci-0000:04:00.0-video-index0 -> ../../video1
lrwxrwxrwx 1 root root 13 2010-04-19 22:03 pci-0000:04:00.0-video-index1 -> ../../video33
lrwxrwxrwx 1 root root 10 2010-04-19 22:03 pci-0000:04:00.0-video-index2 -> ../../vbi1
lrwxrwxrwx 1 root root 13 2010-04-19 22:03 pci-0000:04:00.0-video-index3 -> ../../video25
lrwxrwxrwx 1 root root 13 2010-04-19 22:03 pci-0000:04:00.0-video-index5 -> ../../video17
lrwxrwxrwx 1 root root 10 2010-04-19 22:03 pci-0000:04:00.0-video-index6 -> ../../vbi9
lrwxrwxrwx 1 root root 11 2010-04-19 22:03 pci-0000:04:00.0-video-index7 -> ../../vbi17
lrwxrwxrwx 1 root root 13 2010-04-19 22:03 pci-0000:04:00.0-video-index8 -> ../../video49

Yours,
Steffen (sneumann at ipb-halle de)

Actions

Also available in: Atom PDF