Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrific work! #4

Open
zachlewis opened this issue Jan 25, 2021 · 3 comments
Open

Terrific work! #4

zachlewis opened this issue Jan 25, 2021 · 3 comments

Comments

@zachlewis
Copy link

Not an actual issue, just a thank-you. Having unsuccessfully attempted something similar myself, I can appreciate how much of a headache this is!

In particular, thanks for the attention given to chromaticities metadata -- it's data I'm specifically interested in, yet it's surprisingly often ignored or cast to a string by other exr metadata-scraping implementations, I guess owing to the unusual datatype...

👍

@vvzen
Copy link
Owner

vvzen commented Jan 26, 2021

This actually made my day. :)
This repo was a bit of hobby project, so I'm really glad that you found it useful!
Thanks for your kindness!

@Marcuzzz
Copy link

I also like the work you have done!!
Any chance you know how to go from timeAndFlags to the actual timecode?
It tried to parse the timeAndFlags integer but it doesn't seem to be accurate...

def frames_to_timecode(frames, framerate):
    return "{0:02d}:{1:02d}:{2:02d}:{3:02d}".format(
        int(frames / (3600 * framerate)),
        int(frames / (60 * framerate) % 60),
        int(frames / framerate % 60),
        int(frames % framerate),
    )

@vvzen
Copy link
Owner

vvzen commented Nov 27, 2022

Hi @Marcuzzz !
do you mind opening a new issue? It's been a while so I'd need to refresh my memory on what timeAndFlags is actually meant to represent. In the meantime, you might want to have a look at https://opentimelineio.readthedocs.io/en/latest/ , if you're working with timecodes, frames and time, since it gets really complex quite quickly! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants