# V4L2 M2M exposes codec devices rather than a render node. Map only the probed decoder and encoder
# nodes, at the same paths the host kernel reports, and grant the image user the host video group.
services:
  quven:
    devices:
      # No default: /dev/video10 and /dev/video11 are codec nodes on a Raspberry Pi and capture
      # nodes on other boards, so a default would pass a camera through to the container.
      - ${QUVEN_V4L2_DECODER_DEVICE:?Set QUVEN_V4L2_DECODER_DEVICE to the probed decoder node.}:${QUVEN_V4L2_DECODER_DEVICE:?Set QUVEN_V4L2_DECODER_DEVICE to the probed decoder node.}
      - ${QUVEN_V4L2_ENCODER_DEVICE:?Set QUVEN_V4L2_ENCODER_DEVICE to the probed encoder node.}:${QUVEN_V4L2_ENCODER_DEVICE:?Set QUVEN_V4L2_ENCODER_DEVICE to the probed encoder node.}
    group_add:
      - ${QUVEN_VIDEO_GID:?Set QUVEN_VIDEO_GID to the host video-group GID.}
