Re: Switching input during capture

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gilles,

On Friday 28 October 2011 03:31:53 Gilles Gigan wrote:
> 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-captur
> e-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.

V4L2_BUF_FLAG_INPUT is (or at least should be) deprecated. It isn't supported 
by mainline drivers and was a mistake in the first place.

> 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 ?

You will need hardware support for that.

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux