@blockcast/mmt-container 2.2.0-main.cc3fe0684403 → 2.2.0-main.d79fbb738dc0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -2
- package/dist/__tests__/ad-creative-signer.d.ts +11 -0
- package/dist/__tests__/ad-creative-signer.d.ts.map +1 -0
- package/dist/__tests__/test-utils.d.ts +1 -0
- package/dist/__tests__/test-utils.d.ts.map +1 -1
- package/dist/ad-creative-record.d.ts +65 -0
- package/dist/ad-creative-record.d.ts.map +1 -0
- package/dist/ad-creative-record.js +2281 -0
- package/dist/ad-creative-record.js.map +7 -0
- package/dist/ad-creative-timeline.d.ts +102 -0
- package/dist/ad-creative-timeline.d.ts.map +1 -0
- package/dist/ad-creative-timeline.js +2529 -0
- package/dist/ad-creative-timeline.js.map +7 -0
- package/dist/block-policy.d.ts +128 -14
- package/dist/block-policy.d.ts.map +1 -1
- package/dist/block-policy.js +472 -27
- package/dist/block-policy.js.map +2 -2
- package/dist/browser-runtime.js +1040 -120
- package/dist/browser-runtime.js.map +4 -4
- package/dist/carp-catalog.d.ts +1 -0
- package/dist/carp-catalog.d.ts.map +1 -1
- package/dist/carp-catalog.js +34 -0
- package/dist/carp-catalog.js.map +4 -4
- package/dist/catalog-fec-params.js.map +1 -1
- package/dist/catalog-network-source.d.ts +1 -17
- package/dist/catalog-network-source.d.ts.map +1 -1
- package/dist/catalog-network-source.js +25 -19
- package/dist/catalog-network-source.js.map +3 -3
- package/dist/cmaf-block-assembler.d.ts +10 -2
- package/dist/cmaf-block-assembler.d.ts.map +1 -1
- package/dist/cmaf-block-assembler.js +30 -8
- package/dist/cmaf-block-assembler.js.map +3 -3
- package/dist/codec-utils.d.ts.map +1 -1
- package/dist/codec-utils.js +16 -3
- package/dist/codec-utils.js.map +2 -2
- package/dist/conceal-timeline.d.ts +24 -1
- package/dist/conceal-timeline.d.ts.map +1 -1
- package/dist/conceal-timeline.js +201 -4
- package/dist/conceal-timeline.js.map +3 -3
- package/dist/datagram-leg-deadline.d.ts +26 -2
- package/dist/datagram-leg-deadline.d.ts.map +1 -1
- package/dist/datagram-leg-deadline.js +14 -2
- package/dist/datagram-leg-deadline.js.map +2 -2
- package/dist/event-timeline-mmtp.d.ts +17 -0
- package/dist/event-timeline-mmtp.d.ts.map +1 -0
- package/dist/event-timeline-mmtp.js +3117 -0
- package/dist/event-timeline-mmtp.js.map +7 -0
- package/dist/fec-manager.d.ts +24 -3
- package/dist/fec-manager.d.ts.map +1 -1
- package/dist/fec-manager.js +531 -38
- package/dist/fec-manager.js.map +2 -2
- package/dist/feed-gate.d.ts +114 -0
- package/dist/feed-gate.d.ts.map +1 -0
- package/dist/feed-gate.js +175 -0
- package/dist/feed-gate.js.map +7 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +2 -2
- package/dist/iso-bmff-timing.d.ts +16 -0
- package/dist/iso-bmff-timing.d.ts.map +1 -1
- package/dist/iso-bmff-timing.js +28 -0
- package/dist/iso-bmff-timing.js.map +2 -2
- package/dist/mfu-reassembler.d.ts +2 -0
- package/dist/mfu-reassembler.d.ts.map +1 -1
- package/dist/mfu-reassembler.js +4 -2
- package/dist/mfu-reassembler.js.map +2 -2
- package/dist/mmtp-container-parser.d.ts +12 -0
- package/dist/mmtp-container-parser.d.ts.map +1 -1
- package/dist/mmtp-container-parser.js +73 -3
- package/dist/mmtp-container-parser.js.map +2 -2
- package/dist/mmtp-container-parser.no-modules.js +103 -25
- package/dist/mmtp-container-parser.no-modules.js.map +4 -4
- package/dist/mmtp-decode-pipeline.js +73 -3
- package/dist/mmtp-decode-pipeline.js.map +2 -2
- package/dist/mmtp-router.d.ts +20 -2
- package/dist/mmtp-router.d.ts.map +1 -1
- package/dist/mmtp-router.js +150 -23
- package/dist/mmtp-router.js.map +3 -3
- package/dist/multicast-auth-catalog.js.map +1 -1
- package/dist/multicast-input.js.map +1 -1
- package/dist/multicast-manager.d.ts +23 -2
- package/dist/multicast-manager.d.ts.map +1 -1
- package/dist/multicast-manager.js +737 -86
- package/dist/multicast-manager.js.map +3 -3
- package/dist/multicast-transport.js +44 -22
- package/dist/multicast-transport.js.map +2 -2
- package/dist/no-modules.js +98 -22
- package/dist/no-modules.js.map +4 -4
- package/dist/repair-fetch.d.ts +15 -7
- package/dist/repair-fetch.d.ts.map +1 -1
- package/dist/repair-fetch.js +34 -7
- package/dist/repair-fetch.js.map +2 -2
- package/dist/wasm-mfu-reassembler.js.map +2 -2
- package/dist/wasm-mmtp-container-parser.js +73 -3
- package/dist/wasm-mmtp-container-parser.js.map +2 -2
- package/package.json +17 -5
- package/schemas/catalog.schema.json +7 -2
- package/src/ad-creative-record.ts +276 -0
- package/src/ad-creative-timeline.ts +409 -0
- package/src/block-policy.ts +673 -42
- package/src/carp-catalog.ts +9 -0
- package/src/catalog-network-source.ts +3 -37
- package/src/cmaf-block-assembler.ts +17 -0
- package/src/codec-utils.ts +19 -3
- package/src/conceal-timeline.ts +60 -5
- package/src/datagram-leg-deadline.ts +34 -2
- package/src/event-timeline-mmtp.ts +55 -0
- package/src/fec-manager.ts +84 -12
- package/src/feed-gate.ts +295 -0
- package/src/index.ts +22 -0
- package/src/iso-bmff-timing.ts +33 -0
- package/src/mfu-reassembler.ts +4 -0
- package/src/mmtp-container-parser.ts +51 -5
- package/src/mmtp-router.ts +116 -4
- package/src/multicast-manager.ts +31 -0
- package/src/repair-fetch.ts +70 -19
- package/test-vectors/catalog/README.md +1 -0
- package/test-vectors/catalog/negative/event-timeline-empty-event-type.json +41 -0
- package/test-vectors/catalog/positive/event-timeline-ad-creative.json +41 -0
- package/test-vectors/catalog/positive/event-timeline-wallclock-no-depends.json +38 -0
- package/test-vectors/catalog/positive/multicast-event-timeline.json +81 -0
- package/test-vectors/catalog/section-codes.json +1 -0
- package/test-vectors/catalog-timing.json +184 -1
- package/test-vectors/frame-needs-v1.json +295 -0
- package/test-vectors/repair-policy-v1.json +98 -18
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"streamingFormat": "mmtp",
|
|
4
|
+
"streamingFormatVersion": "draft-ramadan-moq-mmt-00",
|
|
5
|
+
"tracks": [
|
|
6
|
+
{
|
|
7
|
+
"name": "video",
|
|
8
|
+
"packaging": "mmtp",
|
|
9
|
+
"isLive": true,
|
|
10
|
+
"codec": "avc1.640028",
|
|
11
|
+
"framerate": 30,
|
|
12
|
+
"width": 1920,
|
|
13
|
+
"height": 1080,
|
|
14
|
+
"mmtpMode": "mfu",
|
|
15
|
+
"timescale": 90000,
|
|
16
|
+
"groupDurationMs": 1000
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "audio",
|
|
20
|
+
"packaging": "mmtp",
|
|
21
|
+
"isLive": true,
|
|
22
|
+
"codec": "mp4a.40.2",
|
|
23
|
+
"samplerate": 48000,
|
|
24
|
+
"channelConfig": "2",
|
|
25
|
+
"mmtpMode": "mfu",
|
|
26
|
+
"timescale": 48000,
|
|
27
|
+
"groupDurationMs": 1000
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "scores",
|
|
31
|
+
"packaging": "eventtimeline",
|
|
32
|
+
"isLive": true,
|
|
33
|
+
"role": "eventtimeline",
|
|
34
|
+
"eventType": "com.example.sportscores",
|
|
35
|
+
"mimeType": "application/json"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"streamingFormat": "mmtp",
|
|
4
|
+
"streamingFormatVersion": "draft-ramadan-moq-mmt-00",
|
|
5
|
+
"tracks": [
|
|
6
|
+
{
|
|
7
|
+
"name": "video",
|
|
8
|
+
"packaging": "mmtp",
|
|
9
|
+
"isLive": true,
|
|
10
|
+
"codec": "avc1.640028",
|
|
11
|
+
"framerate": 30,
|
|
12
|
+
"width": 1920,
|
|
13
|
+
"height": 1080,
|
|
14
|
+
"mmtpMode": "mfu",
|
|
15
|
+
"timescale": 90000,
|
|
16
|
+
"groupDurationMs": 1000
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "audio",
|
|
20
|
+
"packaging": "mmtp",
|
|
21
|
+
"isLive": true,
|
|
22
|
+
"codec": "mp4a.40.2",
|
|
23
|
+
"samplerate": 48000,
|
|
24
|
+
"channelConfig": "2",
|
|
25
|
+
"mmtpMode": "mfu",
|
|
26
|
+
"timescale": 48000,
|
|
27
|
+
"groupDurationMs": 1000
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "ad-creative",
|
|
31
|
+
"packaging": "eventtimeline",
|
|
32
|
+
"isLive": true,
|
|
33
|
+
"role": "eventtimeline",
|
|
34
|
+
"eventType": "urn:svta:advertising-wg:ad-creative-signaling",
|
|
35
|
+
"mimeType": "application/json",
|
|
36
|
+
"depends": [
|
|
37
|
+
"video"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"multicast": {
|
|
42
|
+
"auth": {
|
|
43
|
+
"scheme": "bc-provenance",
|
|
44
|
+
"version": 2,
|
|
45
|
+
"sig": "ed25519",
|
|
46
|
+
"keys": [
|
|
47
|
+
{
|
|
48
|
+
"kid": 1,
|
|
49
|
+
"publicKey": "A6EHv_POEL4dcN0Y50vAmWfk1jCbpQ1fHdyGZBJVMbg",
|
|
50
|
+
"firstEpoch": 1
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"minEpoch": 17
|
|
54
|
+
},
|
|
55
|
+
"endpoints": [
|
|
56
|
+
{
|
|
57
|
+
"sourceAddress": "192.0.2.10",
|
|
58
|
+
"groupAddress": "232.1.1.1",
|
|
59
|
+
"port": 5000,
|
|
60
|
+
"bandwidth": 100000000,
|
|
61
|
+
"auth": {
|
|
62
|
+
"streamId": 1
|
|
63
|
+
},
|
|
64
|
+
"tracks": [
|
|
65
|
+
{
|
|
66
|
+
"name": "video",
|
|
67
|
+
"packetId": 1
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "audio",
|
|
71
|
+
"packetId": 2
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "ad-creative",
|
|
75
|
+
"packetId": 32512
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"negative": {
|
|
4
4
|
"archive-origin-with-path.json": { "outOfSection": "archive" },
|
|
5
5
|
"archive-unknown-field.json": { "outOfSection": "archive" },
|
|
6
|
+
"event-timeline-empty-event-type.json": { "outOfSection": "eventtimeline track fields (catalogEventTimelineTracks, @blockcast/mmt-base)" },
|
|
6
7
|
"fec-block-profile-missing.json": { "outOfSection": "FEC binding (validateFecCatalog; receiver outcomes in vectors/fec-catalog-00)" },
|
|
7
8
|
"fec-iso-symbol-size-below-floor.json": { "outOfSection": "FEC binding (validateFecCatalog; receiver outcomes in vectors/fec-catalog-00)" },
|
|
8
9
|
"fec-reed-solomon-iso-symbol-size-13.json": { "outOfSection": "FEC binding (validateFecCatalog; receiver outcomes in vectors/fec-catalog-00)" },
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"keyframeCadence, mediaUnitsPerSecond and groupDuration pin the neutral catalog rules native receiver adapters share (catalogKeyframeCadenceMs, catalogFecMediaUnitsPerSecond, catalogGroupDurationMs). They are NOT what libmmt's own receiver runs today: resolveCatalogTrackFec reads audio rate from sampleRate ?? samplerate (numeric strings admitted) with no endpoint or timescale fallback, so 'audio MP4-shaped timescale' resolves no rate there; computeBlockClassifierGeometry reads only keyframeInterval*. Converging those is a behaviour change, not part of this extraction.",
|
|
6
6
|
"deliveryWindow and trackFec run against libmmt's production paths (computeFecDeliveryWindowMs, resolveCatalogTrackFec), so an adapter that drops a catalog field (fec.reorderToleranceMs, say) fails here instead of in the field. An iso-ssbg1-v1 span that is 0 or absent keeps in-band geometry but supplies no elapsed-time deadline; local receiver retention remains bounded without inventing a catalog span.",
|
|
7
7
|
"interleaveDepth: every row names its D basis. 'access-unit' is what libmmt's receiver and the current publisher run today (D = round(span / (1000/framerate)), multicast-manager FecBlockMapper, fec-manager, block-policy); an adapter must match it to agree with them on block geometry. 'group' is draft-ramadan-moq-fec \u00a75.1/\u00a79 (D over the MoQ group duration); it is the target, not live, and moves only together with the producer contract (BLO-35597). Tick-only groupDurationTicks is authoritative for the group duration.",
|
|
8
|
-
"datagramLegDeadlines pins computeDatagramLegDeadlines: whether a player takes an \"mfu-datagram\" leg and the limits it runs on (mmt-02 4.3.1). Inputs come from the datagram entry, never from its \"mfu\" sibling. W = largest ceil(span + tolerance) of the decoded instances; take = base span > 0, G > 0, D > 0 and (W <= D or forced); joinDarkMs = ceil(G + W); darkMs = ceil(max(D, W)); noFrameMs = ceil(max(D, G + u + W)); confirmMs = base tolerance if positive, else u. An absent input field is absent, never null. No value is clamped."
|
|
8
|
+
"datagramLegDeadlines pins computeDatagramLegDeadlines: whether a player takes an \"mfu-datagram\" leg and the limits it runs on (mmt-02 4.3.1). Inputs come from the datagram entry, never from its \"mfu\" sibling. W = largest ceil(span + tolerance) of the decoded instances; take = base span > 0, G > 0, D > 0 and (W <= D or forced); joinDarkMs = ceil(G + W); darkMs = ceil(max(D, W)); noFrameMs = ceil(max(D, G + u + W)); confirmMs = base tolerance if positive, else u. An absent input field is absent, never null. No value is clamped.",
|
|
9
|
+
"datagramLegRetryDelay pins datagramLegRetryDelayMs: how long a player stays on the \"mfu\" sibling after a timed hand-back before it takes the \"mfu-datagram\" leg again. delay = ceil(joinDarkMs x 2^n x (1 + rand)); n = timed hand-backs in a row, rand in [0, 1) from the caller. Never below joinDarkMs: n not a finite number >= 0 counts as 0 (a fraction is floored), rand outside [0, 1) counts as 0; joinDarkMs not a finite number > 0 yields undefined (expect null). Non-finite numbers (NaN, Infinity) cannot be written in JSON and are pinned in the unit test."
|
|
9
10
|
],
|
|
10
11
|
"keyframeCadence": [
|
|
11
12
|
{
|
|
@@ -910,5 +911,187 @@
|
|
|
910
911
|
"fecWindowMs": 120
|
|
911
912
|
}
|
|
912
913
|
}
|
|
914
|
+
],
|
|
915
|
+
"datagramLegRetryDelay": [
|
|
916
|
+
{
|
|
917
|
+
"name": "first hand-back, no jitter: joinDarkMs (plan (b))",
|
|
918
|
+
"input": {
|
|
919
|
+
"joinDarkMs": 1120,
|
|
920
|
+
"n": 0,
|
|
921
|
+
"rand": 0
|
|
922
|
+
},
|
|
923
|
+
"expect": 1120
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "first hand-back, jitter near 1: just under 2 x joinDarkMs",
|
|
927
|
+
"input": {
|
|
928
|
+
"joinDarkMs": 1120,
|
|
929
|
+
"n": 0,
|
|
930
|
+
"rand": 0.999
|
|
931
|
+
},
|
|
932
|
+
"expect": 2239
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"name": "first hand-back, half jitter",
|
|
936
|
+
"input": {
|
|
937
|
+
"joinDarkMs": 1120,
|
|
938
|
+
"n": 0,
|
|
939
|
+
"rand": 0.5
|
|
940
|
+
},
|
|
941
|
+
"expect": 1680
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"name": "second hand-back in a row: 2.24 s",
|
|
945
|
+
"input": {
|
|
946
|
+
"joinDarkMs": 1120,
|
|
947
|
+
"n": 1,
|
|
948
|
+
"rand": 0
|
|
949
|
+
},
|
|
950
|
+
"expect": 2240
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"name": "second hand-back, half jitter",
|
|
954
|
+
"input": {
|
|
955
|
+
"joinDarkMs": 1120,
|
|
956
|
+
"n": 1,
|
|
957
|
+
"rand": 0.5
|
|
958
|
+
},
|
|
959
|
+
"expect": 3360
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "third hand-back in a row: 4.48 s",
|
|
963
|
+
"input": {
|
|
964
|
+
"joinDarkMs": 1120,
|
|
965
|
+
"n": 2,
|
|
966
|
+
"rand": 0
|
|
967
|
+
},
|
|
968
|
+
"expect": 4480
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "third hand-back, jitter near 1: just under 8.96 s",
|
|
972
|
+
"input": {
|
|
973
|
+
"joinDarkMs": 1120,
|
|
974
|
+
"n": 2,
|
|
975
|
+
"rand": 0.999
|
|
976
|
+
},
|
|
977
|
+
"expect": 8956
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"name": "a fractional product rounds up to a whole ms",
|
|
981
|
+
"input": {
|
|
982
|
+
"joinDarkMs": 1120,
|
|
983
|
+
"n": 0,
|
|
984
|
+
"rand": 0.0001
|
|
985
|
+
},
|
|
986
|
+
"expect": 1121
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"name": "negative n counts as 0",
|
|
990
|
+
"input": {
|
|
991
|
+
"joinDarkMs": 1120,
|
|
992
|
+
"n": -1,
|
|
993
|
+
"rand": 0
|
|
994
|
+
},
|
|
995
|
+
"expect": 1120
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"name": "fractional n is floored",
|
|
999
|
+
"input": {
|
|
1000
|
+
"joinDarkMs": 1120,
|
|
1001
|
+
"n": 1.9,
|
|
1002
|
+
"rand": 0
|
|
1003
|
+
},
|
|
1004
|
+
"expect": 2240
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "n not a number counts as 0",
|
|
1008
|
+
"input": {
|
|
1009
|
+
"joinDarkMs": 1120,
|
|
1010
|
+
"n": "2",
|
|
1011
|
+
"rand": 0.5
|
|
1012
|
+
},
|
|
1013
|
+
"expect": 1680
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "n null counts as 0",
|
|
1017
|
+
"input": {
|
|
1018
|
+
"joinDarkMs": 1120,
|
|
1019
|
+
"n": null,
|
|
1020
|
+
"rand": 0
|
|
1021
|
+
},
|
|
1022
|
+
"expect": 1120
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"name": "rand 1 is outside [0, 1): counts as 0",
|
|
1026
|
+
"input": {
|
|
1027
|
+
"joinDarkMs": 1120,
|
|
1028
|
+
"n": 1,
|
|
1029
|
+
"rand": 1
|
|
1030
|
+
},
|
|
1031
|
+
"expect": 2240
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "negative rand counts as 0",
|
|
1035
|
+
"input": {
|
|
1036
|
+
"joinDarkMs": 1120,
|
|
1037
|
+
"n": 0,
|
|
1038
|
+
"rand": -0.5
|
|
1039
|
+
},
|
|
1040
|
+
"expect": 1120
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"name": "rand above 1 counts as 0",
|
|
1044
|
+
"input": {
|
|
1045
|
+
"joinDarkMs": 1120,
|
|
1046
|
+
"n": 0,
|
|
1047
|
+
"rand": 3
|
|
1048
|
+
},
|
|
1049
|
+
"expect": 1120
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "rand not a number counts as 0",
|
|
1053
|
+
"input": {
|
|
1054
|
+
"joinDarkMs": 1120,
|
|
1055
|
+
"n": 0,
|
|
1056
|
+
"rand": "0.5"
|
|
1057
|
+
},
|
|
1058
|
+
"expect": 1120
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "joinDarkMs 0: no leg, undefined",
|
|
1062
|
+
"input": {
|
|
1063
|
+
"joinDarkMs": 0,
|
|
1064
|
+
"n": 0,
|
|
1065
|
+
"rand": 0
|
|
1066
|
+
},
|
|
1067
|
+
"expect": null
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"name": "negative joinDarkMs: undefined",
|
|
1071
|
+
"input": {
|
|
1072
|
+
"joinDarkMs": -1120,
|
|
1073
|
+
"n": 0,
|
|
1074
|
+
"rand": 0
|
|
1075
|
+
},
|
|
1076
|
+
"expect": null
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"name": "joinDarkMs not a number: undefined",
|
|
1080
|
+
"input": {
|
|
1081
|
+
"joinDarkMs": "1120",
|
|
1082
|
+
"n": 0,
|
|
1083
|
+
"rand": 0
|
|
1084
|
+
},
|
|
1085
|
+
"expect": null
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "joinDarkMs null: undefined",
|
|
1089
|
+
"input": {
|
|
1090
|
+
"joinDarkMs": null,
|
|
1091
|
+
"n": 0,
|
|
1092
|
+
"rand": 0
|
|
1093
|
+
},
|
|
1094
|
+
"expect": null
|
|
1095
|
+
}
|
|
913
1096
|
]
|
|
914
1097
|
}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"description": "Per-frame dependency statements in the priority byte of the MFU data-unit header (the map proposed for draft-ramadan-moq-mmt Section 5.3.4). Written from the map's two tables and from measured stream structures, NOT generated by any implementation, so that the libmmt feed gate and the moq_mmt muxer are each checked against the map rather than against each other.",
|
|
4
|
+
"scope": [
|
|
5
|
+
"The DU header does not change: priority is its 13th byte, dep_counter its 14th.",
|
|
6
|
+
"On a keyframe, 254 states that every frame up to the next keyframe follows the frame map, and any other value states nothing (255 and 0 are sent today).",
|
|
7
|
+
"On a frame that is not a keyframe, bit 7 is 0, bit 6 (U) is 1 when a later frame may need this one or the producer cannot tell, and bits 5 to 0 (D) count the places back to the anchor in the track's decode order, 1 to 62. 128, 0, 63, 64, 127 and every value above 128 state nothing.",
|
|
8
|
+
"An anchor states: once my anchor has been decoded correctly, I can be decoded correctly. It is never earlier than the latest keyframe.",
|
|
9
|
+
"frame rows are [value, D, U]. D is 0 where nothing is stated, and U is then 1.",
|
|
10
|
+
"A stream is one group in decode order, keyframe first. needs[i] lists every frame that frame i cannot be decoded without, as places in the group. noLaterFrameNeeds[i] is true only where a label in the bitstream binds it. priority[i] is the byte a producer writes: the anchor is the latest need when every other need is that frame or something it needs, else 128.",
|
|
11
|
+
"A receiver that does not conceal feeds a frame only if its anchor was fed since the keyframe. For each single lost frame of a stream, the frames it withholds must be exactly the frames whose needs reach the lost one."
|
|
12
|
+
],
|
|
13
|
+
"keyframe": { "followsMap": [254] },
|
|
14
|
+
"frame": [
|
|
15
|
+
[0, 0, 1],
|
|
16
|
+
[1, 1, 0],
|
|
17
|
+
[2, 2, 0],
|
|
18
|
+
[3, 3, 0],
|
|
19
|
+
[4, 4, 0],
|
|
20
|
+
[5, 5, 0],
|
|
21
|
+
[6, 6, 0],
|
|
22
|
+
[7, 7, 0],
|
|
23
|
+
[8, 8, 0],
|
|
24
|
+
[9, 9, 0],
|
|
25
|
+
[10, 10, 0],
|
|
26
|
+
[11, 11, 0],
|
|
27
|
+
[12, 12, 0],
|
|
28
|
+
[13, 13, 0],
|
|
29
|
+
[14, 14, 0],
|
|
30
|
+
[15, 15, 0],
|
|
31
|
+
[16, 16, 0],
|
|
32
|
+
[17, 17, 0],
|
|
33
|
+
[18, 18, 0],
|
|
34
|
+
[19, 19, 0],
|
|
35
|
+
[20, 20, 0],
|
|
36
|
+
[21, 21, 0],
|
|
37
|
+
[22, 22, 0],
|
|
38
|
+
[23, 23, 0],
|
|
39
|
+
[24, 24, 0],
|
|
40
|
+
[25, 25, 0],
|
|
41
|
+
[26, 26, 0],
|
|
42
|
+
[27, 27, 0],
|
|
43
|
+
[28, 28, 0],
|
|
44
|
+
[29, 29, 0],
|
|
45
|
+
[30, 30, 0],
|
|
46
|
+
[31, 31, 0],
|
|
47
|
+
[32, 32, 0],
|
|
48
|
+
[33, 33, 0],
|
|
49
|
+
[34, 34, 0],
|
|
50
|
+
[35, 35, 0],
|
|
51
|
+
[36, 36, 0],
|
|
52
|
+
[37, 37, 0],
|
|
53
|
+
[38, 38, 0],
|
|
54
|
+
[39, 39, 0],
|
|
55
|
+
[40, 40, 0],
|
|
56
|
+
[41, 41, 0],
|
|
57
|
+
[42, 42, 0],
|
|
58
|
+
[43, 43, 0],
|
|
59
|
+
[44, 44, 0],
|
|
60
|
+
[45, 45, 0],
|
|
61
|
+
[46, 46, 0],
|
|
62
|
+
[47, 47, 0],
|
|
63
|
+
[48, 48, 0],
|
|
64
|
+
[49, 49, 0],
|
|
65
|
+
[50, 50, 0],
|
|
66
|
+
[51, 51, 0],
|
|
67
|
+
[52, 52, 0],
|
|
68
|
+
[53, 53, 0],
|
|
69
|
+
[54, 54, 0],
|
|
70
|
+
[55, 55, 0],
|
|
71
|
+
[56, 56, 0],
|
|
72
|
+
[57, 57, 0],
|
|
73
|
+
[58, 58, 0],
|
|
74
|
+
[59, 59, 0],
|
|
75
|
+
[60, 60, 0],
|
|
76
|
+
[61, 61, 0],
|
|
77
|
+
[62, 62, 0],
|
|
78
|
+
[63, 0, 1],
|
|
79
|
+
[64, 0, 1],
|
|
80
|
+
[65, 1, 1],
|
|
81
|
+
[66, 2, 1],
|
|
82
|
+
[67, 3, 1],
|
|
83
|
+
[68, 4, 1],
|
|
84
|
+
[69, 5, 1],
|
|
85
|
+
[70, 6, 1],
|
|
86
|
+
[71, 7, 1],
|
|
87
|
+
[72, 8, 1],
|
|
88
|
+
[73, 9, 1],
|
|
89
|
+
[74, 10, 1],
|
|
90
|
+
[75, 11, 1],
|
|
91
|
+
[76, 12, 1],
|
|
92
|
+
[77, 13, 1],
|
|
93
|
+
[78, 14, 1],
|
|
94
|
+
[79, 15, 1],
|
|
95
|
+
[80, 16, 1],
|
|
96
|
+
[81, 17, 1],
|
|
97
|
+
[82, 18, 1],
|
|
98
|
+
[83, 19, 1],
|
|
99
|
+
[84, 20, 1],
|
|
100
|
+
[85, 21, 1],
|
|
101
|
+
[86, 22, 1],
|
|
102
|
+
[87, 23, 1],
|
|
103
|
+
[88, 24, 1],
|
|
104
|
+
[89, 25, 1],
|
|
105
|
+
[90, 26, 1],
|
|
106
|
+
[91, 27, 1],
|
|
107
|
+
[92, 28, 1],
|
|
108
|
+
[93, 29, 1],
|
|
109
|
+
[94, 30, 1],
|
|
110
|
+
[95, 31, 1],
|
|
111
|
+
[96, 32, 1],
|
|
112
|
+
[97, 33, 1],
|
|
113
|
+
[98, 34, 1],
|
|
114
|
+
[99, 35, 1],
|
|
115
|
+
[100, 36, 1],
|
|
116
|
+
[101, 37, 1],
|
|
117
|
+
[102, 38, 1],
|
|
118
|
+
[103, 39, 1],
|
|
119
|
+
[104, 40, 1],
|
|
120
|
+
[105, 41, 1],
|
|
121
|
+
[106, 42, 1],
|
|
122
|
+
[107, 43, 1],
|
|
123
|
+
[108, 44, 1],
|
|
124
|
+
[109, 45, 1],
|
|
125
|
+
[110, 46, 1],
|
|
126
|
+
[111, 47, 1],
|
|
127
|
+
[112, 48, 1],
|
|
128
|
+
[113, 49, 1],
|
|
129
|
+
[114, 50, 1],
|
|
130
|
+
[115, 51, 1],
|
|
131
|
+
[116, 52, 1],
|
|
132
|
+
[117, 53, 1],
|
|
133
|
+
[118, 54, 1],
|
|
134
|
+
[119, 55, 1],
|
|
135
|
+
[120, 56, 1],
|
|
136
|
+
[121, 57, 1],
|
|
137
|
+
[122, 58, 1],
|
|
138
|
+
[123, 59, 1],
|
|
139
|
+
[124, 60, 1],
|
|
140
|
+
[125, 61, 1],
|
|
141
|
+
[126, 62, 1],
|
|
142
|
+
[127, 0, 1],
|
|
143
|
+
[128, 0, 1],
|
|
144
|
+
[129, 0, 1],
|
|
145
|
+
[130, 0, 1],
|
|
146
|
+
[131, 0, 1],
|
|
147
|
+
[132, 0, 1],
|
|
148
|
+
[133, 0, 1],
|
|
149
|
+
[134, 0, 1],
|
|
150
|
+
[135, 0, 1],
|
|
151
|
+
[136, 0, 1],
|
|
152
|
+
[137, 0, 1],
|
|
153
|
+
[138, 0, 1],
|
|
154
|
+
[139, 0, 1],
|
|
155
|
+
[140, 0, 1],
|
|
156
|
+
[141, 0, 1],
|
|
157
|
+
[142, 0, 1],
|
|
158
|
+
[143, 0, 1],
|
|
159
|
+
[144, 0, 1],
|
|
160
|
+
[145, 0, 1],
|
|
161
|
+
[146, 0, 1],
|
|
162
|
+
[147, 0, 1],
|
|
163
|
+
[148, 0, 1],
|
|
164
|
+
[149, 0, 1],
|
|
165
|
+
[150, 0, 1],
|
|
166
|
+
[151, 0, 1],
|
|
167
|
+
[152, 0, 1],
|
|
168
|
+
[153, 0, 1],
|
|
169
|
+
[154, 0, 1],
|
|
170
|
+
[155, 0, 1],
|
|
171
|
+
[156, 0, 1],
|
|
172
|
+
[157, 0, 1],
|
|
173
|
+
[158, 0, 1],
|
|
174
|
+
[159, 0, 1],
|
|
175
|
+
[160, 0, 1],
|
|
176
|
+
[161, 0, 1],
|
|
177
|
+
[162, 0, 1],
|
|
178
|
+
[163, 0, 1],
|
|
179
|
+
[164, 0, 1],
|
|
180
|
+
[165, 0, 1],
|
|
181
|
+
[166, 0, 1],
|
|
182
|
+
[167, 0, 1],
|
|
183
|
+
[168, 0, 1],
|
|
184
|
+
[169, 0, 1],
|
|
185
|
+
[170, 0, 1],
|
|
186
|
+
[171, 0, 1],
|
|
187
|
+
[172, 0, 1],
|
|
188
|
+
[173, 0, 1],
|
|
189
|
+
[174, 0, 1],
|
|
190
|
+
[175, 0, 1],
|
|
191
|
+
[176, 0, 1],
|
|
192
|
+
[177, 0, 1],
|
|
193
|
+
[178, 0, 1],
|
|
194
|
+
[179, 0, 1],
|
|
195
|
+
[180, 0, 1],
|
|
196
|
+
[181, 0, 1],
|
|
197
|
+
[182, 0, 1],
|
|
198
|
+
[183, 0, 1],
|
|
199
|
+
[184, 0, 1],
|
|
200
|
+
[185, 0, 1],
|
|
201
|
+
[186, 0, 1],
|
|
202
|
+
[187, 0, 1],
|
|
203
|
+
[188, 0, 1],
|
|
204
|
+
[189, 0, 1],
|
|
205
|
+
[190, 0, 1],
|
|
206
|
+
[191, 0, 1],
|
|
207
|
+
[192, 0, 1],
|
|
208
|
+
[193, 0, 1],
|
|
209
|
+
[194, 0, 1],
|
|
210
|
+
[195, 0, 1],
|
|
211
|
+
[196, 0, 1],
|
|
212
|
+
[197, 0, 1],
|
|
213
|
+
[198, 0, 1],
|
|
214
|
+
[199, 0, 1],
|
|
215
|
+
[200, 0, 1],
|
|
216
|
+
[201, 0, 1],
|
|
217
|
+
[202, 0, 1],
|
|
218
|
+
[203, 0, 1],
|
|
219
|
+
[204, 0, 1],
|
|
220
|
+
[205, 0, 1],
|
|
221
|
+
[206, 0, 1],
|
|
222
|
+
[207, 0, 1],
|
|
223
|
+
[208, 0, 1],
|
|
224
|
+
[209, 0, 1],
|
|
225
|
+
[210, 0, 1],
|
|
226
|
+
[211, 0, 1],
|
|
227
|
+
[212, 0, 1],
|
|
228
|
+
[213, 0, 1],
|
|
229
|
+
[214, 0, 1],
|
|
230
|
+
[215, 0, 1],
|
|
231
|
+
[216, 0, 1],
|
|
232
|
+
[217, 0, 1],
|
|
233
|
+
[218, 0, 1],
|
|
234
|
+
[219, 0, 1],
|
|
235
|
+
[220, 0, 1],
|
|
236
|
+
[221, 0, 1],
|
|
237
|
+
[222, 0, 1],
|
|
238
|
+
[223, 0, 1],
|
|
239
|
+
[224, 0, 1],
|
|
240
|
+
[225, 0, 1],
|
|
241
|
+
[226, 0, 1],
|
|
242
|
+
[227, 0, 1],
|
|
243
|
+
[228, 0, 1],
|
|
244
|
+
[229, 0, 1],
|
|
245
|
+
[230, 0, 1],
|
|
246
|
+
[231, 0, 1],
|
|
247
|
+
[232, 0, 1],
|
|
248
|
+
[233, 0, 1],
|
|
249
|
+
[234, 0, 1],
|
|
250
|
+
[235, 0, 1],
|
|
251
|
+
[236, 0, 1],
|
|
252
|
+
[237, 0, 1],
|
|
253
|
+
[238, 0, 1],
|
|
254
|
+
[239, 0, 1],
|
|
255
|
+
[240, 0, 1],
|
|
256
|
+
[241, 0, 1],
|
|
257
|
+
[242, 0, 1],
|
|
258
|
+
[243, 0, 1],
|
|
259
|
+
[244, 0, 1],
|
|
260
|
+
[245, 0, 1],
|
|
261
|
+
[246, 0, 1],
|
|
262
|
+
[247, 0, 1],
|
|
263
|
+
[248, 0, 1],
|
|
264
|
+
[249, 0, 1],
|
|
265
|
+
[250, 0, 1],
|
|
266
|
+
[251, 0, 1],
|
|
267
|
+
[252, 0, 1],
|
|
268
|
+
[253, 0, 1],
|
|
269
|
+
[254, 0, 1],
|
|
270
|
+
[255, 0, 1]
|
|
271
|
+
],
|
|
272
|
+
"streams": [
|
|
273
|
+
{
|
|
274
|
+
"name": "chain",
|
|
275
|
+
"description": "A straight chain (x264, cast-like x265): each frame needs the frame before it.",
|
|
276
|
+
"needs": [[], [0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28]],
|
|
277
|
+
"noLaterFrameNeeds": [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false],
|
|
278
|
+
"priority": [254, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65]
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "three-layers-unlabelled",
|
|
282
|
+
"description": "Kvazaar H.265, three temporal layers, every frame TRAIL_R with temporal id 0: the encoder labels nothing, so no frame states that nothing needs it.",
|
|
283
|
+
"needs": [[], [0], [0], [0, 2], [0], [0, 4], [0, 4], [4, 6], [4], [4, 8], [4, 8], [8, 10], [8], [8, 12], [8, 12], [12, 14], [12], [12, 16], [12, 16], [16, 18], [16], [16, 20], [16, 20], [20, 22], [20], [20, 24], [20, 24], [24, 26], [24], [24, 28]],
|
|
284
|
+
"noLaterFrameNeeds": [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false],
|
|
285
|
+
"priority": [254, 65, 66, 65, 68, 65, 66, 65, 68, 65, 66, 65, 68, 65, 66, 65, 68, 65, 66, 65, 68, 65, 66, 65, 68, 65, 66, 65, 68, 65]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "one-b-frame",
|
|
289
|
+
"description": "x265 H.265 with one B-frame: each B-frame is TSA_N on the top sub-layer, a binding label that no later frame needs it.",
|
|
290
|
+
"needs": [[], [0], [0, 1], [0, 1], [0, 1, 3], [0, 1, 3], [1, 3, 5], [1, 3, 5], [3, 5, 7], [3, 5, 7], [5, 7, 9], [5, 7, 9], [7, 9, 11], [7, 9, 11], [9, 11, 13], [9, 11, 13], [11, 13, 15], [11, 13, 15], [13, 15, 17], [13, 15, 17], [15, 17, 19], [15, 17, 19], [17, 19, 21], [17, 19, 21], [19, 21, 23], [19, 21, 23], [21, 23, 25], [21, 23, 25], [23, 25, 27], [23, 25, 27]],
|
|
291
|
+
"noLaterFrameNeeds": [false, false, true, false, true, false, true, false, true, false, true, false, true, false, true, false, true, false, true, false, true, false, true, false, true, false, true, false, true, false],
|
|
292
|
+
"priority": [254, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66]
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|