how to discover that a device is v4l or v4l2?
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
Quoted 3 lines · Farkas Levente
hi,
how can i discover whether a video device/dev/video0is 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