threefive3 3.0.1__tar.gz → 3.0.3__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.
Files changed (35) hide show
  1. {threefive3-3.0.1 → threefive3-3.0.3}/PKG-INFO +35 -39
  2. {threefive3-3.0.1 → threefive3-3.0.3}/README.md +33 -33
  3. threefive3-3.0.1/bin/scte35 → threefive3-3.0.3/bin/threefive3 +28 -32
  4. {threefive3-3.0.1 → threefive3-3.0.3}/setup.py +5 -10
  5. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/commands.py +0 -1
  6. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/cue.py +15 -17
  7. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/descriptors.py +15 -10
  8. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/hls.py +64 -41
  9. threefive3-3.0.3/threefive3/iframes.py +140 -0
  10. threefive3-3.0.3/threefive3/new_reader.py +132 -0
  11. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/segment.py +6 -6
  12. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/sixfix.py +5 -5
  13. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/spare.py +1 -1
  14. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/stream.py +6 -6
  15. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/streamtypes.py +1 -1
  16. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/upids.py +7 -3
  17. threefive3-3.0.3/threefive3/version.py +10 -0
  18. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/xml.py +2 -2
  19. {threefive3-3.0.1 → threefive3-3.0.3}/threefive3.egg-info/PKG-INFO +35 -39
  20. threefive3-3.0.3/threefive3.egg-info/SOURCES.txt +30 -0
  21. {threefive3-3.0.1 → threefive3-3.0.3}/threefive3.egg-info/requires.txt +0 -2
  22. threefive3-3.0.3/threefive3.egg-info/top_level.txt +1 -0
  23. threefive3-3.0.1/scte35/version.py +0 -6
  24. threefive3-3.0.1/threefive3.egg-info/SOURCES.txt +0 -28
  25. threefive3-3.0.1/threefive3.egg-info/top_level.txt +0 -1
  26. {threefive3-3.0.1 → threefive3-3.0.3}/setup.cfg +0 -0
  27. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/__init__.py +0 -0
  28. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/base.py +0 -0
  29. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/bitn.py +0 -0
  30. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/crc.py +0 -0
  31. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/packetdata.py +0 -0
  32. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/section.py +0 -0
  33. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/segmentation.py +0 -0
  34. {threefive3-3.0.1/scte35 → threefive3-3.0.3/threefive3}/sxp.py +0 -0
  35. {threefive3-3.0.1 → threefive3-3.0.3}/threefive3.egg-info/dependency_links.txt +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: threefive3
3
- Version: 3.0.1
4
- Summary: threefive3 is a SCTE-35 Decoder and Encoder for MPEGTS, HLS and Everything else.
3
+ Version: 3.0.3
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: # `scte35`
9
+ Description: # `threefive3`
10
10
  threefive continued. SCTE-35 for the People.
11
11
  # Now with Super Advanced Error Detection Stuff.
12
12
  * Does not generate Fatal errors, it won't break your process.
@@ -22,16 +22,16 @@ Description: # `scte35`
22
22
  # `Install`
23
23
  * python3 via pip
24
24
  ```rebol
25
- python3 -mpip install scte35
25
+ python3 -mpip install threefive3
26
26
  ```
27
27
  * pypy3
28
28
  ```rebol
29
- pypy3 -mpip install scte35
29
+ pypy3 -mpip install threefive3
30
30
  ```
31
31
  * from the git repo
32
32
  ```rebol
33
33
  git clone https://github.com/superkabuki/scte35.git
34
- cd scte35
34
+ cd scte35
35
35
  make install
36
36
  ```
37
37
  ___
@@ -68,41 +68,41 @@ Description: # `scte35`
68
68
  #### `Base64`
69
69
  * parse SCTE-35 encoded in Base64
70
70
  ```rebol
71
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
71
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
72
72
  ```
73
73
 
74
74
  #### `Hex`
75
75
  * parse SCTE-35 encoded in Hex
76
76
  ```rebol
77
- scte35 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
77
+ threefive3 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
78
78
  ```
79
79
 
80
80
  #### `HLS`
81
81
 
