Skip to contentSkip to conversation

how to discover that a device is v4l or v4l2?

DISCUSSION Farkas Levente 2 participants 2 messages Aug 7, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

hi,
how can i discover whether a video device /dev/video0 is support v4l or v4l2? currently if i try to use the wrong type in gstreamer it's hang forever and only a hard kill can help. is there any way where can i find out the type?
thanks.

Signature · 6 lines
  Levente                               "Si vis pacem para bellum!"

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
#1 lore raw
Quoted 3 lines · Farkas Levente

hi,
how can i discover whether a video device /dev/video0 is support v4l or v4l2? currently if i try to use the wrong type in gstreamer it's hang forever and only a hard kill can help. is there any way where can i find out the type?

Do an VIDIOC_QUERYCAP ioctl on it if it supports that its v4l2, if not it is v4l1

Regards,

Hans

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