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

Initial changes to support substreams #29

Merged
merged 7 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions APIs/schemas/constraint_set.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
"description": "This value indicates whether a Constraint Set is available to use immediately (true) or whether this is an offline capability which can be activated via some unspecified configuration mechanism (false). When the attribute is omitted its value is assumed to be true.",
"type": "boolean",
"default": true
},
"urn:x-nmos:substreams": {
"description": "This exposes any substream constraints.",
"type": "array",
"items": {
"$ref": "substream_constraints.json"
}
}
},
"patternProperties": {
Expand Down
28 changes: 28 additions & 0 deletions APIs/schemas/substream_constraints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes substream constraints",
"title": "Constraint Set",
"type": "object",
"minProperties": 1,
"properties": {
"description": {
"description": "Substream group description",
"type": "string"
},
"format": {
"description": "Substream format",
"type": "string",
"enum": ["video", "audio", "data"]
cristian-recoseanu marked this conversation as resolved.
Show resolved Hide resolved
},
"count": {
"$ref": "param_constraint_number.json"
},
"constraint_sets": {
"description": "Substream constraint sets",
"type": "array",
"items": {
"$ref": "constraint_set.json"
}
}
}
}
56 changes: 56 additions & 0 deletions docs/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,59 @@ For example, Type N receivers can be expected to correctly receive a stream orig

[TR-05]: https://www.videoservicesforum.org/download/technical_recommendations/VSF_TR-05_2018-06-23.pdf
"VSF TR-05: Essential Formats and Descriptions for Interoperability of SMPTE ST 2110-20 Video Signals"

### Substreams

The following example shows a MUX MPEG 2 transport stream receiver exposing substream constraints.

```json
{
"id": "9dd002e2-76a0-4edc-88ef-7d4aff4b2d26",
"transport": "rtp",
"format": "mux",
"caps": {
"media_types": [
"video/MP2T"
],
"constraint_sets": [
{
"urn:x-nmos:substreams": [
{
"description": "hi-res",
"format": "video",
"count": {
"enum": [
1
]
},
"constraint_sets": [...]
},
{
"description": "proxy",
"format": "video",
"count": {
"minimum": 0,
"maximum": 1
},
"constraint_sets": [...]
},
{
"format": "audio",
"count": {
"enum": [
0,
2,
4
]
},
"constraint_sets": [...]
}
]
},
{
"urn:x-nmos:substreams": [...]
}
]
}
}
```