Hello all :
I'm trying to use the vbi capability of my pinnacle
rave SECAM.
i use v4l with bttv and i also try v4l2
(videodevX-20020330) and bttv2 (driver-20020219), but i was unable to load
vbi information
i give you my sample source code to have your
advise:
with v4l:
___________________________________________________________________________
struct vbi_format vbi;
if ((vbi_fd=open("/dev/vbi0", O_RDWR)) < 0
){
printf("unable to open /dev/vbi0\n"); } if (ioctl (video_fd, VIDIOCGVBIFMT, &vbi)< 0) printf("unable to open VIDIOCGVBIFMT\n"); fprintf (stderr,"sampling_rate: %d \n",vbi.sampling_rate); close(vbi_fd); ____________________________________________________________________________
In this case the ioctl return error with
VIDIOCGVBIFMT
with v4l2:
___________________________________________________________________________
struct v4l2_format format;
if ((vbi_fd=open("/dev/vbi0", O_RDWR)) < 0
){ printf("unable to open /dev/vbi0\n"); } if (ioctl (vbi_fd, VIDIOC_G_FMT,
&format)< 0) printf("unable to open VIDIOC_G_FMT\n");
fprintf (stderr,"sampling_rate: %d\n",format.fmt.vbi.sampling_rate ); close(vbi_fd); ___________________________________________________________________________
in this case i was unable tu open /dev/vbi0
Do you have any idee on how to use this VIDIOCGVBIFMT and
VIDIOC_G_FMT? |