82
82
  * parse SCTE-35 from HLS manifests and segments
83
83
  ```rebol
84
- scte35 hls https://example.com/master.m3u8
84
+ threefive3 hls https://example.com/master.m3u8
85
85
  ```
86
86
 
87
87
  #### `Json`
88
88
 
89
89
  ```rebol
90
- cat json.json | scte35
90
+ cat json.json | threefive3
91
91
  ```
92
92
  #### `Xml`
93
93
  * you can make a xml.xml file like this:
94
94
  * redirect 2 (stderr) to the file
95
95
  ```awk
96
- ./scte352 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
96
+ ./threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
97
97
  ```
98
98
  * pass in
99
99
  ```rebol
100
- scte35 < xml.xml
100
+ threefive3 < xml.xml
101
101
  ```
102
102
  #### `Xmlbin`
103
103
 
104
104
  ```rebol
105
- scte35 < xmlbin.xml
105
+ threefive3 < xmlbin.xml
106
106
  ```
107
107
  ___
108
108
  ### `Outputs`
@@ -120,32 +120,32 @@ Description: # `scte35`
120
120
 
121
121
  #### json
122
122
  ```rebol
123
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
123
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
124
124
  ```
125
125
 
126
126
  #### `base64`
127
127
  ```rebol
128
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
128
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
129
129
  ```
130
130
  #### `bytes`
131
131
  ```rebol
132
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
132
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
133
133
  ```
134
134
  #### `hex`
135
135
  ```rebol
136
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
136
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
137
137
  ```
138
138
  #### `int`
139
139
  ```rebol
140
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
140
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
141
141
  ```
142
142
  #### `xml`
143
143
  ```rebol
144
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
144
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
145
145
  ```
146
146
  #### `xml+bin`
147
147
  ```rebol
148
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
148
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
149
149
  ```
150
150
  ___
151
151
  ## Streams
@@ -153,85 +153,85 @@ Description: # `scte35`
153
153
 
154
154
  #### `File`
155
155
  ```rebol
156
- scte35 video.ts
156
+ threefive3 video.ts
157
157
  ```
158
158
  #### `Http(s)`
159
159
  ```rebol
160
- scte35 https://example.com/master.m3u8
160
+ threefive3 https://example.com/master.m3u8
161
161
  ```
162
162
  #### `Multicast`
163
163
  ```rebol
164
- scte35 udp://@235.35.3.5:9999
164
+ threefive3 udp://@235.35.3.5:9999
165
165
  ```
166
166
  #### `stdin`
167
167
  ```rebol
168
- cat video.ts | scte35
168
+ cat video.ts | threefive3
169
169
  ```
170
170
  #### `Udp Unicast`
171
171
  ```rebol
172
- scte35 udp://10.0.0.7:5555
172
+ threefive3 udp://10.0.0.7:5555
173
173
  ```
174
174
  ___
175
175
 
176
176
  ### `hls`
177
177
  * parse hls manifests and segments for SCTE-35
178
178
  ```rebol
179
- scte35 hls https://example.com/master.m3u8
179
+ threefive3 hls https://example.com/master.m3u8
180
180
  ```
181
181
  ___
182
182
  ### `Iframes`
183
183
  * Show iframes PTS in an MPEGTS video
184
184
  ```rebol
185
- scte35 iframes https://example.com/video.ts
185
+ threefive3 iframes https://example.com/video.ts
186
186
  ```
187
187
  ___
188
188
  ### `packets`
189
189
  * Print raw SCTE-35 packets from multicast mpegts video
190
190
  ```rebol
191
- scte35 packets udp://@235.35.3.5:3535
191
+ threefive3 packets udp://@235.35.3.5:3535
192
192
  ```
193
193
  ___
194
194
  ### `proxy`
195
195
  * Parse a https stream and write raw video to stdout
196
196
  ```rebol
197
- scte35 proxy video.ts
197
+ threefive3 proxy video.ts
198
198
  ```
199
199
  ___
200
200
  ### `pts`
201
201
  * Print PTS from mpegts video
