Skip to contentSkip to conversation

How to enumerate video devices?

DISCUSSION Lars Hanisch 2 participants 2 messages May 29, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

What is the best method to enumerate video devices, so that a program
can display a list of present hardware in/outputs? Just iterating over /dev/video0 to /dev/videoSomeHighNumber seems a bit 'unprofessional'.

(BTW I'm also looking for the right way of enumerating framebuffer
devices...)

I didn't find anything in the api-spec nor at google (perhaps I had
the wrong searchphrases?).

Please enlighten me. ;-)

Lars.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw

Hi Lars,

Quoted 6 lines · Lars Hanisch

Hi,

What is the best method to enumerate video devices, so that a program
can display a list of present hardware in/outputs? Just iterating over /dev/video0 to /dev/videoSomeHighNumber seems a bit 'unprofessional'.

Quoted 7 lines

(BTW I'm also looking for the right way of enumerating framebuffer
devices...)

I didn't find anything in the api-spec nor at google (perhaps I had
the wrong searchphrases?).

Please enlighten me. ;-)

Check /sys/class/video4linux

Best regards,

Laurent Pinchart

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list