Skip to content

Timecode.to_realtime(as_float=False) returns incorrect value for "00:00:00:00" at low frame rates. #58

@lucien-flwls

Description

@lucien-flwls

Simply put, using the to_realtime method for low and higher frame rates on a "00:00:00:00" timecode produces the following inconsistent results:

>>> Timecode(24, "00:00:00:00").to_realtime(as_float=False)
'00:00:00.042'
>>> Timecode(48000, "00:00:00:00").to_realtime(as_float=False)
'00:00:00.000'

which I believe is incorrect. My hunch is the addition of 42ms is due to the Timecode object always requiring a frame count of 1; 1000/24 = 41.66

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions