threefive3 3.0.1__py3-none-any.whl
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.
- scte35/__init__.py +27 -0
- scte35/base.py +189 -0
- scte35/bitn.py +193 -0
- scte35/commands.py +326 -0
- scte35/crc.py +49 -0
- scte35/cue.py +456 -0
- scte35/descriptors.py +549 -0
- scte35/hls.py +1171 -0
- scte35/packetdata.py +39 -0
- scte35/section.py +194 -0
- scte35/segment.py +128 -0
- scte35/segmentation.py +71 -0
- scte35/sixfix.py +194 -0
- scte35/spare.py +12 -0
- scte35/stream.py +686 -0
- scte35/streamtypes.py +127 -0
- scte35/sxp.py +350 -0
- scte35/upids.py +403 -0
- scte35/version.py +6 -0
- scte35/xml.py +355 -0
- threefive3-3.0.1.data/scripts/scte35 +365 -0
- threefive3-3.0.1.dist-info/LICENSE +24 -0
- threefive3-3.0.1.dist-info/METADATA +261 -0
- threefive3-3.0.1.dist-info/RECORD +26 -0
- threefive3-3.0.1.dist-info/WHEEL +5 -0
- threefive3-3.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
BSD 2-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, Adrian of Doom
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
16
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
17
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
18
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
19
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
20
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
21
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
22
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
23
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: threefive3
|
|
3
|
+
Version: 3.0.1
|
|
4
|
+
Summary: threefive3 is a SCTE-35 Decoder and Encoder for MPEGTS, HLS and Everything else.
|
|
5
|
+
Home-page: https://github.com/superkabuki/scte35
|
|
6
|
+
Author: Adrian of Doom
|
|
7
|
+
Author-email: spam@iodisco.com
|
|
8
|
+
License: UNKNOWN
|
|
9
|
+
Platform: UNKNOWN
|
|
10
|
+
Classifier: License :: OSI Approved :: Sleepycat License
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Operating System :: POSIX :: BSD :: OpenBSD
|
|
14
|
+
Classifier: Operating System :: POSIX :: BSD :: NetBSD
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Operating System :: POSIX :: SCO
|
|
17
|
+
Classifier: Operating System :: Unix
|
|
18
|
+
Classifier: Operating System :: Microsoft :: Windows :: Windows 3.1 or Earlier
|
|
19
|
+
Classifier: Operating System :: Other OS
|
|
20
|
+
Classifier: Topic :: Multimedia :: Video
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
22
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
23
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
|
+
Requires-Python: >=3.6
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
Requires-Dist: iframes (>=0.0.7)
|
|
27
|
+
Requires-Dist: m3ufu (>=0.0.89)
|
|
28
|
+
Requires-Dist: new-reader (>=0.1.11)
|
|
29
|
+
Requires-Dist: sideways (>=0.0.23)
|
|
30
|
+
Requires-Dist: pyaes
|
|
31
|
+
|
|
32
|
+
# `scte35`
|
|
33
|
+
threefive continued. SCTE-35 for the People.
|
|
34
|
+
# Now with Super Advanced Error Detection Stuff.
|
|
35
|
+
* Does not generate Fatal errors, it won't break your process.
|
|
36
|
+
* Displays what is in error and how to correct it.
|
|
37
|
+
* Works in the cli
|
|
38
|
+
* Works in code.
|
|
39
|
+

