Timecodes
Working with timecodes can suck. It shouldn't have to:
>>> from timecodes import Timecode
>>> t = Timecode('01:00:00;00', 29.97)
>>> t.total_frames, t.dropped_frames
(107892, 108)
>>> t.hours += 1
>>> t.timecode, t.total_frames
(u'02:00:00;00', 215784)
>>> t.convert_to(frame_rate=23.98, preserving='timecode')
>>> t.timecode, t.total_frames
(u'02:00:00:00', 172800)
Installation
Install Timecodes just like everything else:
$ pip install timecodes
Documentation
Full documentation is available at ReadTheDocs.