AcademySoftwareFoundation / EncodingGuidelines

This site provides guidelines for encoding frames to movie files for review.
https://academysoftwarefoundation.github.io/EncodingGuidelines/
Apache License 2.0
33 stars 6 forks source link

Path to config file inside OTIO file? #2

Closed richardssam closed 1 year ago

richardssam commented 1 year ago

Could we put the path to the config file inside the OTIO file?

That way if we need to re-run a test, we know which config file was used.

jminor commented 1 year ago

Yes, you can include arbitrary metadata in an OTIO, attached to the top-level Timeline, or any object within it (Clip, Track, etc.) See this doc for some guidance: https://github.com/AcademySoftwareFoundation/OpenTimelineIO/wiki/OpenTimelineIO-Application-Integrator's-Guide#the-metadata-dictionary

jminor commented 1 year ago

Ah, now I see that you're already using clip metadata.

"OTIO_SCHEMA": "Clip.2",
"metadata": {
    "aswf_enctests": {
        "source_info": {
            "duration": 1,
            "height": 135,
            "images": false,
            "in": 0,
            "path": "sources/enc_sources/thumbnails/chimera_cars_srgb.02516.jpg",
            "pix_fmt": "yuvj420p",
            "rate": 25.0,
            "width": 256
        }
    }
},
"name": "chimera_cars_srgb.02516",
...

You could do something similar at the Timeline level as well.