202
202
  ```rebol
203
- scte35 pts video.ts
203
+ threefive3 pts video.ts
204
204
  ```
205
205
  ___
206
206
  ### `sidecar`
207
207
  * Parse a stream, write pts,write SCTE-35 Cues to sidecar.txt
208
208
  ```rebol
209
- scte35 sidecar video.ts
209
+ threefive3 sidecar video.ts
210
210
  ```
211
211
  ___
212
212
  ### `sixfix`
213
213
  * Fix SCTE-35 data mangled by ffmpeg
214
214
  ```rebol
215
- scte35 sixfix video.ts
215
+ threefive3 sixfix video.ts
216
216
  ```
217
217
  ___
218
218
  ### `show`
219
219
 
220
220
  * Probe mpegts video _( kind of like ffprobe )_
221
221
  ```rebol
222
- scte35 show video.ts
222
+ threefive3 show video.ts
223
223
  ```
224
224
  ___
225
225
  ### `version`
226
226
  * Show version
227
227
  ```rebol
228
- scte35 version
228
+ threefive3 version
229
229
  ```
230
230
  ___
231
231
  ### `help`
232
232
  * Help
233
233
  ```rebol
234
- scte35 help
234
+ threefive3 help
235
235
  ```
236
236
  ___
237
237
 
@@ -242,10 +242,6 @@ Classifier: Operating System :: OS Independent
242
242
  Classifier: Operating System :: POSIX :: BSD :: OpenBSD
243
243
  Classifier: Operating System :: POSIX :: BSD :: NetBSD
244
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
245
  Classifier: Topic :: Multimedia :: Video
250
246
  Classifier: Programming Language :: Python :: 3.6
251
247
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -1,4 +1,4 @@
1
- # `scte35`
1
+ # `threefive3`
2
2
  threefive continued. SCTE-35 for the People.
3
3
  # Now with Super Advanced Error Detection Stuff.
4
4
  * Does not generate Fatal errors, it won't break your process.
@@ -14,16 +14,16 @@ threefive continued. SCTE-35 for the People.
14
14
  # `Install`
15
15
  * python3 via pip
16
16
  ```rebol
17
- python3 -mpip install scte35
17
+ python3 -mpip install threefive3
18
18
  ```
19
19
  * pypy3
20
20
  ```rebol
21
- pypy3 -mpip install scte35
21
+ pypy3 -mpip install threefive3
22
22
  ```
23
23
  * from the git repo
24
24
  ```rebol
25
25
  git clone https://github.com/superkabuki/scte35.git
26
- cd scte35
26
+ cd scte35
27
27
  make install
28
28
  ```
29
29
  ___
@@ -60,41 +60,41 @@ ___
60
60
  #### `Base64`
61
61
  * parse SCTE-35 encoded in Base64
62
62
  ```rebol
63
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
63
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
64
64
  ```
65
65
 
66
66
  #### `Hex`
67
67
  * parse SCTE-35 encoded in Hex
68
68
  ```rebol
69
- scte35 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
69
+ threefive3 0xfc302c00000003289800fff00a05000000017f5f999901010011020f43554549000000007f8001003500002d974195
70
70
  ```
71
71
 
72
72
  #### `HLS`
73
73
 
74
74
  * parse SCTE-35 from HLS manifests and segments
75
75
  ```rebol
76
- scte35 hls https://example.com/master.m3u8
76
+ threefive3 hls https://example.com/master.m3u8
77
77
  ```
78
78
 
79
79
  #### `Json`
80
80
 
81
81
  ```rebol
82
- cat json.json | scte35
82
+ cat json.json | threefive3
83
83
  ```
84
84
  #### `Xml`
85
85
  * you can make a xml.xml file like this:
86
86
  * redirect 2 (stderr) to the file
87
87
  ```awk
88
- ./scte352 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
88
+ ./threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml 2> xml.xml
89
89
  ```
90
90
  * pass in
91
91
  ```rebol
92
- scte35 < xml.xml
92
+ threefive3 < xml.xml
93
93
  ```
94
94
  #### `Xmlbin`
95
95
 
