threefive3 3.0.1__tar.gz → 3.0.5__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.
- {threefive3-3.0.1 → threefive3-3.0.5}/PKG-INFO +43 -42
- {threefive3-3.0.1 → threefive3-3.0.5}/README.md +41 -36
- threefive3-3.0.1/bin/scte35 → threefive3-3.0.5/bin/threefive3 +32 -35
- {threefive3-3.0.1 → threefive3-3.0.5}/setup.py +5 -10
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/commands.py +0 -1
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/cue.py +34 -36
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/descriptors.py +15 -10
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/hls.py +64 -41
- threefive3-3.0.5/threefive3/iframes.py +141 -0
- threefive3-3.0.5/threefive3/new_reader.py +132 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/segment.py +6 -6
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/sixfix.py +37 -27
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/spare.py +1 -1
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/stream.py +6 -6
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/streamtypes.py +1 -1
- threefive3-3.0.5/threefive3/sxp.py +79 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/upids.py +7 -3
- threefive3-3.0.5/threefive3/version.py +10 -0
- threefive3-3.0.5/threefive3/x2c.py +236 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/xml.py +2 -2
- {threefive3-3.0.1 → threefive3-3.0.5}/threefive3.egg-info/PKG-INFO +43 -42
- threefive3-3.0.5/threefive3.egg-info/SOURCES.txt +31 -0
- {threefive3-3.0.1 → threefive3-3.0.5}/threefive3.egg-info/requires.txt +0 -2
- threefive3-3.0.5/threefive3.egg-info/top_level.txt +1 -0
- threefive3-3.0.1/scte35/sxp.py +0 -350
- threefive3-3.0.1/scte35/version.py +0 -6
- threefive3-3.0.1/threefive3.egg-info/SOURCES.txt +0 -28
- threefive3-3.0.1/threefive3.egg-info/top_level.txt +0 -1
- {threefive3-3.0.1 → threefive3-3.0.5}/setup.cfg +0 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/__init__.py +0 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/base.py +0 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/bitn.py +0 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/crc.py +0 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/packetdata.py +0 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/section.py +0 -0
- {threefive3-3.0.1/scte35 → threefive3-3.0.5/threefive3}/segmentation.py +0 -0
- {threefive3-3.0.1 → threefive3-3.0.5}/threefive3.egg-info/dependency_links.txt +0 -0
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: threefive3
|
|
3
|
-
Version: 3.0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 3.0.5
|
|
4
|
+
Summary: threefive continued.
|
|
5
5
|
Home-page: https://github.com/superkabuki/scte35
|
|
6
6
|
Author: Adrian of Doom
|
|
7
7
|
Author-email: spam@iodisco.com
|
|
8
8
|
License: UNKNOWN
|
|
9
|
-
Description: #
|
|
9
|
+
Description: # <s>threefive</s>
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
|
|
10
13
|
threefive continued. SCTE-35 for the People.
|
|
11
|
-
# Now with Super Advanced Error Detection Stuff.
|
|
14
|
+
# Now with Super Advanced Error Detection and Stuff.
|
|
12
15
|
* Does not generate Fatal errors, it won't break your process.
|
|
13
16
|
* Displays what is in error and how to correct it.
|
|
14
17
|
* Works in the cli
|
|
15
18
|
* Works in code.
|
|
16
19
|

|
|
17
20
|
|
|
21
|
+

