SMPTE Timecode Python Module

The SMPTE timecode Python module converts SMPTE timecode to frame count and frame count to SMPTE timecode. It accepts any arbitrary frame rate with 29.976 reserved for drop frame calculations.

ValueError exception is raised in case of a malformed timecode or a timecode where frame column value exceeds the specified frame rate.

Download SMPTE.py

Sample Usage

import SMPTE

fps = 30

framecount = smpte.fromtc('11:22:38:12', fps)
print framecount

timecode = smpte.totc(92473, 30)
print timecode