96
96
  ```rebol
97
- scte35 < xmlbin.xml
97
+ threefive3 < xmlbin.xml
98
98
  ```
99
99
  ___
100
100
  ### `Outputs`
@@ -112,32 +112,32 @@ ___
112
112
 
113
113
  #### json
114
114
  ```rebol
115
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
115
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU='
116
116
  ```
117
117
 
118
118
  #### `base64`
119
119
  ```rebol
120
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
120
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' base64
121
121
  ```
122
122
  #### `bytes`
123
123
  ```rebol
124
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
124
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' bytes
125
125
  ```
126
126
  #### `hex`
127
127
  ```rebol
128
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
128
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' hex
129
129
  ```
130
130
  #### `int`
131
131
  ```rebol
132
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
132
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' int
133
133
  ```
134
134
  #### `xml`
135
135
  ```rebol
136
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
136
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xml
137
137
  ```
138
138
  #### `xml+bin`
139
139
  ```rebol
140
- scte35 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
140
+ threefive3 '/DAsAAAAAyiYAP/wCgUAAAABf1+ZmQEBABECD0NVRUkAAAAAf4ABADUAAC2XQZU=' xmlbin
141
141
  ```
142
142
  ___
143
143
  ## Streams
@@ -145,84 +145,84 @@ ___
145
145
 
146
146
  #### `File`
147
147
  ```rebol
148
- scte35 video.ts
148
+ threefive3 video.ts
149
149
  ```
150
150
  #### `Http(s)`
151
151
  ```rebol
152
- scte35 https://example.com/master.m3u8
152
+ threefive3 https://example.com/master.m3u8
153
153
  ```
154
154
  #### `Multicast`
155
155
  ```rebol
156
- scte35 udp://@235.35.3.5:9999
156
+ threefive3 udp://@235.35.3.5:9999
157
157
  ```
158
158
  #### `stdin`
159
159
  ```rebol
160
- cat video.ts | scte35
160
+ cat video.ts | threefive3
161
161
  ```
162
162
  #### `Udp Unicast`
163
163
  ```rebol
164
- scte35 udp://10.0.0.7:5555
164
+ threefive3 udp://10.0.0.7:5555
165
165
  ```
166
166
  ___
167
167
 
168
168
  ### `hls`
169
169
  * parse hls manifests and segments for SCTE-35
170
170
  ```rebol
171
- scte35 hls https://example.com/master.m3u8
171
+ threefive3 hls https://example.com/master.m3u8
172
172
  ```
173
173
  ___
174
174
  ### `Iframes`
175
175
  * Show iframes PTS in an MPEGTS video
176
176
  ```rebol
177
- scte35 iframes https://example.com/video.ts
177
+ threefive3 iframes https://example.com/video.ts
178
178
  ```
179
179
  ___
180
180
  ### `packets`
181
181
  * Print raw SCTE-35 packets from multicast mpegts video
182
182
  ```rebol
183
- scte35 packets udp://@235.35.3.5:3535
183
+ threefive3 packets udp://@235.35.3.5:3535
184
184
  ```
185
185
  ___
186
186
  ### `proxy`
187
187
  * Parse a https stream and write raw video to stdout
188
188
  ```rebol
189
- scte35 proxy video.ts
189
+ threefive3 proxy video.ts
190
190
  ```
191
191
  ___
192
192
  ### `pts`
193
193
  * Print PTS from mpegts video
194
194
  ```rebol
195
- scte35 pts video.ts
195
+ threefive3 pts video.ts
196
196
  ```
197
197
  ___
198
198
  ### `sidecar`
199
199
  * Parse a stream, write pts,write SCTE-35 Cues to sidecar.txt
200
200
  ```rebol
201
- scte35 sidecar video.ts
201
+ threefive3 sidecar video.ts
202
202
  ```
203
203
  ___
204
204
  ### `sixfix`
205
205
  * Fix SCTE-35 data mangled by ffmpeg
206
206
  ```rebol
207
- scte35 sixfix video.ts
207
+ threefive3 sixfix video.ts
208
208
  ```
209
209
  ___
210
210
  ### `show`
211
211
 
