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

Media 5. AV Resource #197

Open
tomcrane opened this issue Jun 28, 2022 · 1 comment
Open

Media 5. AV Resource #197

tomcrane opened this issue Jun 28, 2022 · 1 comment

Comments

@tomcrane
Copy link
Contributor

tomcrane commented Jun 28, 2022

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
Copy link
Member

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.

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

No branches or pull requests

2 participants