Module device

Module device 

Source
Expand description

Hardware device input and output.

This module provides access to hardware capture and playback devices. It wraps FFmpeg’s libavdevice library.

§Capabilities

  • Video capture (webcams, screen capture, video capture cards)
  • Audio capture (microphones, line-in)
  • Video/audio playback to hardware devices
  • Device enumeration and discovery

§Submodules

  • input - Input devices (capture)
  • output - Output devices (playback)
  • extensions - Device-specific extensions

§Platform Support

Available devices vary by platform:

  • Linux: v4l2 (video), alsa (audio), xcbgrab (screen capture)
  • Windows: dshow (DirectShow), gdigrab (screen capture)
  • macOS: avfoundation (video/audio), screencapture

Modules§

extensions
input
output

Structs§

Info
Information about a hardware device.

Functions§

configuration
Returns the libavdevice build configuration string.
license
Returns the libavdevice license string.
register_all
Registers all available devices.
version
Returns the libavdevice version number.