|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# `Install`
|
|
46
|
+
* python3 via pip
|
|
47
|
+
```rebol
|
|
48
|
+
python3 -mpip install scte35
|
|
49
|
+
```
|
|
50
|
+
* pypy3
|
|
51
|
+
```rebol
|
|
52
|
+
pypy3 -mpip install scte35
|
|
53
|
+
```
|
|
54
|
+
* from the git repo
|
|
55
|
+
```rebol
|
|
56
|
+
git clone https://github.com/superkabuki/scte35.git
|
|
57
|
+
cd scte35
|
|
58
|
+
make install
|
|
59
|
+
```
|
|
60
|
+
___
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# `The Cli tool`
|
|
64
|
+
> The cli audetects data being available on stdin and that allows it to autodetect the SCTE-35 format as well as MPEGTS steams. Now every SCTE-35 data format, except hls, is autodetected on the commandline, as well as stdin.HLS requires the `hls` ketyword.
|
|
65
|
+
|
|
66
|
+
### The cli tool installs automatically with pip or the Makefile.
|
|
67
|
+
|
|
68
|
+
* [__SCTE-35 Inputs__](#inputs)
|
|
69
|
+
* [__SCTE-35 Outputs__](#outputs)
|
|
70
|
+
* [__Parse __MPEGTS__ streams for __SCTE-35__](#streams)
|
|
71
|
+
* [Parse __SCTE-35__ in __hls__](#hls)
|
|
72
|
+
* [Display __MPEGTS__ __iframes__](#iframes)
|
|
73
|
+
* [Display raw __SCTE-35 packets__ from __video streams__](#packets)
|
|
74
|
+
* [__Repair SCTE-35 streams__ changed to __bin data__ by __ffmpeg__](#sixfix)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### `Inputs`
|
|
78
|
+
* the cli can __decode SCTE-35__ from
|
|
79
|
+
* [__Base64__](#base64)
|
|
80
|
+
* [__Hex,__](#hex)
|
|
81
|
+
* [__HLS,__](#hls)
|
|
82
|
+
* [__JSON,__](#json)
|
|
83
|
+
* [__Xml,__](#xml)
|
|
84
|
+
* [__Xml+Bin__](#xmlbin)
|
|
85
|
+
* [__MPEGTS Streams__](#streams)
|
|
86
|
+
|
|
87
|
+
* Most __inputs__ are __auto-detected.__
|
|
88
|
+
* __stdin__ is __auto selected__ and __auto detected.__
|
|
89
|
+
* __SCTE-35 data is printed to stderr__
|
|
90
|
+
* __stdout is used when piping video__
|
|
91
|
+
#### `Base64`
|
|
92
|
+
* parse SCTE-35 encoded in Base64
|
|
93
|
+
```rebol
|
|
94
|
+
scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
#### `Hex`
|
|
98
|
+
* parse SCTE-35 encoded in Hex
|
|
99
|
+
```rebol
|
|
100
|
+
scte35 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### `HLS`
|
|
104
|
+
|
|
105
|
+
* parse SCTE-35 from HLS manifests and segments
|
|
106
|
+
```rebol
|
|
107
|
+
scte35 hls https://example.com/master.m3u8
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
#### `Json`
|
|
111
|
+
|
|
112
|
+
```rebol
|
|
113
|
+
cat json.json | scte35
|
|
114
|
+
```
|
|
115
|
+
#### `Xml`
|
|
116
|
+
* you can make a xml.xml file like this:
|
|
117
|
+
* redirect 2 (stderr) to the file
|
|
118
|
+
```awk
|
|
119
|
+
./scte352 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
|
|
120
|
+
```
|
|
121
|
+
* pass in
|
|
122
|
+
```rebol
|
|
123
|
+
scte35 < xml.xml
|
|
124
|
+
```
|
|
125
|
+
#### `Xmlbin`
|
|
126
|
+
|
|
127
|
+
```rebol
|
|
128
|
+
scte35 < xmlbin.xml
|
|
129
|
+
```
|
|
130
|
+
___
|
|
131
|
+
### `Outputs`
|
|
132
|
+
|
|
133
|
+
* the cli can __encode SCTE-35__ to
|
|
134
|
+
* [__Base64__](#base64-1)
|
|
135
|
+
* [__Bytes__](#bytes)
|
|
136
|
+
* [__Hex,__](#hex-1)
|
|
137
|
+
* [__HLS,__](#hls-1)
|
|
138
|
+
* [__JSON,__](#json-1)
|
|
139
|
+
* [__Xml,__](#xml-1)
|
|
140
|
+
* [__Xml+Bin__](#xmlbin-1)
|
|
141
|
+
|
|
142
|
+
* default output is `json`
|
|
143
|
+
|
|
144
|
+
#### json
|
|
145
|
+
```rebol
|
|
146
|
+
scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
#### `base64`
|
|
150
|
+
```rebol
|
|
151
|
+
scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
|
|
152
|
+
```
|
|
153
|
+
#### `bytes`
|
|
154
|
+
```rebol
|
|
155
|
+
scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
|
|
156
|
+
```
|
|
157
|
+
#### `hex`
|
|
158
|
+
```rebol
|
|
159
|
+
scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
|
|
160
|
+
```
|
|
161
|
+
#### `int`
|
|
162
|
+
```rebol
|
|
163
|
+
scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
|
|
164
|
+
```
|
|
165
|
+
#### `xml`
|
|
166
|
+
```rebol
|
|
167
|
+
scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
|
|
168
|
+
```
|
|
169
|
+
#### `xml+bin`
|
|
170
|
+
```rebol
|
|
171
|
+
scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
|
|
172
|
+
```
|
|
173
|
+
___
|
|
174
|
+
## Streams
|
|
175
|
+
### `File and Network Protocols`
|
|
176
|
+
|
|
177
|
+
#### `File`
|
|
178
|
+
```rebol
|
|
179
|
+
scte35 video.ts
|
|
180
|
+
```
|
|
181
|
+
#### `Http(s)`
|
|
182
|
+
```rebol
|
|
183
|
+
scte35 https://example.com/master.m3u8
|
|
184
|
+
```
|
|
185
|
+
#### `Multicast`
|
|
186
|
+
```rebol
|
|
187
|
+
scte35 udp://@235.35.3.5:9999
|
|
188
|
+
```
|
|
189
|
+
#### `stdin`
|
|
190
|
+
```rebol
|
|
191
|
+
cat video.ts | scte35
|
|
192
|
+
```
|
|
193
|
+
#### `Udp Unicast`
|
|
194
|
+
```rebol
|
|
195
|
+
scte35 udp://10.0.0.7:5555
|
|
196
|
+
```
|
|
197
|
+
___
|
|
198
|
+
|
|
199
|
+
### `hls`
|
|
200
|
+
* parse hls manifests and segments for SCTE-35
|
|
201
|
+
```rebol
|
|
202
|
+
scte35 hls https://example.com/master.m3u8
|
|
203
|
+
```
|
|
204
|
+
___
|
|
205
|
+
### `Iframes`
|
|
206
|
+
* Show iframes PTS in an MPEGTS video
|
|
207
|
+
```rebol
|
|
208
|
+
scte35 iframes https://example.com/video.ts
|
|
209
|
+
```
|
|
210
|
+
___
|
|
211
|
+
### `packets`
|
|
212
|
+
* Print raw SCTE-35 packets from multicast mpegts video
|
|
213
|
+
```rebol
|
|
214
|
+
scte35 packets udp://@235.35.3.5:3535
|
|
215
|
+
```
|
|
216
|
+
___
|
|
217
|
+
### `proxy`
|
|
218
|
+
* Parse a https stream and write raw video to stdout
|
|
219
|
+
```rebol
|
|
220
|
+
scte35 proxy video.ts
|
|
221
|
+
```
|
|
222
|
+
___
|
|
223
|
+
### `pts`
|
|
224
|
+
* Print PTS from mpegts video
|
|
225
|
+
```rebol
|
|
226
|
+
scte35 pts video.ts
|
|
227
|
+
```
|
|
228
|
+
___
|
|
229
|
+
### `sidecar`
|
|
230
|
+
* Parse a stream, write pts,write SCTE-35 Cues to sidecar.txt
|
|
231
|
+
```rebol
|
|
232
|
+
scte35 sidecar video.ts
|
|
233
|
+
```
|
|
234
|
+
___
|
|
235
|
+
### `sixfix`
|
|
236
|
+
* Fix SCTE-35 data mangled by ffmpeg
|
|
237
|
+
```rebol
|
|
238
|
+
scte35 sixfix video.ts
|
|
239
|
+
```
|
|
240
|
+
___
|
|
241
|
+
### `show`
|
|
242
|
+
|
|
243
|
+
* Probe mpegts video _( kind of like ffprobe )_
|
|
244
|
+
```rebol
|
|
245
|
+
scte35 show video.ts
|
|
246
|
+
```
|
|
247
|
+
___
|
|
248
|
+
### `version`
|
|
249
|
+
* Show version
|
|
250
|
+
```rebol
|
|
251
|
+
scte35 version
|
|
252
|
+
```
|
|
253
|
+
___
|
|
254
|
+
### `help`
|
|
255
|
+
* Help
|
|
256
|
+
```rebol
|
|
257
|
+
scte35 help
|
|
258
|
+
```
|
|
259
|
+
___
|
|
260
|
+
|
|
261
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
scte35/__init__.py,sha256=MITZhoZFnPHKEYdnuv0sOKG8ICywTg6y7u9RH1QjpVc,485
|
|
2
|
+
scte35/base.py,sha256=nmlkjJ6PsFdBwoV40fMn_FuAsw4UnXyiczwperPZk7Q,5228
|
|
3
|
+
scte35/bitn.py,sha256=Qu-mxCGTHZ4euMn-1gbFjKV_QHIQAkd0QIQmtKkswaQ,5025
|
|
4
|
+
scte35/commands.py,sha256=PIX554QF-pGsEQBCil8u8FeWt_Oldsymqr1xRhiASTo,9907
|
|
5
|
+
scte35/crc.py,sha256=OsWwgoLBsxAfr4GQkAl74SWud645lEl6FX9ai_L48A4,948
|
|
6
|
+
scte35/cue.py,sha256=ziiPUhkcxwkhIxroEkUoXrCA1FVipOzjFqPn5IgZP00,13870
|
|
7
|
+
scte35/descriptors.py,sha256=xqdn0yYIzZHp7h9NxFAeqR07N7uQ9Zic1V2LI_uK51U,17892
|
|
8
|
+
scte35/hls.py,sha256=ybpWTsiRvM8GWUclDQqKSlIIh8aBU4rHJrMmfmb3nfw,35771
|
|
9
|
+
scte35/packetdata.py,sha256=NRN32RqY4JS9DHp07x3IV7rL811rFOROGtaJ7irWFxU,801
|
|
10
|
+
scte35/section.py,sha256=YfNQNrVqg1X-3HsFp4aiCe2AeY2XEtYTroDrzUvG_7U,5952
|
|
11
|
+
scte35/segment.py,sha256=T_dqyA1oWlNbEUBPbzhenLTHaHbxNiTqiN4W72KBdf8,3441
|
|
12
|
+
scte35/segmentation.py,sha256=Sbw9WjROERh5mN-rJx8MpEoOSPt48OfnEoFCprIgikk,2137
|
|
13
|
+
scte35/sixfix.py,sha256=aItmpeSPXTPxSyZWq0oOXRRTlk2d-A9nzfI7od5tbvs,5921
|
|
14
|
+
scte35/spare.py,sha256=FzwY-u14t_0216zuoVEr2jZ_EdCildRowFcJlNVUL1o,196
|
|
15
|
+
scte35/stream.py,sha256=Cc0gGk6fh54iynAYMGkdWztdnVNJ-sYo74Zdjlhj3wk,20000
|
|
16
|
+
scte35/streamtypes.py,sha256=05WQMPXi9nnGmLUzSD3yeaKnJwbJ1pFMi4YoDmgC7I8,3435
|
|
17
|
+
scte35/sxp.py,sha256=8WmZgmKYYyr7xy4ink1FFs5Df-PYlQhqnahXq1OCxOw,11144
|
|
18
|
+
scte35/upids.py,sha256=DR9NsL8pMLDOAWbXZsMEUGwU_TYIe3ooxVGdlZlPJRA,10915
|
|
19
|
+
scte35/version.py,sha256=10IgOmhLrsrYJLDtqaDAkdktqpR9WxiFSXZQKUlJbvY,80
|
|
20
|
+
scte35/xml.py,sha256=m9KLrlg0yVbdkvd63AJQVcuKHscFtBdu5BrqRKCSulw,8873
|
|
21
|
+
threefive3-3.0.1.data/scripts/scte35,sha256=4UJvXr2HkFv4Jhjj0WVmcTOXINowV6-M_5fmHX2oPQc,8042
|
|
22
|
+
threefive3-3.0.1.dist-info/LICENSE,sha256=KFez_WzJe-ZZi8kSTVweMNaxMahEAFeFytzr4D5Mhao,1303
|
|
23
|
+
threefive3-3.0.1.dist-info/METADATA,sha256=oP0eVfz3X1UStKCLrZTrqVYi-81-pv3nkZARPimLiKo,5960
|
|
24
|
+
threefive3-3.0.1.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
25
|
+
threefive3-3.0.1.dist-info/top_level.txt,sha256=sLN48-gC88iASDE_knX0msgzKE5SbBYU1ELGdj9VODw,7
|
|
26
|
+
threefive3-3.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
scte35
|