Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zimeon
Last active October 20, 2016 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zimeon/8fadd1fef051ebee0b8b75b8c470b089 to your computer and use it in GitHub Desktop.
Save zimeon/8fadd1fef051ebee0b8b75b8c470b089 to your computer and use it in GitHub Desktop.
Video info.json using approach of describing files/resources that exist
{
"@id": "http://inst.edu/video1/info.json",
// Profile says we are level0 so there is no construction of a URI
"profile": "http://iiif.io/api/video/0/level0.json",
// Here we describe the abstract source
"width": 2000,
"height": 2000,
"duration": 63,
// Here we map certain files that maybe versions of the whole video with
// different parameters, or selections from the video by different
// parameters. It is expected that the client will automatically be able
// to select the best of these to use.
"files": [
{ "@id": "http://hostA.com/video1",
"height": 2000,
"width": 2000,
"duration": 63,
"codec": "hls1"
},
{ "@id": "http://hostB.com/video2",
"height": 1000,
"width": 1000,
"duration": 31,
"codec": "mp4/blah"
},
{ "@id": "http://hostA.com/video1_seg1",
"height": 2000,
"width": 2000,
"duration": 10,
"start_time": 20,
"rotation": 22.3,
"codec": "hls1"
}
],
"attribution" : [
{
"@value" : "<span>Provided by Example Organization</span>",
"@language" : "en"
},{
"@value" : "<span>Darparwyd gan Enghraifft Sefydliad</span>",
"@language" : "cy"
}
],
"logo" : {
"@id" : "http://example.org/image-service/logo/full/200,/0/default.png",
"service" : {
"@context" : "http://iiif.io/api/image/2/context.json",
"@id" : "http://example.org/image-service/logo",
"profile" : "http://iiif.io/api/image/2/level2.json"
}
},
"rights" : [
"http://example.org/rights/license1.html",
"https://creativecommons.org/licenses/by/4.0/"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment