threefive 2.4.87__tar.gz → 2.4.89__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-2.4.87 → threefive-2.4.89}/PKG-INFO +10 -7
- {threefive-2.4.87 → threefive-2.4.89}/README.md +9 -6
- {threefive-2.4.87 → threefive-2.4.89}/setup.py +1 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/cue.py +2 -2
- {threefive-2.4.87 → threefive-2.4.89}/threefive/sixfix.py +15 -14
- {threefive-2.4.87 → threefive-2.4.89}/threefive/version.py +1 -1
- {threefive-2.4.87 → threefive-2.4.89}/threefive.egg-info/PKG-INFO +10 -7
- {threefive-2.4.87 → threefive-2.4.89}/threefive.egg-info/requires.txt +1 -0
- {threefive-2.4.87 → threefive-2.4.89}/bin/threefive +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/setup.cfg +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/__init__.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/base.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/bitn.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/commands.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/crc.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/decode.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/descriptors.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/encode.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/packetdata.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/section.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/segment.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/segmentation.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/showcues.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/smoketest.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/stream.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/streamtypes.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/stuff.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/superkabuki.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/upids.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive/xml.py +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive.egg-info/SOURCES.txt +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive.egg-info/dependency_links.txt +0 -0
- {threefive-2.4.87 → threefive-2.4.89}/threefive.egg-info/top_level.txt +0 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: threefive
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.89
|
|
4
4
|
Summary: The Undisputed Heavyweight Champion of SCTE-35. The Belts have been Unified.
|
|
5
5
|
Home-page: https://github.com/futzu/threefive
|
|
6
6
|
Author: Adrian of Doom, and the Fine Folks at Fu Corp.
|
|
7
7
|
Author-email: spam@iodisco.com
|
|
8
8
|
License: UNKNOWN
|
|
9
|
-
Description: >
|
|
9
|
+
Description: > threefive parses SCTE-35 from HLS, DASH, MPEGTS, Base64, Bytes, Dict, Hex, Integer, Json amd Xml.
|
|
10
10
|
|
|
11
|
-
# threefive is
|
|
11
|
+
# threefive is the Highest Rated SCTE-35 tool. Ever.
|
|
12
|
+
|
|
13
|
+
# SCTE-35 parser, SCTE-35 decoder, SCTE-35 encoder, SCTE-35 injector and SCTE-35 converter.
|
|
12
14
|
|
|
13
15
|
<br> `Parses` __SCTE-35__ from multiple streams in `MPEGTS` and `Multiple Program Transport Streams`
|
|
14
16
|
<br> `Parses` __SCTE-35__ from Cues encoded in`Base64`, `Bytes`, `Hex`, `Integers`.
|
|
@@ -16,12 +18,13 @@ Description: > HLS Manifest and Segment SCTE-35 Parser coming in v2.4.87.
|
|
|
16
18
|
<br> `Parses` __SCTE-35__ from streams converted to `bin data` ( _type 0x06_ ) by `ffmpeg`.
|
|
17
19
|
<br>`Encodes` __SCTE-35__ to Base64, Bytes, Hex, Integer, Json ,Xml, or MPEGTS packets.
|
|
18
20
|
<br>
|
|
19
|
-
## Latest version is v2.4.
|
|
21
|
+
## Latest version is v2.4.89
|
|
20
22
|
_Released 10/29/2024_
|
|
21
23
|
|
|
22
|
-
### New Stuff in threefive v2.4.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
24
|
+
### New Stuff in threefive v2.4.89
|
|
25
|
+
* Fixed __iframes import error__
|
|
26
|
+
* A __Cue__ instance can now be initialized with __base64, bytes, dict,hex, hex literal, Json, or xml.__
|
|
27
|
+
* __HLS__ Manifest and Segment SCTE-35 parsing added to __threefive cli.__
|
|
25
28
|
|
|
26
29
|
### New Stuff in threefive v2.4.85
|
|
27
30
|
* Fix for #121 MiD upid encoding
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
>
|
|
1
|
+
> threefive parses SCTE-35 from HLS, DASH, MPEGTS, Base64, Bytes, Dict, Hex, Integer, Json amd Xml.
|
|
2
2
|
|
|
3
|
-
# threefive is
|
|
3
|
+
# threefive is the Highest Rated SCTE-35 tool. Ever.
|
|
4
|
+
|
|
5
|
+
# SCTE-35 parser, SCTE-35 decoder, SCTE-35 encoder, SCTE-35 injector and SCTE-35 converter.
|
|
4
6
|
|
|
5
7
|
<br> `Parses` __SCTE-35__ from multiple streams in `MPEGTS` and `Multiple Program Transport Streams`
|
|
6
8
|
<br> `Parses` __SCTE-35__ from Cues encoded in`Base64`, `Bytes`, `Hex`, `Integers`.
|
|
@@ -8,12 +10,13 @@
|
|
|
8
10
|
<br> `Parses` __SCTE-35__ from streams converted to `bin data` ( _type 0x06_ ) by `ffmpeg`.
|
|
9
11
|
<br>`Encodes` __SCTE-35__ to Base64, Bytes, Hex, Integer, Json ,Xml, or MPEGTS packets.
|
|
10
12
|
<br>
|
|
11
|
-
## Latest version is v2.4.
|
|
13
|
+
## Latest version is v2.4.89
|
|
12
14
|
_Released 10/29/2024_
|
|
13
15
|
|
|
14
|
-
### New Stuff in threefive v2.4.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
16
|
+
### New Stuff in threefive v2.4.89
|
|
17
|
+
* Fixed __iframes import error__
|
|
18
|
+
* A __Cue__ instance can now be initialized with __base64, bytes, dict,hex, hex literal, Json, or xml.__
|
|
19
|
+
* __HLS__ Manifest and Segment SCTE-35 parsing added to __threefive cli.__
|
|
17
20
|
|
|
18
21
|
### New Stuff in threefive v2.4.85
|
|
19
22
|
* Fix for #121 MiD upid encoding
|
|
@@ -175,7 +175,7 @@ class Cue(SCTE35Base):
|
|
|
175
175
|
def _mk_load(self,data):
|
|
176
176
|
bites = self.bites
|
|
177
177
|
self.encode()
|
|
178
|
-
return bites
|
|
178
|
+
return bites
|
|
179
179
|
|
|
180
180
|
def _mk_bits(self, data):
|
|
181
181
|
"""
|
|
@@ -430,7 +430,7 @@ class Cue(SCTE35Base):
|
|
|
430
430
|
self._xml_splice_command(stuff)
|
|
431
431
|
self.info_section.splice_command_type = self.command.command_type
|
|
432
432
|
self._xml_splice_descriptors(stuff)
|
|
433
|
-
|
|
433
|
+
|
|
434
434
|
def from_xml(self, stuff):
|
|
435
435
|
"""
|
|
436
436
|
build_cue takes the data put into the stuff dict
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
2
|
+
sixfix.py
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
import io
|
|
@@ -24,15 +24,16 @@ class PreFix(Stream):
|
|
|
24
24
|
|
|
25
25
|
def decode(self, func=passed):
|
|
26
26
|
super().decode(func=passed)
|
|
27
|
-
|
|
28
|
-
if
|
|
29
|
-
print("fixing these pids",
|
|
30
|
-
return
|
|
27
|
+
sixed = self.pids.maybe_scte35
|
|
28
|
+
if sixed:
|
|
29
|
+
print("fixing these pids", sixed)
|
|
30
|
+
return sixed
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
class SixFix(Stream):
|
|
34
34
|
"""
|
|
35
|
-
|
|
35
|
+
SixFix class
|
|
36
|
+
fixes bin data streams with SCTE-35 to 0x86 SCTE-35 streams
|
|
36
37
|
"""
|
|
37
38
|
|
|
38
39
|
CUEI_DESCRIPTOR = b"\x05\x04CUEI"
|
|
@@ -52,11 +53,11 @@ class SixFix(Stream):
|
|
|
52
53
|
pkt = pkt[:4] + self.pmt_payload
|
|
53
54
|
return pkt
|
|
54
55
|
|
|
55
|
-
def
|
|
56
|
+
def convert_pids(self):
|
|
56
57
|
"""
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
convert_pids
|
|
59
|
+
changes the stream type to 0x86 and replaces
|
|
60
|
+
the existing PMT as it writes packets to the outfile
|
|
60
61
|
"""
|
|
61
62
|
active = io.BytesIO()
|
|
62
63
|
pkt_count = 0
|
|
@@ -168,16 +169,16 @@ class SixFix(Stream):
|
|
|
168
169
|
|
|
169
170
|
def sixfix(arg):
|
|
170
171
|
"""
|
|
171
|
-
|
|
172
|
+
sixfix converts 0x6 bin data mpegts streams
|
|
172
173
|
that contain SCTE-35 data to stream type 0x86
|
|
173
174
|
"""
|
|
174
175
|
s1 = PreFix(arg)
|
|
175
|
-
|
|
176
|
-
if not
|
|
176
|
+
sixed = s1.decode(func=passed)
|
|
177
|
+
if not sixed:
|
|
177
178
|
print2("No bin data SCTE-35 streams were found.")
|
|
178
179
|
else:
|
|
179
180
|
s2 = SixFix(arg)
|
|
180
|
-
s2.con_pids =
|
|
181
|
+
s2.con_pids = sixed
|
|
181
182
|
s2.convert_pid()
|
|
182
183
|
print2(f'Wrote: sixfixed-{arg.rsplit("/")[-1]}')
|
|
183
184
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: threefive
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.89
|
|
4
4
|
Summary: The Undisputed Heavyweight Champion of SCTE-35. The Belts have been Unified.
|
|
5
5
|
Home-page: https://github.com/futzu/threefive
|
|
6
6
|
Author: Adrian of Doom, and the Fine Folks at Fu Corp.
|
|
7
7
|
Author-email: spam@iodisco.com
|
|
8
8
|
License: UNKNOWN
|
|
9
|
-
Description: >
|
|
9
|
+
Description: > threefive parses SCTE-35 from HLS, DASH, MPEGTS, Base64, Bytes, Dict, Hex, Integer, Json amd Xml.
|
|
10
10
|
|
|
11
|
-
# threefive is
|
|
11
|
+
# threefive is the Highest Rated SCTE-35 tool. Ever.
|
|
12
|
+
|
|
13
|
+
# SCTE-35 parser, SCTE-35 decoder, SCTE-35 encoder, SCTE-35 injector and SCTE-35 converter.
|
|
12
14
|
|
|
13
15
|
<br> `Parses` __SCTE-35__ from multiple streams in `MPEGTS` and `Multiple Program Transport Streams`
|
|
14
16
|
<br> `Parses` __SCTE-35__ from Cues encoded in`Base64`, `Bytes`, `Hex`, `Integers`.
|
|
@@ -16,12 +18,13 @@ Description: > HLS Manifest and Segment SCTE-35 Parser coming in v2.4.87.
|
|
|
16
18
|
<br> `Parses` __SCTE-35__ from streams converted to `bin data` ( _type 0x06_ ) by `ffmpeg`.
|
|
17
19
|
<br>`Encodes` __SCTE-35__ to Base64, Bytes, Hex, Integer, Json ,Xml, or MPEGTS packets.
|
|
18
20
|
<br>
|
|
19
|
-
## Latest version is v2.4.
|
|
21
|
+
## Latest version is v2.4.89
|
|
20
22
|
_Released 10/29/2024_
|
|
21
23
|
|
|
22
|
-
### New Stuff in threefive v2.4.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
24
|
+
### New Stuff in threefive v2.4.89
|
|
25
|
+
* Fixed __iframes import error__
|
|
26
|
+
* A __Cue__ instance can now be initialized with __base64, bytes, dict,hex, hex literal, Json, or xml.__
|
|
27
|
+
* __HLS__ Manifest and Segment SCTE-35 parsing added to __threefive cli.__
|
|
25
28
|
|
|
26
29
|
### New Stuff in threefive v2.4.85
|
|
27
30
|
* Fix for #121 MiD upid encoding
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|