parse-exr-header icon indicating copy to clipboard operation
parse-exr-header copied to clipboard

Terrific work!

Open zachlewis opened this issue 4 years ago • 3 comments

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...

👍

zachlewis avatar Jan 25 '21 18:01 zachlewis

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!

vvzen avatar Jan 26 '21 20:01 vvzen

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),
    )

Marcuzzz avatar Nov 22 '22 08:11 Marcuzzz

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! :)

vvzen avatar Nov 27 '22 14:11 vvzen