captionbob docs

Version 1.0.0
Contents ↓

Python: captionbob.video

captionbob.video.video_info

The facts of one video that the plugins and the render step need.

Source file: captionbob/video/video_info.py

VideoInfo

@dataclass(frozen=True)
class VideoInfo

The frame size, the frame rate and the duration of one video.

Args:

  • width: Width of a frame in pixels.
  • height: Height of a frame in pixels.
  • frame_rate: Frames each second, as an exact fraction.
  • duration_seconds: Length of the video in seconds.

Raises:

  • ValueError: When a value is zero or negative.