Skip to content

VideoInfo

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  4147492386["models.VideoInfo"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 4147492386
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

Media facts and dense-sample metrics of a video or animated image.

Source code in src/framesheet/models.py
class VideoInfo(BaseModel):
    """Media facts and dense-sample metrics of a video or animated image."""

    container: str
    """``mp4``, ``mov``, ``webm``, ``mkv``, ``gif`` or ``webp``."""
    codec: str | None
    """``h264``, ``hevc``, ``vp8``, ``vp9``, ``av1``, ``gif``, ``webp``, ... if detectable."""
    decoder: Literal["video", "image-decoder"]
    width: int
    height: int
    media_duration: float | None
    fps: float | None
    frame_count: int | None
    start: float
    end: float
    static_threshold: float
    """Seconds without visible change that count as a static stretch."""
    samples: list[ActivitySample]
    """Every sampled time in ``[start, end]`` (tiles + dense grid), in order."""
    tiles: list[VideoTile]

codec instance-attribute

codec: str | None

h264, hevc, vp8, vp9, av1, gif, webp, ... if detectable.

container instance-attribute

container: str

mp4, mov, webm, mkv, gif or webp.

samples instance-attribute

samples: list[ActivitySample]

Every sampled time in [start, end] (tiles + dense grid), in order.

static_threshold instance-attribute

static_threshold: float

Seconds without visible change that count as a static stretch.

:fa-brands-github: Show source on GitHub