212
212
  * Probe mpegts video _( kind of like ffprobe )_
213
213
  ```rebol
214
- scte35 show video.ts
214
+ threefive3 show video.ts
215
215
  ```
216
216
  ___
217
217
  ### `version`
218
218
  * Show version
219
219
  ```rebol
220
- scte35 version
220
+ threefive3 version
221
221
  ```
222
222
  ___
223
223
  ### `help`
224
224
  * Help
225
225
  ```rebol
226
- scte35 help
226
+ threefive3 help
227
227
  ```
228
228
  ___
@@ -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 scte35 import Cue, Stream, print2, version
14
- from scte35.hls import cli as hlscli
15
- from scte35.sixfix import sixfix
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} scte35 cli tool {U}
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} scte35 https://example.com/video.ts base64
65
- {U}{BLUE} xml {U} {U}{BLUE} bytes {NORM} scte35 bytes < xml.xml
66
- {U}{BLUE} base64 {U} {U}{BLUE} hex {NORM} scte35 '/DAWAAAAAAAAAP/wBQb+AKmKxwAACzuu2Q==' hex
67
- {U}{BLUE} xmlbin {U} {U}{BLUE} int {NORM} scte35 int < xml.xml
68
- {U}{BLUE} mpegts {U} {U}{BLUE} json {NORM} scte35 video.ts
69
- {U}{BLUE} json {U} {U}{BLUE} xml {NORM} scte35 < json.json xml
70
- {U}{BLUE} hex {U} {U}{BLUE} xmlbin {NORM} scte35 0xfc301600000000000000fff00506fe00a98ac700000b3baed9 xmlbin
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} scte35 hls help
72
+ {B} hls {U}{NORM}{BLUE} SCTE-35 hls decode help:{U} threefive3 hls help
73
73
 
74
- scte35 hls https://example.com/master.m3u8{U}
74
+ threefive3 hls https://example.com/master.m3u8{U}
75
75
 
76
- {B} iframes {U}{BLUE} show MPEGTS iframes{NORM} scte35 iframes video.ts
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} scte35 packets udp://@235.35.3.5:3535
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} scte35 proxy video.ts
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} scte35 pts video.ts
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} scte35 sidecar video.ts
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} scte35 sixfix video.ts
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} scte35 show video.ts
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} scte35 version
90
+ {B} version {U}{NORM}{BLUE} Show version:{NORM} threefive3 version
91
91
 
92
- {B} help {U}{NORM} {BLUE}Help:{NORM} scte35 help
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 scte35 version
128
+ print_version print the threefive3 version
129
129
  """
130
130
  print2(version)
131
131
 
@@ -316,13 +316,9 @@ def to_funk(this):
316
316
  strm.decode(func=funk()) # funk() works here
317
317
  except: # try to load json or xml
318
318
  try:
319
- cue = Cue()
320
- cue.load(this)
319
+ cue = Cue(this)
321
320
  except:
322
- try:
323
- cue = Cue(this)
324
- except:
325
- print("Bad Data... I think")
321
+ print2("Bad Data")
326
322
  if cue:
327
323
  funk()(cue) # func works here too.
328
324
 
@@ -353,7 +349,7 @@ def chk_funk_map():
353
349
  args = mk_args(funk_keys)
354
350
  args = chk_stdin(args)
355
351
  if args:
356
- [to_funk(arg) for arg in args] # multiple file input
352
+ _ = [to_funk(arg) for arg in args] # multiple file input
357
353
  sys.exit()
358
354
 
359
355
 
@@ -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
- with open("scte35/version.py","r", encoding="utf-8") as latest:
9
- version = latest.read().split('"')[1]
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="threefive3 is a SCTE-35 Decoder and Encoder for MPEGTS, HLS and Everything else.",
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/scte35'],
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
+
@@ -38,7 +38,6 @@ class SpliceCommand(SCTE35Base):
38
38
  return nbin.bites
39
39
 
40
40
 
41
-
42
41
  class BandwidthReservation(SpliceCommand):
43
42
  """
44
43
  Table 12 - bandwidth_reservation()