Skip to content

Web-based AV capture

Register name used to load filter: webgrab
This filter may be automatically loaded during graph resolution.

This filter grabs audio and video streams MediaStreamTrackProcessor of the browser

Supported URL schemes:

  • video:// grabs from camera
  • audio:// grabs from microphone
  • av:// grabs both audio from microphone and video from camera
  • video://ELTID grabs from DOM element with ID ELTID (the element must be a valid element accepted by VideoFrame constructor)

Options

src (str): source url

vsize (v2di, default: 0x0): desired webcam resolution

back (bool, default: false): use back camera

ntp (bool, default: false): mark packets with NTP

alpha (bool, default: false): keep alpha when brabbing canvas

fps (frac, default: 0/1): framerate to use when grabbing images - 0 FPS means single image

Was this page helpful?