Skip to main content

Module tc_convert

Module tc_convert 

Source
Expand description

Timecode format conversion utilities.

Converts timecodes between different frame rates, between wall-clock time and timecode, and between SMPTE string representations and frame numbers.

Structs§

ConvertResult
Result of a timecode conversion.

Enums§

ConvertStrategy
Strategy for converting timecodes between different frame rates.

Functions§

convert_frame_rate
Converts a timecode from one frame rate to another.
df_to_ndf
Convert a drop-frame (DF) timecode to its non-drop-frame (NDF) equivalent.
frames_to_smpte_string
Formats a frame count as an SMPTE timecode string.
millis_to_timecode
Converts milliseconds to a timecode.
ndf_to_df
Convert a non-drop-frame (NDF) timecode to its drop-frame (DF) equivalent.
parse_smpte_string
Parses a SMPTE timecode string like “01:02:03:04” or “01:02:03;04”.
seconds_to_timecode
Converts a wall-clock duration in seconds to a timecode.
timecode_to_audio_samples
Computes the number of real-time samples (at a given audio sample rate) that correspond to a timecode offset.
timecode_to_millis
Converts a timecode to a total millisecond value.
timecode_to_seconds
Converts a timecode to wall-clock seconds.