public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Switching input during capture
@ 2011-10-28  1:31 Gilles Gigan
  2011-10-28 12:42 ` Laurent Pinchart
  0 siblings, 1 reply; 6+ messages in thread
From: Gilles Gigan @ 2011-10-28  1:31 UTC (permalink / raw)
  To: Linux Media Mailing List

Hi,
I would like to know what is the correct way to switch the current
video input during capture on a card with a single BT878 chip and 4
inputs (http://store.bluecherry.net/products/PV%252d143-%252d-4-port-video-capture-card-%2830FPS%29-%252d-OEM.html).
I tried doing it in two ways:
- using VIDIOC_S_INPUT to change the current input. While this works,
the next captured frame shows video from the old input in its top half
and video from the new input in the bottom half.
- I tried setting the input field to the new input and flags to
V4L2_BUF_FLAG_INPUT in the struct v4l2_buffer passed to VIDIOC_QBUF
when enqueuing buffers. However, when doing so, the ioctl fails
altogether, and I cannot enqueue any buffers with the
V4L2_BUF_FLAG_INPUT flag set.
Is there another way of doing it ? or is there a way to synchronise
the input change (when using VIDIOC_S_INPUT) so it happens in between
2 frames and produces a clean switch ?
Thanks
Gilles

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-07 22:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28  1:31 Switching input during capture Gilles Gigan
2011-10-28 12:42 ` Laurent Pinchart
2011-10-28 22:30   ` Mauro Carvalho Chehab
2011-10-29  7:52     ` Laurent Pinchart
2011-11-07 14:50       ` Mauro Carvalho Chehab
2011-11-07 22:19         ` Gilles Gigan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox