Python interface to add chapters to a video stream
#1
We have an add-on for a VOD service of a public broadcaster (VRT NU) and some of the VOD content comes with metadata including chapter information (basically a name + offset).
Now currently it does not seem possible (in Python at least) to add chapter information to an existing video stream (i.e. by adding the information to the ListItem).

However for our users it would be very useful to skip the current chapter and move to the next. This is supported by most of the News programs (usually covering multiple topics).
Some of these programs (e.g. program about local politics) take up to 2 hours with up to 12 items (interviews, debates, music).

The metadata looks like this:

{
...
    "chapters": [
        {
            "startTime": 56,
            "title": "Lerarentekort",
            "id": "8a5ad532-cf67-4e62-b5e7-43af03d4b93d",
            "externalImageUrl": null,
            "duration": "00:10:57",
            "thumbnail": ".thumb.319.319.png",
            "formattedStartTime": "00:00:56",
            "startTimeInMillis": 56353
        }, {
            "startTime": 713,
            "title": "Sociaal Incapabele Michiel",
            "id": "76303240-6ff4-4ef3-9f2b-c1e7ce1e8438",
            "externalImageUrl": null,
            "duration": "00:05:04",
            "thumbnail": ".thumb.319.319.png",
            "formattedStartTime": "00:11:53",
            "startTimeInMillis": 713485
        }, {
            "startTime": 1017,
            "title": "De aangever van Alex Agnew",
            "id": "3ab0cb0d-facb-463a-b75b-bbc761b3ad74",
            "externalImageUrl": null,
            "duration": "00:01:27",
            "thumbnail": ".thumb.319.319.png",
            "formattedStartTime": "00:16:57",
            "startTimeInMillis": 1017987
        },
...
    ],
...
    "programName": "de-ideale-wereld",
...
    "shortDescription": "Met Alex Agnew",
...
    "title": "Alex Agnew",
}
Reply
#2
This requests relates to the recent work to add Chapter support to streams for inputstream.adaptive. 16581 (PR)

A python interface for Kodi 19 would be very welcome.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Python interface to add chapters to a video stream00