ClipInfo#

class pybmd.media_pool.ClipInfo(media_pool_item: MediaPoolItem, start_frame: int | None = None, end_frame: int | None = None, media_type: int | None = None, track_index: int | None = None, record_frame: int | float | None = None)[source]

Bases: object

ClipInfo dataclass

One entry of the clipInfo list taken by MediaPool.append_to_timeline and MediaPool.create_timeline_from_clips. Only media_pool_item is required - every field left at None is omitted from the dict handed to DaVinci Resolve, so Resolve applies its own default (the whole clip, both video and audio, appended after the last clip).

Parameters:
  • media_pool_item (MediaPoolItem) – clip to place

  • start_frame (int, optional) – first source frame. Defaults to None.

  • end_frame (int, optional) – last source frame. Defaults to None.

  • media_type (int, optional) – 1 - video only, 2 - audio only; None for both. Defaults to None.

  • track_index (int, optional) – target track. Defaults to None.

  • record_frame (int | float, optional) – timeline frame to place the clip at. Defaults to None.

Methods

__init__(media_pool_item[, start_frame, ...])

to_dict()

Attributes