v4l2 autodetect

Leo.Fernando leofernando34 at gmail.com
Tue Jul 14 03:53:45 PDT 2015


Hai,

thanks for the help

the card's user manual has the sudocode to detect width and height and
framerate. i wanted to uses this values and set the caps

s_ctl_struct.id = V4L2_CID_X_RES_DETECTED; 
ioctl(fd, VIDIOC_G_CTRL, &s_ctl_struct); 
printf("(vidWidth = %d)\n", s_ctl_struct.value); 

s_ctl_struct.id = V4L2_CID_Y_RES_DETECTED; 
ioctl(fd, VIDIOC_G_CTRL, &s_ctl_struct); 
printf("(vidHeight = %d)\n", s_ctl_struct.value); 

s_ctl_struct.id = V4L2_CID_FPS_DETECTED; 
ioctl(fd, VIDIOC_G_CTRL, &s_ctl_struct); 
printf("(vidFPS = %d)\n", s_ctl_struct.value);

thanks,
Leo



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/v4l2-autodetect-tp4672640p4672666.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list