|
|
18
22
|
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
|
|
22
24
|
# `Install`
|
|
23
25
|
* python3 via pip
|
|
24
26
|
```rebol
|
|
25
|
-
python3 -mpip install
|
|
27
|
+
python3 -mpip install threefive3
|
|
26
28
|
```
|
|
27
29
|
* pypy3
|
|
28
30
|
```rebol
|
|
29
|
-
pypy3 -mpip install
|
|
31
|
+
pypy3 -mpip install threefive3
|
|
30
32
|
```
|
|
31
33
|
* from the git repo
|
|
32
34
|
```rebol
|
|
@@ -36,7 +38,6 @@ Description: # `scte35`
|
|
|
36
38
|
```
|
|
37
39
|
___
|
|
38
40
|
|
|
39
|
-
|
|
40
41
|
# `The Cli tool`
|
|
41
42
|
> 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
|
|
|
@@ -68,41 +69,41 @@ Description: # `scte35`
|
|
|
68
69
|
#### `Base64`
|
|
69
70
|
* parse SCTE-35 encoded in Base64
|
|
70
71
|
```rebol
|
|
71
|
-
|
|
72
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
|
|
72
73
|
```
|
|
73
74
|
|
|
74
75
|
#### `Hex`
|
|
75
76
|
* parse SCTE-35 encoded in Hex
|
|
76
77
|
```rebol
|
|
77
|
-
|
|
78
|
+
threefive3 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
|
|
78
79
|
```
|
|
79
80
|
|
|
80
81
|
#### `HLS`
|
|
81
82
|
|
|
82
83
|
* parse SCTE-35 from HLS manifests and segments
|
|
83
84
|
```rebol
|
|
84
|
-
|
|
85
|
+
threefive3 hls https://example.com/master.m3u8
|
|
85
86
|
```
|
|
86
87
|
|
|
87
88
|
#### `Json`
|
|
88
89
|
|
|
89
90
|
```rebol
|
|
90
|
-
cat json.json |
|
|
91
|
+
cat json.json | threefive3
|
|
91
92
|
```
|
|
92
93
|
#### `Xml`
|
|
93
94
|
* you can make a xml.xml file like this:
|
|
94
95
|
* redirect 2 (stderr) to the file
|
|
95
96
|
```awk
|
|
96
|
-
./
|
|
97
|
+
./threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
|
|
97
98
|
```
|
|
98
99
|
* pass in
|
|
99
100
|
```rebol
|
|
100
|
-
|
|
101
|
+
threefive3 < xml.xml
|
|
101
102
|
```
|
|
102
103
|
#### `Xmlbin`
|
|
103
104
|
|
|
104
105
|
```rebol
|
|
105
|
-
|
|
106
|
+
threefive3 < xmlbin.xml
|
|
106
107
|
```
|
|
107
108
|
___
|
|
108
109
|
### `Outputs`
|
|
@@ -120,32 +121,32 @@ Description: # `scte35`
|
|
|
120
121
|
|
|
121
122
|
#### json
|
|
122
123
|
```rebol
|
|
123
|
-
|
|
124
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
|
|
124
125
|
```
|
|
125
126
|
|
|
126
127
|
#### `base64`
|
|
127
128
|
```rebol
|
|
128
|
-
|
|
129
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
|
|
129
130
|
```
|
|
130
131
|
#### `bytes`
|
|
131
132
|
```rebol
|
|
132
|
-
|
|
133
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
|
|
133
134
|
```
|
|
134
135
|
#### `hex`
|
|
135
136
|
```rebol
|
|
136
|
-
|
|
137
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
|
|
137
138
|
```
|
|
138
139
|
#### `int`
|
|
139
140
|
```rebol
|
|
140
|
-
|
|
141
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
|
|
141
142
|
```
|
|
142
143
|
#### `xml`
|
|
143
144
|
```rebol
|
|
144
|
-
|
|
145
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
|
|
145
146
|
```
|
|
146
147
|
#### `xml+bin`
|
|
147
148
|
```rebol
|
|
148
|
-
|
|
149
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
|
|
149
150
|
```
|
|
150
151
|
___
|
|
151
152
|
## Streams
|
|
@@ -153,88 +154,92 @@ Description: # `scte35`
|
|
|
153
154
|
|
|
154
155
|
#### `File`
|
|
155
156
|
```rebol
|
|
156
|
-
|
|
157
|
+
threefive3 video.ts
|
|
157
158
|
```
|
|
158
159
|
#### `Http(s)`
|
|
159
160
|
```rebol
|
|
160
|
-
|
|
161
|
+
threefive3 https://example.com/master.m3u8
|
|
161
162
|
```
|
|
162
163
|
#### `Multicast`
|
|
163
164
|
```rebol
|
|
164
|
-
|
|
165
|
+
threefive3 udp://@235.35.3.5:9999
|
|
165
166
|
```
|
|
166
167
|
#### `stdin`
|
|
167
168
|
```rebol
|
|
168
|
-
cat video.ts |
|
|
169
|
+
cat video.ts | threefive3
|
|
169
170
|
```
|
|
170
171
|
#### `Udp Unicast`
|
|
171
172
|
```rebol
|
|
172
|
-
|
|
173
|
+
threefive3 udp://10.0.0.7:5555
|
|
173
174
|
```
|
|
174
175
|
___
|
|
175
176
|
|
|
176
177
|
### `hls`
|
|
177
178
|
* parse hls manifests and segments for SCTE-35
|
|
178
179
|
```rebol
|
|
179
|
-
|
|
180
|
+
threefive3 hls https://example.com/master.m3u8
|
|
180
181
|
```
|
|
181
182
|
___
|
|
182
183
|
### `Iframes`
|
|
183
184
|
* Show iframes PTS in an MPEGTS video
|
|
184
185
|
```rebol
|
|
185
|
-
|
|
186
|
+
threefive3 iframes https://example.com/video.ts
|
|
186
187
|
```
|
|
187
188
|
___
|
|
188
189
|
### `packets`
|
|
189
190
|
* Print raw SCTE-35 packets from multicast mpegts video
|
|
190
191
|
```rebol
|
|
191
|
-
|
|
192
|
+
threefive3 packets udp://@235.35.3.5:3535
|
|
192
193
|
```
|
|
193
194
|
___
|
|
194
195
|
### `proxy`
|
|
195
196
|
* Parse a https stream and write raw video to stdout
|
|
196
197
|
```rebol
|
|
197
|
-
|
|
198
|
+
threefive3 proxy video.ts
|
|
198
199
|
```
|
|
199
200
|
___
|
|
200
201
|
### `pts`
|
|
201
202
|
* Print PTS from mpegts video
|
|
202
203
|
```rebol
|
|
203
|
-
|
|
204
|
+
threefive3 pts video.ts
|
|
204
205
|
```
|
|
205
206
|
___
|
|
206
207
|
### `sidecar`
|
|
207
208
|
* Parse a stream, write pts,write SCTE-35 Cues to sidecar.txt
|
|
208
209
|
```rebol
|
|
209
|
-
|
|
210
|
+
threefive3 sidecar video.ts
|
|
210
211
|
```
|
|
211
212
|
___
|
|
212
213
|
### `sixfix`
|
|
213
214
|
* Fix SCTE-35 data mangled by ffmpeg
|
|
214
215
|
```rebol
|
|
215
|
-
|
|
216
|
+
threefive3 sixfix video.ts
|
|
216
217
|
```
|
|
217
218
|
___
|
|
218
219
|
### `show`
|
|
219
220
|
|
|
220
221
|
* Probe mpegts video _( kind of like ffprobe )_
|
|
221
222
|
```rebol
|
|
222
|
-
|
|
223
|
+
threefive3 show video.ts
|
|
223
224
|
```
|
|
224
225
|
___
|
|
225
226
|
### `version`
|
|
226
227
|
* Show version
|
|
227
228
|
```rebol
|
|
228
|
-
|
|
229
|
+
threefive3 version
|
|
229
230
|
```
|
|
230
231
|
___
|
|
231
232
|
### `help`
|
|
232
233
|
* Help
|
|
233
234
|
```rebol
|
|
234
|
-
|
|
235
|
+
threefive3 help
|
|
235
236
|
```
|
|
237
|
+
## [iodisco.com/scte35](https://iodisco.com/scte35)
|
|
238
|
+
[
|
|
239
|
+
](https://iodisco.com/scte35)
|
|
236
240
|
___
|
|
237
241
|
|
|
242
|
+
|
|
238
243
|
Platform: UNKNOWN
|
|
239
244
|
Classifier: License :: OSI Approved :: Sleepycat License
|
|
240
245
|
Classifier: Environment :: Console
|
|
@@ -242,10 +247,6 @@ Classifier: Operating System :: OS Independent
|
|
|
242
247
|
Classifier: Operating System :: POSIX :: BSD :: OpenBSD
|
|
243
248
|
Classifier: Operating System :: POSIX :: BSD :: NetBSD
|
|
244
249
|
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
250
|
Classifier: Topic :: Multimedia :: Video
|
|
250
251
|
Classifier: Programming Language :: Python :: 3.6
|
|
251
252
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# <s>threefive</s>
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
|
|
2
5
|
threefive continued. SCTE-35 for the People.
|
|
3
|
-
# Now with Super Advanced Error Detection Stuff.
|
|
6
|
+
# Now with Super Advanced Error Detection and Stuff.
|
|
4
7
|
* Does not generate Fatal errors, it won't break your process.
|
|
5
8
|
* Displays what is in error and how to correct it.
|
|
6
9
|
* Works in the cli
|
|
7
10
|
* Works in code.
|
|
8
11
|

|
|
9
12
|
|
|
13
|
+

|
|
10
14
|
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
|
|
14
16
|
# `Install`
|
|
15
17
|
* python3 via pip
|
|
16
18
|
```rebol
|
|
17
|
-
python3 -mpip install
|
|
19
|
+
python3 -mpip install threefive3
|
|
18
20
|
```
|
|
19
21
|
* pypy3
|
|
20
22
|
```rebol
|
|
21
|
-
pypy3 -mpip install
|
|
23
|
+
pypy3 -mpip install threefive3
|
|
22
24
|
```
|
|
23
25
|
* from the git repo
|
|
24
26
|
```rebol
|
|
@@ -28,7 +30,6 @@ make install
|
|
|
28
30
|
```
|
|
29
31
|
___
|
|
30
32
|
|
|
31
|
-
|
|
32
33
|
# `The Cli tool`
|
|
33
34
|
> 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
|
|
|
@@ -60,41 +61,41 @@ ___
|
|
|
60
61
|
#### `Base64`
|
|
61
62
|
* parse SCTE-35 encoded in Base64
|
|
62
63
|
```rebol
|
|
63
|
-
|
|
64
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
|
|
64
65
|
```
|
|
65
66
|
|
|
66
67
|
#### `Hex`
|
|
67
68
|
* parse SCTE-35 encoded in Hex
|
|
68
69
|
```rebol
|
|
69
|
-
|
|
70
|
+
threefive3 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
|
|
70
71
|
```
|
|
71
72
|
|
|
72
73
|
#### `HLS`
|
|
73
74
|
|
|
74
75
|
* parse SCTE-35 from HLS manifests and segments
|
|
75
76
|
```rebol
|
|
76
|
-
|
|
77
|
+
threefive3 hls https://example.com/master.m3u8
|
|
77
78
|
```
|
|
78
79
|
|
|
79
80
|
#### `Json`
|
|
80
81
|
|
|
81
82
|
```rebol
|
|
82
|
-
cat json.json |
|
|
83
|
+
cat json.json | threefive3
|
|
83
84
|
```
|
|
84
85
|
#### `Xml`
|
|
85
86
|
* you can make a xml.xml file like this:
|
|
86
87
|
* redirect 2 (stderr) to the file
|
|
87
88
|
```awk
|
|
88
|
-
./
|
|
89
|
+
./threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
|
|
89
90
|
```
|
|
90
91
|
* pass in
|
|
91
92
|
```rebol
|
|
92
|
-
|
|
93
|
+
threefive3 < xml.xml
|
|
93
94
|
```
|
|
94
95
|
#### `Xmlbin`
|
|
95
96
|
|
|
96
97
|
```rebol
|
|
97
|
-
|
|
98
|
+
threefive3 < xmlbin.xml
|
|
98
99
|
```
|
|
99
100
|
___
|
|
100
101
|
### `Outputs`
|
|
@@ -112,32 +113,32 @@ ___
|
|
|
112
113
|
|
|
113
114
|
#### json
|
|
114
115
|
```rebol
|
|
115
|
-
|
|
116
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
|
|
116
117
|
```
|
|
117
118
|
|
|
118
119
|
#### `base64`
|
|
119
120
|
```rebol
|
|
120
|
-
|
|
121
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
|
|
121
122
|
```
|
|
122
123
|
#### `bytes`
|
|
123
124
|
```rebol
|
|
124
|
-
|
|
125
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
|
|
125
126
|
```
|
|
126
127
|
#### `hex`
|
|
127
128
|
```rebol
|
|
128
|
-
|
|
129
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
|
|
129
130
|
```
|
|
130
131
|
#### `int`
|
|
131
132
|
```rebol
|
|
132
|
-
|
|
133
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
|
|
133
134
|
```
|
|
134
135
|
#### `xml`
|
|
135
136
|
```rebol
|
|
136
|
-
|
|
137
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
|
|
137
138
|
```
|
|
138
139
|
#### `xml+bin`
|
|
139
140
|
```rebol
|
|
140
|
-
|
|
141
|
+
threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
|
|
141
142
|
```
|
|
142
143
|
___
|
|
143
144
|
## Streams
|
|
@@ -145,84 +146,88 @@ ___
|
|
|
145
146
|
|
|
146
147
|
#### `File`
|
|
147
148
|
```rebol
|
|
148
|
-
|
|
149
|
+
threefive3 video.ts
|
|
149
150
|
```
|
|
150
151
|
#### `Http(s)`
|
|
151
152
|
```rebol
|
|
152
|
-
|
|
153
|
+
threefive3 https://example.com/master.m3u8
|
|
153
154
|
```
|
|
154
155
|
#### `Multicast`
|
|
155
156
|
```rebol
|
|
156
|
-
|
|
157
|
+
threefive3 udp://@235.35.3.5:9999
|
|
157
158
|
```
|
|
158
159
|
#### `stdin`
|
|
159
160
|
```rebol
|
|
160
|
-
cat video.ts |
|
|
161
|
+
cat video.ts | threefive3
|
|
161
162
|
```
|
|
162
163
|
#### `Udp Unicast`
|
|
163
164
|
```rebol
|
|
164
|
-
|
|
165
|
+
threefive3 udp://10.0.0.7:5555
|
|
165
166
|
```
|
|
166
167
|
___
|
|
167
168
|
|
|
168
169
|
### `hls`
|
|
169
170
|
* parse hls manifests and segments for SCTE-35
|
|
170
171
|
```rebol
|
|
171
|
-
|
|
172
|
+
threefive3 hls https://example.com/master.m3u8
|
|
172
173
|
```
|
|
173
174
|
___
|
|
174
175
|
### `Iframes`
|
|
175
176
|
* Show iframes PTS in an MPEGTS video
|
|
176
177
|
```rebol
|
|
177
|
-
|
|
178
|
+
threefive3 iframes https://example.com/video.ts
|
|
178
179
|
```
|
|
179
180
|
___
|
|
180
181
|
### `packets`
|
|
181
182
|
* Print raw SCTE-35 packets from multicast mpegts video
|
|
182
183
|
```rebol
|
|
183
|
-
|
|
184
|
+
threefive3 packets udp://@235.35.3.5:3535
|
|
184
185
|
```
|
|
185
186
|
___
|
|
186
187
|
### `proxy`
|
|
187
188
|
* Parse a https stream and write raw video to stdout
|
|
188
189
|
```rebol
|
|
189
|
-
|
|
190
|
+
threefive3 proxy video.ts
|
|
190
191
|
```
|
|
191
192
|
___
|
|
192
193
|
### `pts`
|
|
193
194
|
* Print PTS from mpegts video
|
|
194
195
|
```rebol
|
|
195
|
-
|
|
196
|
+
threefive3 pts video.ts
|
|
196
197
|
```
|
|
197
198
|
___
|
|
198
199
|
### `sidecar`
|
|
199
200
|
* Parse a stream, write pts,write SCTE-35 Cues to sidecar.txt
|
|
200
201
|
```rebol
|
|
201
|
-
|
|
202
|
+
threefive3 sidecar video.ts
|
|
202
203
|
```
|
|
203
204
|
___
|
|
204
205
|
### `sixfix`
|
|
205
206
|
* Fix SCTE-35 data mangled by ffmpeg
|
|
206
207
|
```rebol
|
|
207
|
-
|
|
208
|
+
threefive3 sixfix video.ts
|
|
208
209
|
```
|
|
209
210
|
___
|
|
210
211
|
### `show`
|
|
211
212
|
|
|
212
213
|
* Probe mpegts video _( kind of like ffprobe )_
|
|
213
214
|
```rebol
|
|
214
|
-
|
|
215
|
+
threefive3 show video.ts
|
|
215
216
|
```
|
|
216
217
|
___
|
|
217
218
|
### `version`
|
|
218
219
|
* Show version
|
|
219
220
|
```rebol
|
|
220
|
-
|
|
221
|
+
threefive3 version
|
|
221
222
|
```
|
|
222
223
|
___
|
|
223
224
|
### `help`
|
|
224
225
|
* Help
|
|
225
226
|
```rebol
|
|
226
|
-
|
|
227
|
+
threefive3 help
|
|
227
228
|
```
|
|
229
|
+
## [iodisco.com/scte35](https://iodisco.com/scte35)
|
|
230
|
+
[
|
|
231
|
+
](https://iodisco.com/scte35)
|
|
228
232
|
___
|
|
233
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/
|
|
1
|
+
#!/usr/bin/pypy3
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
4
|
scte35 command line SCTE35 decoder.
|
|
@@ -8,11 +8,11 @@ scte35 command line SCTE35 decoder.
|
|
|
8
8
|
|
|
9
9
|
import select
|
|
10
10
|
import sys
|
|
11
|
-
from iframes import IFramer
|
|
12
|
-
from new_reader import reader
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
from
|
|
11
|
+
from threefive3.iframes import IFramer
|
|
12
|
+
from threefive3.new_reader import reader
|
|
13
|
+
from threefive3 import Cue, Stream, print2, version
|
|
14
|
+
from threefive3.hls import cli as hlscli
|
|
15
|
+
from threefive3.sixfix import sixfix
|
|
16
16
|
from sideways import cli as sidecli
|
|
17
17
|
|
|
18
18
|
REV = "\033[7;1m"
|
|
@@ -50,7 +50,7 @@ def mk_sidecar(cue):
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
HELP = f"""
|
|
53
|
-
{BLUE}
|
|
53
|
+
{BLUE} threefive3 cli tool {U}
|
|
54
54
|
|
|
55
55
|
{B} Default {U} {BLUE}The default action is to read a input and write a SCTE-35 output.{U}
|
|
56
56
|
|
|
@@ -61,35 +61,35 @@ HELP = f"""
|
|
|
61
61
|
{BLUE}scte35 can read from {U} strings, files, stdin, http(s), multicast, and Udp.
|
|
62
62
|
|
|
63
63
|
Input {U} Output {U}
|
|
64
|
-
{U}{BLUE} mpegts {U} {U}{BLUE} base64 {NORM}
|
|
65
|
-
{U}{BLUE} xml {U} {U}{BLUE} bytes {NORM}
|
|
66
|
-
{U}{BLUE} base64 {U} {U}{BLUE} hex {NORM}
|
|
67
|
-
{U}{BLUE} xmlbin {U} {U}{BLUE} int {NORM}
|
|
68
|
-
{U}{BLUE} mpegts {U} {U}{BLUE} json {NORM}
|
|
69
|
-
{U}{BLUE} json {U} {U}{BLUE} xml {NORM}
|
|
70
|
-
{U}{BLUE} hex {U} {U}{BLUE} xmlbin {NORM}
|
|
64
|
+
{U}{BLUE} mpegts {U} {U}{BLUE} base64 {NORM} threefive3 https://example.com/video.ts base64
|
|
65
|
+
{U}{BLUE} xml {U} {U}{BLUE} bytes {NORM} threefive3 bytes < xml.xml
|
|
66
|
+
{U}{BLUE} base64 {U} {U}{BLUE} hex {NORM} threefive3 '/DAWAAAAAAAAAP/wBQb+AKmKxwAACzuu2Q==' hex
|
|
67
|
+
{U}{BLUE} xmlbin {U} {U}{BLUE} int {NORM} threefive3 int < xml.xml
|
|
68
|
+
{U}{BLUE} mpegts {U} {U}{BLUE} json {NORM} threefive3 video.ts
|
|
69
|
+
{U}{BLUE} json {U} {U}{BLUE} xml {NORM} threefive3 < json.json xml
|
|
70
|
+
{U}{BLUE} hex {U} {U}{BLUE} xmlbin {NORM} threefive3 0xfc301600000000000000fff00506fe00a98ac700000b3baed9 xmlbin
|
|
71
71
|
|
|
72
|
-
{B} hls {U}{NORM}{BLUE} SCTE-35 hls decode help:{U}
|
|
72
|
+
{B} hls {U}{NORM}{BLUE} SCTE-35 hls decode help:{U} threefive3 hls help
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
threefive3 hls https://example.com/master.m3u8{U}
|
|
75
75
|
|
|
76
|
-
{B} iframes {U}{BLUE} show MPEGTS iframes{NORM}
|
|
76
|
+
{B} iframes {U}{BLUE} show MPEGTS iframes{NORM} threefive3 iframes video.ts
|
|
77
77
|
|
|
78
|
-
{B} packets {U}{NORM}{BLUE} Print raw SCTE-35 packets:{NORM}
|
|
78
|
+
{B} packets {U}{NORM}{BLUE} Print raw SCTE-35 packets:{NORM} threefive3 packets udp://@235.35.3.5:3535
|
|
79
79
|
|
|
80
|
-
{B} proxy {U}{NORM}{BLUE} Parse a stream and copy it to stdout:{NORM}
|
|
80
|
+
{B} proxy {U}{NORM}{BLUE} Parse a stream and copy it to stdout:{NORM} threefive3 proxy video.ts
|
|
81
81
|
|
|
82
|
-
{B} pts {U}{NORM}{BLUE} Print PTS from mpegts video:{NORM}
|
|
82
|
+
{B} pts {U}{NORM}{BLUE} Print PTS from mpegts video:{NORM} threefive3 pts video.ts
|
|
83
83
|
|
|
84
|
-
{B} sidecar {U}{NORM}{BLUE} Create a sidecar file:{NORM}
|
|
84
|
+
{B} sidecar {U}{NORM}{BLUE} Create a sidecar file:{NORM} threefive3 sidecar video.ts
|
|
85
85
|
|
|
86
|
-
{B} sixfix {U}{NORM}{BLUE} Fix SCTE-35 data mangled by ffmpeg:{NORM}
|
|
86
|
+
{B} sixfix {U}{NORM}{BLUE} Fix SCTE-35 data mangled by ffmpeg:{NORM} threefive3 sixfix video.ts
|
|
87
87
|
|
|
88
|
-
{B} show {U}{NORM}{BLUE} Probe mpegts video:{NORM}
|
|
88
|
+
{B} show {U}{NORM}{BLUE} Probe mpegts video:{NORM} threefive3 show video.ts
|
|
89
89
|
|
|
90
|
-
{B} version {U}{NORM}{BLUE} Show version:{NORM}
|
|
90
|
+
{B} version {U}{NORM}{BLUE} Show version:{NORM} threefive3 version
|
|
91
91
|
|
|
92
|
-
{B} help {U}{NORM} {BLUE}Help:{NORM}
|
|
92
|
+
{B} help {U}{NORM} {BLUE}Help:{NORM} threefive3 help
|
|
93
93
|
|
|
94
94
|
"""
|
|
95
95
|
|
|
@@ -125,7 +125,7 @@ def print_help():
|
|
|
125
125
|
|
|
126
126
|
def print_version():
|
|
127
127
|
"""
|
|
128
|
-
print_version print the
|
|
128
|
+
print_version print the threefive3 version
|
|
129
129
|
"""
|
|
130
130
|
print2(version)
|
|
131
131
|
|
|
@@ -308,6 +308,7 @@ def to_funk(this):
|
|
|
308
308
|
"""
|
|
309
309
|
to_funk prints a cue in a variety of formats.
|
|
310
310
|
"""
|
|
311
|
+
cue=None
|
|
311
312
|
if this in ["", b""]:
|
|
312
313
|
return
|
|
313
314
|
try:
|
|
@@ -316,15 +317,11 @@ def to_funk(this):
|
|
|
316
317
|
strm.decode(func=funk()) # funk() works here
|
|
317
318
|
except: # try to load json or xml
|
|
318
319
|
try:
|
|
319
|
-
cue = Cue()
|
|
320
|
-
cue.load(this)
|
|
320
|
+
cue = Cue(this)
|
|
321
321
|
except:
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
print("Bad Data... I think")
|
|
326
|
-
if cue:
|
|
327
|
-
funk()(cue) # func works here too.
|
|
322
|
+
print2("Bad Data")
|
|
323
|
+
if cue:
|
|
324
|
+
funk()(cue) # func works here too.
|
|
328
325
|
|
|
329
326
|
|
|
330
327
|
def chk_stdin(args):
|
|
@@ -353,7 +350,7 @@ def chk_funk_map():
|
|
|
353
350
|
args = mk_args(funk_keys)
|
|
354
351
|
args = chk_stdin(args)
|
|
355
352
|
if args:
|
|
356
|
-
[to_funk(arg) for arg in args] # multiple file input
|
|
353
|
+
_ = [to_funk(arg) for arg in args] # multiple file input
|
|
357
354
|
sys.exit()
|
|
358
355
|
|
|
359
356
|
|
|
@@ -5,27 +5,25 @@ import setuptools
|
|
|
5
5
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
6
6
|
readme = fh.read()
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
from threefive3.version import version
|
|
9
|
+
|
|
10
10
|
|
|
11
11
|
setuptools.setup(
|
|
12
12
|
name="threefive3",
|
|
13
13
|
version=version,
|
|
14
14
|
author="Adrian of Doom",
|
|
15
15
|
author_email="spam@iodisco.com",
|
|
16
|
-
description="
|
|
16
|
+
description="threefive continued.",
|
|
17
17
|
long_description=readme,
|
|
18
18
|
long_description_content_type="text/markdown",
|
|
19
19
|
url="https://github.com/superkabuki/scte35",
|
|
20
20
|
install_requires=[
|
|
21
|
-
'iframes >= 0.0.7',
|
|
22
21
|
'm3ufu >= 0.0.89',
|
|
23
|
-
'new_reader >= 0.1.11',
|
|
24
22
|
'sideways >= 0.0.23',
|
|
25
23
|
"pyaes",
|
|
26
24
|
],
|
|
27
25
|
|
|
28
|
-
scripts=['bin/
|
|
26
|
+
scripts=['bin/threefive3'],
|
|
29
27
|
packages=setuptools.find_packages(),
|
|
30
28
|
classifiers=[
|
|
31
29
|
"License :: OSI Approved :: Sleepycat License",
|
|
@@ -34,10 +32,6 @@ setuptools.setup(
|
|
|
34
32
|
"Operating System :: POSIX :: BSD :: OpenBSD",
|
|
35
33
|
"Operating System :: POSIX :: BSD :: NetBSD",
|
|
36
34
|
"Operating System :: POSIX :: Linux",
|
|
37
|
-
"Operating System :: POSIX :: SCO",
|
|
38
|
-
"Operating System :: Unix",
|
|
39
|
-
"Operating System :: Microsoft :: Windows :: Windows 3.1 or Earlier",
|
|
40
|
-
"Operating System :: Other OS",
|
|
41
35
|
"Topic :: Multimedia :: Video",
|
|
42
36
|
"Programming Language :: Python :: 3.6",
|
|
43
37
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
@@ -45,3 +39,4 @@ setuptools.setup(
|
|
|
45
39
|
],
|
|
46
40
|
python_requires=">=3.6",
|
|
47
41
|
)
|
|
42
|
+
|