Skip to main content

class  pixeltable.functions.video.VideoSegment

One segment of a video: the segment’s video plus where it falls in the source video.

attr  segment_end

segment_end: float | None
Segment end, in seconds from the start of the source video; None if the source stream does not report it.

attr  segment_end_pts

segment_end_pts: int | None
Segment end, as a presentation timestamp (in the source stream’s time base); None if unavailable.

attr  segment_start

segment_start: float | None
Segment start, in seconds from the start of the source video; None if the source stream does not report it.

attr  segment_start_pts

segment_start_pts: int | None
Segment start, as a presentation timestamp (in the source stream’s time base); None if unavailable.

attr  video_segment

video_segment: pxt.Video
The segment’s video.
Last modified on July 14, 2026