Skip to main content

Module v4l2out

Module v4l2out 

Source
Expand description

Kernel-device sink: writes frames into a v4l2loopback output device.

Where the host (or a privileged container) carries the v4l2loopback module, a real /dev/videoN is the zero-configuration path for consumers β€” no preload, no socket β€” exactly as /dev/uinput is for the gamepads. The device is opened for output, set to the ring’s raw format, and fed one write() per published frame. It is a best-effort mirror of the ring: an error disables the sink and is reported once, never failing the camera.

StructsΒ§

V4l2Capability πŸ”’
V4l2Format πŸ”’
struct v4l2_format: the type word, padding to the 8-byte aligned union, then the union’s 200 bytes, of which the pixel format occupies the first 48.
V4l2Output
V4l2PixFormat πŸ”’

ConstantsΒ§

IOC_READ πŸ”’
IOC_WRITE πŸ”’
V4L2_BUF_TYPE_VIDEO_OUTPUT πŸ”’
V4L2_CAP_DEVICE_CAPS πŸ”’
V4L2_CAP_READWRITE πŸ”’
V4L2_CAP_VIDEO_OUTPUT πŸ”’
V4L2_COLORSPACE_SMPTE170M πŸ”’
V4L2_COLORSPACE_SRGB πŸ”’
V4L2_FIELD_NONE πŸ”’
VIDIOC_QUERYCAP πŸ”’
VIDIOC_S_FMT πŸ”’

FunctionsΒ§

cstr_field πŸ”’
fourcc_str
ioc πŸ”’
is_loopback_output πŸ”’
query_cap πŸ”’