timecodes

Timecodes for Humans™.


License
Other
Install
pip install timecodes==1.0.0

Documentation

Timecodes

https://badge.fury.io/py/timecodes.png https://travis-ci.org/karanlyons/timecodes.png?branch=master https://coveralls.io/repos/karanlyons/timecodes/badge.png?branch=master

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.