Question on V4L2 VBI operation
Hello
I am new to V4L2 and have a question on how V4L2 expects
VBI data to be provided.
It is not clear to me if the VBI data (CC, WSS, etc) can be
embedded in the frame? If the video capture device does
not provide the VBI data separately, should the driver
extract it from the frame? Is this what drivers usually do?
If the device provides VBI data separately (either in some
registers or FIFO), then the driver should obtain this from
the device for each frame?
Thanks
Krish
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Hi,
Quoted 16 lines · Krish K
Hello
I am new to V4L2 and have a question on how V4L2 expects
VBI data to be provided.
It is not clear to me if the VBI data (CC, WSS, etc) can be
embedded in the frame? If the video capture device does
not provide the VBI data separately, should the driver
Quoted 8 lines
extract it from the frame? Is this what drivers usually do?
If the device provides VBI data separately (either in some
registers or FIFO), then the driver should obtain this from
the device for each frame?
as usual this depends on the device. It is possible that eg. the raw vbi data is seen ontop of the analog TV frames, with USB devices this leads to some interesting thoughts.
For example if mmap is used with the vbi device and all usb buffers are dequeued, the transfer mechanism still has to take care that the incoming vbi data gets stripped off of the frame otherwise it might show up in the video which is not too nice.
Also depending on the device if the video gets scaled, it can easily be that the VBI data remains at the full vbi data capture size. I think a few drivers don't handle VBI correctly because it's not used that widely, best is to stick with zvbi and documentation around it, I tested alevt a while ago and it doesn't work with all devices whereas libzvbi/zapping has a better chance.
Markus
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Thanks for the response. I am trying to implement a video driver and looking for information on how V4L2 expects the driver to provide VBI:
separately or embedded in the frame data. I have looked at the V4L2 doucmentation; which is very good, but doesn't seem to explicitly address this aspect.
Thanks
Krish
--- On Thu, 7/17/08, Markus Rechberger <[email protected]> wrote:
From: Markus Rechberger <[email protected]>
Subject: Re: Question on V4L2 VBI operation
To: [email protected]
Cc: [email protected]
Date: Thursday, July 17, 2008, 3:26 PM
Hi,
Quoted 16 lines · Krish K
Hello
I am new to V4L2 and have a question on how V4L2 expects
VBI data to be provided.
It is not clear to me if the VBI data (CC, WSS, etc) can be
embedded in the frame? If the video capture device does
not provide the VBI data separately, should the driver
Quoted 8 lines
extract it from the frame? Is this what drivers usually do?
If the device provides VBI data separately (either in some
registers or FIFO), then the driver should obtain this from
the device for each frame?
as usual this depends on the device. It is possible that eg. the raw vbi data is seen ontop of the analog TV frames, with USB devices this leads to some interesting thoughts.
For example if mmap is used with the vbi device and all usb buffers are dequeued, the transfer mechanism still has to take care that the incoming vbi data gets stripped off of the frame otherwise it might show up in the video which is not too nice.
Also depending on the device if the video gets scaled, it can easily be that the VBI data remains at the full vbi data capture size. I think a few drivers don't handle VBI correctly because it's not used that widely, best is to stick with zvbi and documentation around it, I tested alevt a while ago and it doesn't work with all devices whereas libzvbi/zapping has a better chance.
Markus
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 5 lines · On Thursday 17 July 2008 18:25:07 Krish K wrote:
Thanks for the response. I am trying to implement a video driver and looking for information on how V4L2 expects the driver to provide
VBI: separately or embedded in the frame data. I have looked at the V4L2 doucmentation; which is very good, but doesn't seem to explicitly address this aspect.
Hi Krish,
Applications expect the VBI to come through the /dev/vbiX device and never as part of a video frame. While it is technically possible to deliver a video frame that includes the VBI data that preceeds it, in practice this is never used and I'm not even sure whether there is a driver that can do it.
Regards,
Hans
Quoted 58 lines
Thanks
Krish--- On Thu, 7/17/08, Markus Rechberger <[email protected]> wrote:
From: Markus Rechberger <[email protected]>
Subject: Re: Question on V4L2 VBI operation
To: [email protected]
Cc: [email protected]
Date: Thursday, July 17, 2008, 3:26 PMHi,
Quoted 16 lines · Krish K
Hello
I am new to V4L2 and have a question on how V4L2 expects
VBI data to be provided.
It is not clear to me if the VBI data (CC, WSS, etc) can be
embedded in the frame? If the video capture device does
not provide the VBI data separately, should the driver
Quoted 7 lines
extract it from the frame? Is this what drivers usually do?
If the device provides VBI data separately (either in some
registers or FIFO), then the driver should obtain this from
the device for each frame?
as usual this depends on the device. It is possible that eg. the raw vbi data is seen ontop of the analog TV frames, with USB devices this leads to some interesting thoughts.
For example if mmap is used with the vbi device and all usb buffers are dequeued, the transfer mechanism still has to take care that the incoming vbi data gets stripped off of the frame otherwise it might show up in the video which is not too nice.Also depending on the device if the video gets scaled, it can easily be that the VBI data remains at the full vbi data capture size. I think a few drivers don't handle VBI correctly because it's not used that widely, best is to stick with zvbi and documentation around it, I tested alevt a while ago and it doesn't work with all devices whereas libzvbi/zapping has a better chance.
Markus
Quoted 5 lines
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subjecthttps://www.redhat. com/mailman/listinfo/video4linux-list
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 7 lines · Hans Verkuil
Quoted 5 lines · On Thursday 17 July 2008 18:25:07 Krish K wrote:
Thanks for the response. I am trying to implement a video driver and looking for information on how V4L2 expects the driver to provide
VBI: separately or embedded in the frame data. I have looked at the V4L2 doucmentation; which is very good, but doesn't seem to explicitly address this aspect.
Quoted 8 lines
Hi Krish,
Applications expect the VBI to come through the
/dev/vbiXdevice and never as part of a video frame. While it is technically possible to deliver a video frame that includes the VBI data that preceeds it, in practice this is never used and I'm not even sure whether there is a driver that can do it.
it is the em28xx driver on mcentral.de does that actually.
http://img402.imageshack.us/my.php?image=00000008zd8.png
the driver cuts off the heading VBI data and delivers it to /dev/vbi[n]
Markus
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list