JpegSource
![Inheritance diagram of JpegSource](../../../_images/inheritance-0f8a5eee80fb535b6290d9036e7c8041116ab410.png)
JpegSource inheritance diagram
- class savant.client.JpegSource(source_id, file, pts=0, framerate=(30, 1), updates=None)
Frame source for JPEG files.
- Parameters:
source_id (str) – Source ID.
file (str | PathLike | BinaryIO) – Path to a JPEG file or a file handle to a JPEG file opened as binary.
pts (int) – Frame presentation timestamp.
framerate (Tuple[int, int]) – Framerate (numerator, denominator).
updates (List[VideoFrameUpdate] | None) – List of frame updates.
- build_frame()
Build a frame.
- with_framerate(framerate)
Set framerate.
- with_pts(pts)
Set frame presentation timestamp.
- with_update(update)
Apply an update to a frame.