threefive 3.0.93__tar.gz → 3.0.95__tar.gz
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.
- {threefive-3.0.93 → threefive-3.0.95}/PKG-INFO +214 -110
- {threefive-3.0.93 → threefive-3.0.95}/README.md +213 -109
- {threefive-3.0.93 → threefive-3.0.95}/pyproject.toml +1 -1
- {threefive-3.0.93 → threefive-3.0.95}/threefive/__init__.py +3 -13
- {threefive-3.0.93 → threefive-3.0.95}/threefive/base.py +19 -17
- {threefive-3.0.93 → threefive-3.0.95}/threefive/cli.py +58 -50
- {threefive-3.0.93 → threefive-3.0.95}/threefive/gums.py +11 -13
- {threefive-3.0.93 → threefive-3.0.95}/threefive/hls.py +8 -10
- {threefive-3.0.93 → threefive-3.0.95}/threefive/new_reader.py +3 -2
- {threefive-3.0.93 → threefive-3.0.95}/threefive/stream.py +78 -52
- {threefive-3.0.93 → threefive-3.0.95}/threefive/throttle.py +4 -3
- {threefive-3.0.93 → threefive-3.0.95}/threefive/udp.py +2 -2
- {threefive-3.0.93 → threefive-3.0.95}/threefive/version.py +1 -1
- {threefive-3.0.93 → threefive-3.0.95}/threefive.egg-info/PKG-INFO +214 -110
- {threefive-3.0.93 → threefive-3.0.95}/LICENSE +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/setup.cfg +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/aac.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/bitn.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/bump.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/commands.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/crc.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/crctable.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/cue.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/descriptors.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/encode.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/hlsprofile.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/hlstags.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/iframes.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/packetdata.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/pmt.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/section.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/segment.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/segmentation.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/sixfix.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/speedo.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/streamtypes.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/stuff.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/superkabuki.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/upids.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/uxp.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive/xml.py +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive.egg-info/SOURCES.txt +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive.egg-info/dependency_links.txt +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive.egg-info/entry_points.txt +0 -0
- {threefive-3.0.93 → threefive-3.0.95}/threefive.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: threefive
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.95
|
|
4
4
|
Summary: threefive is The #1 SCTE-35 Decoder and Encoder on the Planet.
|
|
5
5
|
Author-email: AdrianofDoom <spam@iodisco.com>
|
|
6
6
|
License-Expression: Sleepycat
|
|
@@ -17,51 +17,81 @@ Description-Content-Type: text/markdown
|
|
|
17
17
|
License-File: LICENSE
|
|
18
18
|
Dynamic: license-file
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
[A Lot of Examples ](https://github.com/superkabuki/threefive_is_scte35/blob/main/examples) | [ Tip of the Week ](totw.md) | [ Cheap Tricks ](cheaptricks.md)
|
|
21
|
+
# [ threefive ]
|
|
22
|
+
|
|
21
23
|
* __Decodes SCTE-35__ from `MPEGTS`✔ `Base64`✔ `Bytes`✔ `DASH`✔ `Hex` ✔ `HLS`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
|
|
22
24
|
* __Encodes SCTE-35__ to `MPEGTS`✔ `Base64`✔ `Bytes`✔ `Hex`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
|
|
23
|
-
|
|
25
|
+
# [ version ]
|
|
26
|
+
### __latest is v.3.0.95__
|
|
24
27
|
|
|
25
|
-
## [ News ]
|
|
26
|
-
* __threefive__ now has support for __SCTE-35-2. Event Descriptors__ and __Property types__ from the recently published __2026 SCTE-35-2 Specification__.
|
|
27
|
-
* __threefive v3.0.93__ now supports HLS autodetection in the cli.
|
|
28
|
-
___
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
# [ really really quick start ]
|
|
30
|
+
|
|
31
|
+
* __Install__
|
|
32
|
+
```
|
|
33
|
+
python3 -m pip install threefive`
|
|
34
|
+
```
|
|
35
|
+
* decode SCTE-35 __base64__
|
|
36
|
+
```sed
|
|
37
|
+
threefive '/DAWAAAAAAAAAP/wBQb+AKmKxwAACzuu2Q=='
|
|
38
|
+
```
|
|
39
|
+
* decode SCTE-35 __hex__
|
|
40
|
+
```sed
|
|
41
|
+
threefive 0xfc301600000000000000fff00506fe00a98ac700000b3baed9
|
|
42
|
+
```
|
|
43
|
+
* decode SCTE-35 from __MPEGTS__
|
|
44
|
+
```sed
|
|
45
|
+
threefive https;//iodisco.com/longb2.ts
|
|
46
|
+
```
|
|
47
|
+
* decode SCTE-35 from __HLS__ ( a rendition or a master.m3u8)
|
|
48
|
+
```sed
|
|
49
|
+
threefive https://demo.unified-streaming.com/k8s/live/scte35.isml/.m3u8
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
* __threefive does a lot more__, that was just to get you started.
|
|
53
|
+
* RTFM
|
|
35
54
|
___
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
36
59
|
# [ Documentation ]
|
|
37
60
|
#### Need to inject SCTE-35 into HLS? [X9k3.](https://github.com/superkabuki/x9k3)
|
|
38
61
|
* [__web based SCTE-35 tools__](#web) - threefive and friends over http.
|
|
39
62
|
* [__install__](#install)
|
|
40
63
|
* [__quick start__](quickstart.md)
|
|
41
|
-
*
|
|
42
|
-
* [
|
|
43
|
-
|
|
64
|
+
* ___SCTE-35 on the command line___
|
|
65
|
+
* [ __the threefive cli tool__](#-cli-) _If you work with SCTE-35, this is as cool as it gets.
|
|
66
|
+
* __other included tools__
|
|
67
|
+
* [__scte35bump__](#scte35bump) _adjust SCTE-35 PTS in MPEGTS streams_
|
|
44
68
|
* [__scte35fix__](#scte35fix) _ffmpeg changes scte-35 streams into bin data, scte35fix changes them back._
|
|
45
69
|
* [__scte35inject__](scte35inject.md) _scte35inject inject scte-35 into mpegts._
|
|
46
70
|
* [__gums__](#gums) _gums is a multicast sender(server) for video_
|
|
47
|
-
*
|
|
71
|
+
* __the threefive library__ _cool code for the cool kids_.
|
|
48
72
|
* [__Using the threefive.Cue class__](lib.md)
|
|
49
|
-
* [__Using the threefive library__](
|
|
73
|
+
* [__Using the threefive library__](#-using-the-library-) _decode SCTE-35 with less than ten lines of code_
|
|
50
74
|
* * [threefive __Classes__](#classes) _threefive is OO, made to subclass_
|
|
51
75
|
* [__Cue__ Class](https://github.com/superkabuki/threefive/blob/main/cue.md) _this class you'll use often_
|
|
52
76
|
* [__Stream__ Class](https://github.com/superkabuki/threefive/blob/main/stream.md) _this is the class for parsing MPEGTS_
|
|
53
77
|
* [SCTE-35 __Sidecar Files__](https://github.com/superkabuki/SCTE-35_Sidecar_Files) _threefive supports SCTE-35 sidecar files_
|
|
54
|
-
* [SCTE-35 __HLS__](https://github.com/superkabuki/threefive/blob/main/hls.md) _parse SCTE-35 in
|
|
78
|
+
* [SCTE-35 __HLS__](https://github.com/superkabuki/threefive/blob/main/hls.md) _parse SCTE-35 in HLS in MPEGTS,CMAF, or fmP4__
|
|
55
79
|
* [SCTE-35 __XML__ ](https://github.com/superkabuki/SCTE-35/blob/main/xml.md) and [More __XML__](node.md) _threefive can parse and encode SCTE-35 xml_
|
|
56
80
|
* [__Encode__ SCTE-35](https://github.com/superkabuki/threefive/blob/main/encode.md) _threefive can encode SCTE-35 in every SCTE-35 format_
|
|
57
81
|
* [Make your __threefive__ script an executable with __cython__](cython.md) _threefive is compatible with all python tools_
|
|
58
82
|
</samp>
|
|
59
83
|
|
|
60
84
|
## [Install]
|
|
85
|
+
* __threefive__ is curretnly tested on python-3.11, python-3.14, python-3.14t, pypy-7.3.11 and pypy-7.3.22
|
|
86
|
+
|
|
87
|
+
* __threefive__ is some of the __fastest code__ you'll see on __python3__.
|
|
61
88
|
* __python3 via pip__
|
|
62
89
|
```rebol
|
|
63
90
|
python3 -mpip install threefive
|
|
64
91
|
```
|
|
92
|
+
|
|
93
|
+
* __threefive__ runs __five times faster on pypy3__,
|
|
94
|
+
* __threefive on pypy3__ can parse __mpegts__ at __over 1.5 GigaBytes__ a second, __single-threaded__.
|
|
65
95
|
* __pypy3 via pip__
|
|
66
96
|
```rebol
|
|
67
97
|
pypy3 -mpip install threefive
|
|
@@ -96,46 +126,28 @@ make install py3=python3.14
|
|
|
96
126
|
# works for any python in your path or use a full path if needed.
|
|
97
127
|
|
|
98
128
|
```
|
|
99
|
-
|
|
129
|
+
#### [⇧](#-documentation-)
|
|
100
130
|
___
|
|
101
131
|
|
|
102
|
-
|
|
103
|
-
The threefive cli tool
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
SCTE-35 can be parsed from MPEGTS over a variety of protocols.
|
|
115
|
-
* __SCTE-35 Input__: MPEGTS
|
|
116
|
-
* __Protocols__: pipes, files, stdin, http(s), multicast,SRT and UDP.
|
|
117
|
-
* __SCTE-35 Output__: JSON _(default)_ base64, bytes, hex, int, xml, and xmlbin.
|
|
118
|
-
|
|
119
|
-
|SCTE-35 Input | Protocol | SCTE-35 Output | Command |
|
|
120
|
-
|-------|------------|-----------|---------------------------------------------------------|
|
|
121
|
-
|__MPEGTS__|file|__JSON__ | __threefive__ video.ts |
|
|
122
|
-
|__.__|https|__base64__ | __threefive__ https://example.com/video.ts __base64__ |
|
|
123
|
-
|__.__|multicast|__bytes__ | __threefive__ udp://@235.3.5:3535 __bytes__ |
|
|
124
|
-
|__.__|SRT|__hex__ | __threefive__ srt://1.2.3.4:4201 __hex__ |
|
|
125
|
-
|__.__|UDP|__int__ | __threefive__ udp://10.10.10.10:1011 __int__ |
|
|
126
|
-
|__.__|Pipe|__xml__| cat video.ts \| __threefive__ __xml__ |
|
|
127
|
-
|__.__|stdin|__xml+bin__| __threefive__ __xmlbin__ < video.ts|
|
|
128
|
-
|
|
132
|
+
## [ CLI ]
|
|
133
|
+
* The threefive cli tool parses these SCTE-35 formats.
|
|
134
|
+
* Base64
|
|
135
|
+
* Hex
|
|
136
|
+
* HLS
|
|
137
|
+
* Integers
|
|
138
|
+
* JSON
|
|
139
|
+
* MPEGTS
|
|
140
|
+
* XML
|
|
141
|
+
* XMLBinary.
|
|
142
|
+
|
|
143
|
+
* Formats are auto-detected.
|
|
129
144
|
___
|
|
130
145
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
#### [ Parse SCTE-35 Cues ]
|
|
134
|
-
|
|
135
|
-
* The __default output__ is JSON
|
|
146
|
+
* __Parse SCTE-35 Cues__
|
|
136
147
|
* __SCTE-35 Inputs:__ base64, hex, int, JSON,int,xml,and xmlbin.
|
|
137
148
|
* __SCTE-35 Outputs:__ base64, bytes, hex, int,JSON, xml, and xmlbin.
|
|
138
149
|
* __Any Input can be used with Any Output__
|
|
150
|
+
* The __default output__ is JSON
|
|
139
151
|
|
|
140
152
|
> __Here are several examples.__
|
|
141
153
|
|
|
@@ -160,12 +172,37 @@ ___
|
|
|
160
172
|
|
|
161
173
|
___
|
|
162
174
|
|
|
163
|
-
|
|
175
|
+
* __Parse SCTE-35 from HLS__
|
|
176
|
+
```awk
|
|
177
|
+
threefive https://example.com/master.m3u8
|
|
178
|
+
```
|
|
179
|
+
___
|
|
180
|
+
|
|
181
|
+
* __Parse SCTE-35 from MPEGTS__
|
|
182
|
+
* SCTE-35 can be parsed from MPEGTS over a variety of protocols.
|
|
183
|
+
* __SCTE-35 Input__: MPEGTS
|
|
184
|
+
* __Protocols__: pipes, files, stdin, http(s), multicast,SRT and UDP.
|
|
185
|
+
* __SCTE-35 Output__: JSON _(default)_ base64, bytes, hex, int, xml, and xmlbin.
|
|
186
|
+
|
|
187
|
+
|SCTE-35 Input | Protocol | SCTE-35 Output | Command |
|
|
188
|
+
|-------|------------|-----------|---------------------------------------------------------|
|
|
189
|
+
|__MPEGTS__|file|__JSON__ | __threefive__ video.ts |
|
|
190
|
+
|__.__|https|__base64__ | __threefive__ https://example.com/video.ts __base64__ |
|
|
191
|
+
|__.__|multicast|__bytes__ | __threefive__ udp://@235.3.5:3535 __bytes__ |
|
|
192
|
+
|__.__|SRT|__hex__ | __threefive__ srt://1.2.3.4:4201 __hex__ |
|
|
193
|
+
|__.__|UDP|__int__ | __threefive__ udp://10.10.10.10:1011 __int__ |
|
|
194
|
+
|__.__|Pipe|__xml__| cat video.ts \| __threefive__ __xml__ |
|
|
195
|
+
|__.__|stdin|__xml+bin__| __threefive__ __xmlbin__ < video.ts|
|
|
196
|
+
|
|
197
|
+
___
|
|
198
|
+
|
|
164
199
|
|
|
165
|
-
#### [
|
|
166
|
-
|
|
167
|
-
*
|
|
168
|
-
*
|
|
200
|
+
#### [⇧](#-documentation-)
|
|
201
|
+
|
|
202
|
+
* [__Additional functionality__]
|
|
203
|
+
* threefive has several additional features, mostly related to MPEGTS streams.
|
|
204
|
+
* threefive has built in help, just type `threefive help`
|
|
205
|
+
* This table shows how to use them.
|
|
169
206
|
|
|
170
207
|
| Description | How To Use |
|
|
171
208
|
|------------------------------------------|---------------------------------------------------------|
|
|
@@ -182,35 +219,14 @@ ___
|
|
|
182
219
|
|
|
183
220
|
___
|
|
184
221
|
|
|
185
|
-
|
|
186
|
-
|
|
222
|
+
#### [⇧](#-documentation-)
|
|
187
223
|
|
|
188
|
-
### Other tools
|
|
189
|
-
threefive also comes with:
|
|
190
|
-
#### scte35bump
|
|
191
224
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
```js
|
|
195
|
-
$ scte35bump -h
|
|
196
|
-
usage: scte35bump [-h] [-i INFILE] [-o OUTFILE] [-s SECS]
|
|
197
|
-
|
|
198
|
-
options:
|
|
199
|
-
-h, --help show this help message and exit
|
|
200
|
-
-i INFILE, --infile INFILE
|
|
201
|
-
Input source, stdin, file, http(s), udp, or multicast
|
|
202
|
-
mpegts [default: sys.stdin.buffer]
|
|
203
|
-
-o OUTFILE, --outfile OUTFILE
|
|
204
|
-
Output file [default: sys.stdout.buffer]
|
|
205
|
-
-s SECS, --secs SECS Adjustment to apply to SCTE-35 Cues. [default: 0.0]
|
|
206
|
-
|
|
207
|
-
scte35bump is part of threefive.
|
|
208
|
-
```
|
|
209
|
-
___
|
|
225
|
+
##### Other tools
|
|
210
226
|
|
|
211
|
-
|
|
227
|
+
threefive also comes with:
|
|
212
228
|
|
|
213
|
-
|
|
229
|
+
##### gums
|
|
214
230
|
* the Grande Udp Multicast Server
|
|
215
231
|
|
|
216
232
|
```js
|
|
@@ -230,7 +246,7 @@ options:
|
|
|
230
246
|
gums is part of threefive.
|
|
231
247
|
```
|
|
232
248
|
|
|
233
|
-
|
|
249
|
+
#### [⇧](#-documentation-)
|
|
234
250
|
|
|
235
251
|
#### HLS
|
|
236
252
|
|
|
@@ -239,27 +255,115 @@ gums is part of threefive.
|
|
|
239
255
|
```js
|
|
240
256
|
$ threefive hls help
|
|
241
257
|
```
|
|
258
|
+
```smalltalk
|
|
242
259
|
|
|
243
260
|
[ Input ]
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
261
|
+
|
|
262
|
+
A m3u8 URI as input.
|
|
263
|
+
|
|
264
|
+
[what is supported]
|
|
265
|
+
|
|
266
|
+
M3U8 formats: master, rendition
|
|
267
|
+
Segment types: AAC, AC3, MPEGTS, CMAF,fMP4
|
|
268
|
+
Video codecs: mpeg2, h.264, h.265
|
|
269
|
+
Audio codecs: mpeg2, aac, ac3, mp3
|
|
270
|
+
Protocols: File, Http(s), Multicast, SRT, Stdin, UDP
|
|
271
|
+
Encryption: AES-128 (automatic)
|
|
272
|
+
|
|
273
|
+
[ SCTE-35 ]
|
|
274
|
+
|
|
275
|
+
SCTE-35 Embedded Cues as well as all SCTE-35 HLS Tags can be parsed.
|
|
276
|
+
|
|
277
|
+
[ Supported HLS Tags ]
|
|
278
|
+
|
|
279
|
+
* #EXT-OATCLS-SCTE35
|
|
280
|
+
* #EXT-X-CUE-OUT-CONT
|
|
281
|
+
* #EXT-X-DATERANGE
|
|
282
|
+
* #EXT-X-SCTE35
|
|
283
|
+
* #EXT-X-CUE-IN
|
|
284
|
+
* #EXT-X-CUE-OUT
|
|
285
|
+
|
|
286
|
+
[ SCTE-35 Parsing Profiles ]
|
|
287
|
+
|
|
288
|
+
SCTE-35 parsing can be fine tuned by setting a parsing profile.
|
|
289
|
+
|
|
290
|
+
running the command: threefive hls profile
|
|
291
|
+
|
|
292
|
+
will generate a default profile and write a file named hls.profile
|
|
293
|
+
in the current working directory.
|
|
294
|
+
|
|
295
|
+
a@fu:~$ cat hls.profile
|
|
296
|
+
|
|
297
|
+
expand_cues = False
|
|
298
|
+
parse_segments = False
|
|
299
|
+
parse_manifests = True
|
|
300
|
+
hls_tags = #EXT-OATCLS-SCTE35,#EXT-X-CUE-OUT-CONT,
|
|
301
|
+
#EXT-X-DATERANGE,#EXT-X-SCTE35,#EXT-X-CUE-IN,#EXT-X-CUE-OUT
|
|
302
|
+
command_types = 0x6,0x5
|
|
303
|
+
descriptor_tags = 0x2
|
|
304
|
+
starts = 0x22,0x30,0x32,0x34,0x36,0x44,0x46
|
|
305
|
+
|
|
306
|
+
( Integers are show in hex (base 16),
|
|
307
|
+
base 10 unsigned integers can also be used in hls.profile )
|
|
308
|
+
|
|
309
|
+
* expand_cues: set to True to show cues fully expanded as JSON
|
|
310
|
+
* parse_segments: set to true to enable parsing SCTE-35 from MPEGTS.
|
|
311
|
+
* parse_manifests: set to true to parse the m3u8 file for SCTE-35 HLS Tags.
|
|
312
|
+
* hls_tags: set which SCTE-35 HLS Tags to parse.
|
|
313
|
+
* command_types: set which Splice Commands to parse.
|
|
314
|
+
* descriptor_tags: set which Splice Descriptor Tags to parse.
|
|
315
|
+
* starts: set which Segmentation Type IDs to use to start breaks.
|
|
316
|
+
|
|
317
|
+
Edit the file as needed and then run threefive.
|
|
318
|
+
|
|
319
|
+
[ Profile Formatting Rules ]
|
|
320
|
+
|
|
321
|
+
* Values do not need to be quoted.
|
|
322
|
+
* Multiple values are separated by a commas.
|
|
323
|
+
* No partial line comments. Comments must be on a separate lines.
|
|
324
|
+
* Comments can be started with a # or //
|
|
325
|
+
* Integers can be base 10 or base 16
|
|
326
|
+
|
|
327
|
+
[ Output Files ]
|
|
328
|
+
scte35 hls creates a few output files.
|
|
329
|
+
|
|
330
|
+
* Profile rules applied to the output:
|
|
331
|
+
|
|
332
|
+
* hls.m3u8 - live playable rewrite of the m3u8 with the profile SCTE-35 rules.
|
|
333
|
+
* hls.sidecar - list of ( pts, HLS SCTE-35 tag ) pairs
|
|
334
|
+
|
|
335
|
+
* Profile rules not applied to the output:
|
|
336
|
+
|
|
337
|
+
* hlsflat.m3u8 - hls live streams are flattened out into a vod playlist.
|
|
338
|
+
When the live m3u8 first loads, every line is written to hlsflat.m3u8
|
|
339
|
+
Wnen a live m3u8 is reloaded, everything except the headers
|
|
340
|
+
is appended to hlsflat.m3u8. This give you a VOD style m3u8
|
|
341
|
+
so you can fast forward or rewind while playing.
|
|
342
|
+
GREAT for debugging SCTE-35 live hls.
|
|
343
|
+
|
|
344
|
+
[ Cool Features ]
|
|
345
|
+
|
|
346
|
+
* threefive can resume when started in the middle of an ad break.
|
|
347
|
+
|
|
348
|
+
2023-10-13T05:59:50.24Z Resuming Ad Break
|
|
349
|
+
2023-10-13T05:59:50.34Z Setting Break Timer to 17.733
|
|
350
|
+
2023-10-13T05:59:50.44Z Setting Break Duration to 60.067
|
|
351
|
+
|
|
352
|
+
[ Example Usage ]
|
|
353
|
+
|
|
354
|
+
* Show this help: threefive hls help
|
|
355
|
+
|
|
356
|
+
* Generate a new hls.profile: threefive hls profile
|
|
357
|
+
|
|
358
|
+
* parse an m3u8: scte35hls https://example.com/out/master.m3u8
|
|
359
|
+
|
|
360
|
+
|
|
258
361
|
```
|
|
259
362
|
|
|
260
|
-
|
|
363
|
+
#### [⇧](#-documentation-)
|
|
261
364
|
|
|
262
365
|
#### __scte35fix__
|
|
366
|
+
|
|
263
367
|
* when ffmpeg changes a SCTE-35 stream to bin data stream, scte35fix changes it back.
|
|
264
368
|
|
|
265
369
|
```js
|
|
@@ -284,9 +388,9 @@ scte35fix is part of threefive.
|
|
|
284
388
|
```
|
|
285
389
|
___
|
|
286
390
|
|
|
287
|
-
|
|
391
|
+
#### [⇧](#-documentation-)
|
|
288
392
|
|
|
289
|
-
|
|
393
|
+
## [ Using the library ]
|
|
290
394
|
* Let me show you how easy threefive is to use.
|
|
291
395
|
|
|
292
396
|
* reading SCTE-35 xml from a file
|
|
@@ -523,9 +627,9 @@ Type "help", "copyright", "credits" or "license" for more information.
|
|
|
523
627
|
```
|
|
524
628
|
___
|
|
525
629
|
|
|
526
|
-
|
|
630
|
+
#### [⇧](#-documentation-)
|
|
527
631
|
|
|
528
|
-
|
|
632
|
+
#### [web]
|
|
529
633
|
* [threefive SCTE-35 __Online Parser__](https://iodisco.com/scte35) __hosted on my server iodisco.com__
|
|
530
634
|
* Parse SCTE-35 in MPEGTS over HTTP, in your browser with[ Go, Wasm and Super Karate Death Car](https://bigcorp.ltd/gowasm) __hosted om my server bigcorp.ltd__
|
|
531
635
|
* Parse SCTE-35 in MPEGTS over HTTP, in your browser with[ threefive.js,javascript, and a little sed](https://bigcorp.ltd/bread) just to keep things interesting. __hosted om my server bigcorp.ltd__
|
|
@@ -534,17 +638,17 @@ ___
|
|
|
534
638
|
__hosted on my server iodisco.com__
|
|
535
639
|
___
|
|
536
640
|
|
|
537
|
-
|
|
641
|
+
#### [⇧](#-documentation-)
|
|
538
642
|
|
|
539
|
-
|
|
643
|
+
#### [XML]
|
|
540
644
|
* [XML](https://github.com/superkabuki/SCTE-35/blob/main/xml.md) __New__! _updated 05/01/2025_
|
|
541
645
|
|
|
542
|
-
|
|
646
|
+
#### [HLS]
|
|
543
647
|
* [Advanced Parsing of SCTE-35 in HLS with threefive](https://github.com/superkabuki/threefive/blob/main/hls.md) All HLS SCTE-35 tags, Sidecar Files, AAC ID3 Header Timestamps, SCTE-35 filters... Who loves you baby?
|
|
544
648
|
|
|
545
|
-
|
|
649
|
+
#### [⇧](#-documentation-)
|
|
546
650
|
|
|
547
|
-
|
|
651
|
+
#### [Classes]
|
|
548
652
|
* The python built in help is always the most up to date docs for the library.
|
|
549
653
|
|
|
550
654
|
```py3
|
|
@@ -562,9 +666,9 @@ a@fu:~/build7/threefive$ pypy3
|
|
|
562
666
|
|
|
563
667
|
___
|
|
564
668
|
|
|
565
|
-
|
|
669
|
+
#### [⇧](#-documentation-)
|
|
566
670
|
|
|
567
|
-
|
|
671
|
+
#### [threefive now supports SRT]
|
|
568
672
|
|
|
569
673
|
* _( You have to unmute the audio )_
|
|
570
674
|
|
|
@@ -579,9 +683,9 @@ https://github.com/user-attachments/assets/a323ea90-867f-480f-a55f-e9339263e511
|
|
|
579
683
|
|
|
580
684
|
___
|
|
581
685
|
|
|
582
|
-
|
|
686
|
+
#### [⇧](#-documentation-)
|
|
583
687
|
|
|
584
|
-
|
|
688
|
+
##### [more]
|
|
585
689
|
|
|
586
690
|
* [Encode SCTE-35](https://github.com/superkabuki/threefive/blob/main/encode.md) Some encoding code examples.
|
|
587
691
|
___
|