Video4Linux2 sources¶
kind = v4l2 — captures video from a V4L2 device (video only, no audio).
Use ffprobe /dev/videoX to query the supported modes, resolutions and
framerates of a device.
Configuration options¶
deviceV4L2 device node. Default:
/dev/video0.widthCapture width in pixels. Default:
1920.heightCapture height in pixels. Default:
1080.framerateCapture frame rate as numerator/denominator. Default:
25/1.formatPixel format expected from the device. Default:
YUY2.fallbacksrcWrap the source in
fallbacksrcto automatically recover from disconnects. Default:true.
Example¶
[source.cam1]
kind = v4l2
device = /dev/video2
width = 1280
height = 720
framerate = 30/1
format = YUY2
See also
Common source attributes for the scan and volume attributes that apply to all source kinds.