threefive3 3.0.1__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.
@@ -0,0 +1,254 @@
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
+ Description: # `scte35`
10
+ threefive continued. SCTE-35 for the People.
11
+ # Now with Super Advanced Error Detection Stuff.
12
+ * Does not generate Fatal errors, it won't break your process.
13
+ * Displays what is in error and how to correct it.
14
+ * Works in the cli
15
+ * Works in code.
16
+ ![image](https://github.com/user-attachments/assets/581e0081-0c9d-4f9c-87a2-dd7f4cf3ce8c)
17
+
18
+
19
+
20
+
21
+
22
+ # `Install`
23
+ * python3 via pip
24
+ ```rebol
25
+ python3 -mpip install scte35
26
+ ```
27
+ * pypy3
28
+ ```rebol
29
+ pypy3 -mpip install scte35
30
+ ```
31
+ * from the git repo
32
+ ```rebol
33
+ git clone https://github.com/superkabuki/scte35.git
34
+ cd scte35
35
+ make install
36
+ ```
37
+ ___
38
+
39
+
40
+ # `The Cli tool`
41
+ > 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.
42
+
43
+ ### The cli tool installs automatically with pip or the Makefile.
44
+
45
+ * [__SCTE-35 Inputs__](#inputs)
46
+ * [__SCTE-35 Outputs__](#outputs)
47
+ * [__Parse __MPEGTS__ streams for __SCTE-35__](#streams)
48
+ * [Parse __SCTE-35__ in __hls__](#hls)
49
+ * [Display __MPEGTS__ __iframes__](#iframes)
50
+ * [Display raw __SCTE-35 packets__ from __video streams__](#packets)
51
+ * [__Repair SCTE-35 streams__ changed to __bin data__ by __ffmpeg__](#sixfix)
52
+
53
+
54
+ ### `Inputs`
55
+ * the cli can __decode SCTE-35__ from
56
+ * [__Base64__](#base64)
57
+ * [__Hex,__](#hex)
58
+ * [__HLS,__](#hls)
59
+ * [__JSON,__](#json)
60
+ * [__Xml,__](#xml)
61
+ * [__Xml+Bin__](#xmlbin)
62
+ * [__MPEGTS Streams__](#streams)
63
+
64
+ * Most __inputs__ are __auto-detected.__
65
+ * __stdin__ is __auto selected__ and __auto detected.__
66
+ * __SCTE-35 data is printed to stderr__
67
+ * __stdout is used when piping video__
68
+ #### `Base64`
69
+ * parse SCTE-35 encoded in Base64
70
+ ```rebol
71
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
72
+ ```
73
+
74
+ #### `Hex`
75
+ * parse SCTE-35 encoded in Hex
76
+ ```rebol
77
+ scte35 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
78
+ ```
79
+
80
+ #### `HLS`
81
+
82
+ * parse SCTE-35 from HLS manifests and segments
83
+ ```rebol
84
+ scte35 hls https://example.com/master.m3u8
85
+ ```
86
+
87
+ #### `Json`
88
+
89
+ ```rebol
90
+ cat json.json | scte35
91
+ ```
92
+ #### `Xml`
93
+ * you can make a xml.xml file like this:
94
+ * redirect 2 (stderr) to the file
95
+ ```awk
96
+ ./scte352 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
97
+ ```
98
+ * pass in
99
+ ```rebol
100
+ scte35 < xml.xml
101
+ ```
102
+ #### `Xmlbin`
103
+
104
+ ```rebol
105
+ scte35 < xmlbin.xml
106
+ ```
107
+ ___
108
+ ### `Outputs`
109
+
110
+ * the cli can __encode SCTE-35__ to
111
+ * [__Base64__](#base64-1)
112
+ * [__Bytes__](#bytes)
113
+ * [__Hex,__](#hex-1)
114
+ * [__HLS,__](#hls-1)
115
+ * [__JSON,__](#json-1)
116
+ * [__Xml,__](#xml-1)
117
+ * [__Xml+Bin__](#xmlbin-1)
118
+
119
+ * default output is `json`
120
+
121
+ #### json
122
+ ```rebol
123
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
124
+ ```
125
+
126
+ #### `base64`
127
+ ```rebol
128
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
129
+ ```
130
+ #### `bytes`
131
+ ```rebol
132
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
133
+ ```
134
+ #### `hex`
135
+ ```rebol
136
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
137
+ ```
138
+ #### `int`
139
+ ```rebol
140
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
141
+ ```
142
+ #### `xml`
143
+ ```rebol
144
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
145
+ ```
146
+ #### `xml+bin`
147
+ ```rebol
148
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
149
+ ```
150
+ ___
151
+ ## Streams
152
+ ### `File and Network Protocols`
153
+
154
+ #### `File`
155
+ ```rebol
156
+ scte35 video.ts
157
+ ```
158
+ #### `Http(s)`
159
+ ```rebol
160
+ scte35 https://example.com/master.m3u8
161
+ ```
162
+ #### `Multicast`
163
+ ```rebol
164
+ scte35 udp://@235.35.3.5:9999
165
+ ```
166
+ #### `stdin`
167
+ ```rebol
168
+ cat video.ts | scte35
169
+ ```
170
+ #### `Udp Unicast`
171
+ ```rebol
172
+ scte35 udp://10.0.0.7:5555
173
+ ```
174
+ ___
175
+
176
+ ### `hls`
177
+ * parse hls manifests and segments for SCTE-35
178
+ ```rebol
179
+ scte35 hls https://example.com/master.m3u8
180
+ ```
181
+ ___
182
+ ### `Iframes`
183
+ * Show iframes PTS in an MPEGTS video
184
+ ```rebol
185
+ scte35 iframes https://example.com/video.ts
186
+ ```
187
+ ___
188
+ ### `packets`
189
+ * Print raw SCTE-35 packets from multicast mpegts video
190
+ ```rebol
191
+ scte35 packets udp://@235.35.3.5:3535
192
+ ```
193
+ ___
194
+ ### `proxy`
195
+ * Parse a https stream and write raw video to stdout
196
+ ```rebol
197
+ scte35 proxy video.ts
198
+ ```
199
+ ___
200
+ ### `pts`
201
+ * Print PTS from mpegts video
202
+ ```rebol
203
+ scte35 pts video.ts
204
+ ```
205
+ ___
206
+ ### `sidecar`
207
+ * Parse a stream, write pts,write SCTE-35 Cues to sidecar.txt
208
+ ```rebol
209
+ scte35 sidecar video.ts
210
+ ```
211
+ ___
212
+ ### `sixfix`
213
+ * Fix SCTE-35 data mangled by ffmpeg
214
+ ```rebol
215
+ scte35 sixfix video.ts
216
+ ```
217
+ ___
218
+ ### `show`
219
+
220
+ * Probe mpegts video _( kind of like ffprobe )_
221
+ ```rebol
222
+ scte35 show video.ts
223
+ ```
224
+ ___
225
+ ### `version`
226
+ * Show version
227
+ ```rebol
228
+ scte35 version
229
+ ```
230
+ ___
231
+ ### `help`
232
+ * Help
233
+ ```rebol
234
+ scte35 help
235
+ ```
236
+ ___
237
+
238
+ Platform: UNKNOWN
239
+ Classifier: License :: OSI Approved :: Sleepycat License
240
+ Classifier: Environment :: Console
241
+ Classifier: Operating System :: OS Independent
242
+ Classifier: Operating System :: POSIX :: BSD :: OpenBSD
243
+ Classifier: Operating System :: POSIX :: BSD :: NetBSD
244
+ Classifier: Operating System :: POSIX :: Linux
245
+ Classifier: Operating System :: POSIX :: SCO
246
+ Classifier: Operating System :: Unix
247
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 3.1 or Earlier
248
+ Classifier: Operating System :: Other OS
249
+ Classifier: Topic :: Multimedia :: Video
250
+ Classifier: Programming Language :: Python :: 3.6
251
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
252
+ Classifier: Programming Language :: Python :: Implementation :: CPython
253
+ Requires-Python: >=3.6
254
+ Description-Content-Type: text/markdown
@@ -0,0 +1,228 @@
1
+ # `scte35`
2
+ threefive continued. SCTE-35 for the People.
3
+ # Now with Super Advanced Error Detection Stuff.
4
+ * Does not generate Fatal errors, it won't break your process.
5
+ * Displays what is in error and how to correct it.
6
+ * Works in the cli
7
+ * Works in code.
8
+ ![image](https://github.com/user-attachments/assets/581e0081-0c9d-4f9c-87a2-dd7f4cf3ce8c)
9
+
10
+
11
+
12
+
13
+
14
+ # `Install`
15
+ * python3 via pip
16
+ ```rebol
17
+ python3 -mpip install scte35
18
+ ```
19
+ * pypy3
20
+ ```rebol
21
+ pypy3 -mpip install scte35
22
+ ```
23
+ * from the git repo
24
+ ```rebol
25
+ git clone https://github.com/superkabuki/scte35.git
26
+ cd scte35
27
+ make install
28
+ ```
29
+ ___
30
+
31
+
32
+ # `The Cli tool`
33
+ > 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.
34
+
35
+ ### The cli tool installs automatically with pip or the Makefile.
36
+
37
+ * [__SCTE-35 Inputs__](#inputs)
38
+ * [__SCTE-35 Outputs__](#outputs)
39
+ * [__Parse __MPEGTS__ streams for __SCTE-35__](#streams)
40
+ * [Parse __SCTE-35__ in __hls__](#hls)
41
+ * [Display __MPEGTS__ __iframes__](#iframes)
42
+ * [Display raw __SCTE-35 packets__ from __video streams__](#packets)
43
+ * [__Repair SCTE-35 streams__ changed to __bin data__ by __ffmpeg__](#sixfix)
44
+
45
+
46
+ ### `Inputs`
47
+ * the cli can __decode SCTE-35__ from
48
+ * [__Base64__](#base64)
49
+ * [__Hex,__](#hex)
50
+ * [__HLS,__](#hls)
51
+ * [__JSON,__](#json)
52
+ * [__Xml,__](#xml)
53
+ * [__Xml+Bin__](#xmlbin)
54
+ * [__MPEGTS Streams__](#streams)
55
+
56
+ * Most __inputs__ are __auto-detected.__
57
+ * __stdin__ is __auto selected__ and __auto detected.__
58
+ * __SCTE-35 data is printed to stderr__
59
+ * __stdout is used when piping video__
60
+ #### `Base64`
61
+ * parse SCTE-35 encoded in Base64
62
+ ```rebol
63
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
64
+ ```
65
+
66
+ #### `Hex`
67
+ * parse SCTE-35 encoded in Hex
68
+ ```rebol
69
+ scte35 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
70
+ ```
71
+
72
+ #### `HLS`
73
+
74
+ * parse SCTE-35 from HLS manifests and segments
75
+ ```rebol
76
+ scte35 hls https://example.com/master.m3u8
77
+ ```
78
+
79
+ #### `Json`
80
+
81
+ ```rebol
82
+ cat json.json | scte35
83
+ ```
84
+ #### `Xml`
85
+ * you can make a xml.xml file like this:
86
+ * redirect 2 (stderr) to the file
87
+ ```awk
88
+ ./scte352 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
89
+ ```
90
+ * pass in
91
+ ```rebol
92
+ scte35 < xml.xml
93
+ ```
94
+ #### `Xmlbin`
95
+
96
+ ```rebol
97
+ scte35 < xmlbin.xml
98
+ ```
99
+ ___
100
+ ### `Outputs`
101
+
102
+ * the cli can __encode SCTE-35__ to
103
+ * [__Base64__](#base64-1)
104
+ * [__Bytes__](#bytes)
105
+ * [__Hex,__](#hex-1)
106
+ * [__HLS,__](#hls-1)
107
+ * [__JSON,__](#json-1)
108
+ * [__Xml,__](#xml-1)
109
+ * [__Xml+Bin__](#xmlbin-1)
110
+
111
+ * default output is `json`
112
+
113
+ #### json
114
+ ```rebol
115
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
116
+ ```
117
+
118
+ #### `base64`
119
+ ```rebol
120
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
121
+ ```
122
+ #### `bytes`
123
+ ```rebol
124
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
125
+ ```
126
+ #### `hex`
127
+ ```rebol
128
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
129
+ ```
130
+ #### `int`
131
+ ```rebol
132
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
133
+ ```
134
+ #### `xml`
135
+ ```rebol
136
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
137
+ ```
138
+ #### `xml+bin`
139
+ ```rebol
140
+ scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
141
+ ```
142
+ ___
143
+ ## Streams
144
+ ### `File and Network Protocols`
145
+
146
+ #### `File`
147
+ ```rebol
148
+ scte35 video.ts
149
+ ```
150
+ #### `Http(s)`
151
+ ```rebol
152
+ scte35 https://example.com/master.m3u8
153
+ ```
154
+ #### `Multicast`
155
+ ```rebol
156
+ scte35 udp://@235.35.3.5:9999
157
+ ```
158
+ #### `stdin`
159
+ ```rebol
160
+ cat video.ts | scte35
161
+ ```
162
+ #### `Udp Unicast`
163
+ ```rebol
164
+ scte35 udp://10.0.0.7:5555
165
+ ```
166
+ ___
167
+
168
+ ### `hls`
169
+ * parse hls manifests and segments for SCTE-35
170
+ ```rebol
171
+ scte35 hls https://example.com/master.m3u8
172
+ ```
173
+ ___
174
+ ### `Iframes`
175
+ * Show iframes PTS in an MPEGTS video
176
+ ```rebol
177
+ scte35 iframes https://example.com/video.ts
178
+ ```
179
+ ___
180
+ ### `packets`
181
+ * Print raw SCTE-35 packets from multicast mpegts video
182
+ ```rebol
183
+ scte35 packets udp://@235.35.3.5:3535
184
+ ```
185
+ ___
186
+ ### `proxy`
187
+ * Parse a https stream and write raw video to stdout
188
+ ```rebol
189
+ scte35 proxy video.ts
190
+ ```
191
+ ___
192
+ ### `pts`
193
+ * Print PTS from mpegts video
194
+ ```rebol
195
+ scte35 pts video.ts
196
+ ```
197
+ ___
198
+ ### `sidecar`
199
+ * Parse a stream, write pts,write SCTE-35 Cues to sidecar.txt
200
+ ```rebol
201
+ scte35 sidecar video.ts
202
+ ```
203
+ ___
204
+ ### `sixfix`
205
+ * Fix SCTE-35 data mangled by ffmpeg
206
+ ```rebol
207
+ scte35 sixfix video.ts
208
+ ```
209
+ ___
210
+ ### `show`
211
+
212
+ * Probe mpegts video _( kind of like ffprobe )_
213
+ ```rebol
214
+ scte35 show video.ts
215
+ ```
216
+ ___
217
+ ### `version`
218
+ * Show version
219
+ ```rebol
220
+ scte35 version
221
+ ```
222
+ ___
223
+ ### `help`
224
+ * Help
225
+ ```rebol
226
+ scte35 help
227
+ ```
228
+ ___