digirati-co-uk / iiif-manifest-editor

Create new IIIF Manifests. Modify existing manifests. Tell stories with IIIF.
https://manifest-editor.digirati.services/
MIT License
31 stars 2 forks source link

Media 5. AV Resource #197

Open tomcrane opened 2 years ago

tomcrane commented 2 years ago

Reference: https://tomcrane.github.io/scratch/me/media.html#case5

Data

Media is an AV resource. At the moment we will only detect this by file extension, we won’t try any analysis. In the future there can be a “ffprobe as a service” - and this could be a DLCS feature as we might have that there anyway. In the items list, it has the label Audio or Video.

{
    "id": "https:/example.org/anno1",
    "type": "Annotation",
    "motivation": "painting",
    "body": {
        "id": "https:/example.org/movies/rogue-one.mp4",
        "type": "Video",
        "width": 1920,
        "height": 1080,
        "duration": 8567.3,
        "format": "video/mp4"
    },
    "target": "https:/example.org/canvas1"
}

Editing Scenario

Audio and Video are just external resources and (atm) can’t have services. So all you can do is delete them.

In theory, you shouldn’t be able to edit their properties because ME will have learned the values through analysis. But it’s likely that you’ll need to correct these values - and we don’t have our ffprobe service anyway. So something similar to Note in 1 applies.

stephenwf commented 1 year ago

You can edit these, delete these and view them in the viewer (providing they are not using custom formats that require external libraries). The creator has not yet been added for video.