Utilities
A collection of methods that make working with Hyperdeck data easier.
Timecode
Helper functions for working with Timecode Data
- pyperdeck.timecode.parse_framerate(video_format: str) int
Parse framerate from a Hyperdeck Video Format
- Parameters
video_format (str) – Hyperdeck Video Format String
- Returns
Framerate
- Return type
int
- pyperdeck.timecode.format_timecode(hours: int, minutes: int, seconds: int, frames: int, dropcode: bool) str
Create a timecode string from timecode field values
- Parameters
hours (int) – Hours
minutes (int) – Minutes
seconds (int) – Seconds
frames (int) – Frames
dropcode (bool) – Dropcode refers to whether the final field in delinated with a colon or a semicolon. True indicates semicolon.
- Returns
Timecode String
- Return type
str
- class pyperdeck.timecode.Timecode(timecode: str, framerate: int)
Timecode Object for Simple Manipulation of Timecodes
Allows additon and subtraction of Timecode Objects, Frame Integers, and Timecode Strings
- Parameters
timecode (str) – Timecode String (ex. 00:00:00:00)
framerate (int) – Framerate (commonly 24, 25, 30, 50, or 60)