threefive3 3.0.23__tar.gz → 3.0.25__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 (39) hide show
  1. {threefive3-3.0.23/threefive3.egg-info → threefive3-3.0.25}/PKG-INFO +2 -2
  2. {threefive3-3.0.23 → threefive3-3.0.25}/README.md +1 -1
  3. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/iframes.py +0 -4
  4. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/stream.py +16 -7
  5. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/version.py +1 -1
  6. {threefive3-3.0.23 → threefive3-3.0.25/threefive3.egg-info}/PKG-INFO +2 -2
  7. {threefive3-3.0.23 → threefive3-3.0.25}/LICENSE +0 -0
  8. {threefive3-3.0.23 → threefive3-3.0.25}/bin/threefive3 +0 -0
  9. {threefive3-3.0.23 → threefive3-3.0.25}/setup.cfg +0 -0
  10. {threefive3-3.0.23 → threefive3-3.0.25}/setup.py +0 -0
  11. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/__init__.py +0 -0
  12. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/base.py +0 -0
  13. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/bitn.py +0 -0
  14. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/commands.py +0 -0
  15. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/crc.py +0 -0
  16. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/cue.py +0 -0
  17. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/descriptors.py +0 -0
  18. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/encode.py +0 -0
  19. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/gums.py +0 -0
  20. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/hls.py +0 -0
  21. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/hlstags.py +0 -0
  22. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/new_reader.py +0 -0
  23. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/packetdata.py +0 -0
  24. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/section.py +0 -0
  25. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/segment.py +0 -0
  26. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/segmentation.py +0 -0
  27. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/sixfix.py +0 -0
  28. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/streamtypes.py +0 -0
  29. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/stuff.py +0 -0
  30. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/superkabuki.py +0 -0
  31. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/sxp.py +0 -0
  32. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/upids.py +0 -0
  33. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/words.py +0 -0
  34. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/x2c.py +0 -0
  35. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3/xml.py +0 -0
  36. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3.egg-info/SOURCES.txt +0 -0
  37. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3.egg-info/dependency_links.txt +0 -0
  38. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3.egg-info/requires.txt +0 -0
  39. {threefive3-3.0.23 → threefive3-3.0.25}/threefive3.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: threefive3
3
- Version: 3.0.23
3
+ Version: 3.0.25
4
4
  Summary: SCTE-35 decoder and encoder with MPEGTS and HLS and XML support.
5
5
  Home-page: https://github.com/superkabuki/threefive3
6
6
  Author: Adrian of Doom
@@ -38,7 +38,7 @@ Canada has a virtual monopoly on the World's mustard seed supply and they will u
38
38
  * Automatic AES decryption for HLS.
39
39
  * All HLS SCTE-35 Tags are Supported.
40
40
 
41
- ### Latest release is v3.0.21
41
+ ### Latest release is v3.0.25
42
42
  > Stay up to date, only the latest release is supported.
43
43
  ___
44
44
  ### MPEGTS streams can be parsed for SCTE-35 with three lines of code.
@@ -17,7 +17,7 @@ Canada has a virtual monopoly on the World's mustard seed supply and they will u
17
17
  * Automatic AES decryption for HLS.
18
18
  * All HLS SCTE-35 Tags are Supported.
19
19
 
20
- ### Latest release is v3.0.21
20
+ ### Latest release is v3.0.25
21
21
  > Stay up to date, only the latest release is supported.
22
22
  ___
23
23
  ### MPEGTS streams can be parsed for SCTE-35 with three lines of code.
@@ -89,10 +89,6 @@ class IFramer:
89
89
  """
90
90
  _is_key is key frame detection.
91
91
  """
92
- if b"\x00\x00\x01" in pkt:
93
- idx = pkt.index(b"\x00\x00\x01")
94
- if pkt[idx + 3 : idx + 4] in [b"\xe0", b"\xc0", b"\xbd"]:
95
- return True
96
92
  if self._nal(pkt):
97
93
  return True
98
94
  if self._afc_flag(pkt):
@@ -419,12 +419,21 @@ class Stream:
419
419
  parse pts and store by program key
420
420
  in the dict Stream._pid_pts
421
421
  """
422
- pts = self.iframer.ticks(pkt)
423
- if pts:
424
- prgm = self.pid2prgm(pid)
425
- self.maps.prgm_pts[prgm] = pts
426
- if prgm not in self.start:
427
- self.start[prgm] = pts
422
+ ## if b"\x00\x00\x01" in pkt:
423
+ ## idx = pkt.index(b"\x00\x00\x01")
424
+ ## if pkt[idx + 3 : idx + 4] in [b"\xe0", b"\xc0", b"\xbd"]:
425
+ payload = self._parse_payload(pkt)
426
+ if len(payload) > 13:
427
+ if self._pts_flag(payload):
428
+ pts = (payload[9] & 14) << 29
429
+ pts |= payload[10] << 22
430
+ pts |= (payload[11] >> 1) << 15
431
+ pts |= payload[12] << 7
432
+ pts |= payload[13] >> 1
433
+ prgm = self.pid2prgm(pid)
434
+ self.maps.prgm_pts[prgm] = pts
435
+ if prgm not in self.start:
436
+ self.start[prgm] = pts
428
437
 
429
438
  def _parse_pcr(self, pkt, pid):
430
439
  if self._afc_flag(pkt[3]):
@@ -545,7 +554,7 @@ class Stream:
545
554
  def _strip_scte35_pes(self, pkt):
546
555
  pay = self._parse_payload(pkt)
547
556
  if self.SCTE35_PES_START in pay:
548
- # print2(f"# Stripping PES Header from SCTE35 @ {self.pid2pts(pid)}")
557
+ blue(f"# Stripping PES Header from SCTE35 @ {self.pid2pts(pid)}")
549
558
  pay = pay.split(self.SCTE35_PES_START, 1)[-1]
550
559
  peslen = pay[4] + 5 # PES header length
551
560
  pay = pay[peslen:]
@@ -5,6 +5,6 @@ from the cli tool run: threefive3 version
5
5
 
6
6
  major = 3
7
7
  minor = 0
8
- maintenance = 23
8
+ maintenance = 25
9
9
 
10
10
  version = f"{major}.{minor}.{maintenance}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: threefive3
3
- Version: 3.0.23
3
+ Version: 3.0.25
4
4
  Summary: SCTE-35 decoder and encoder with MPEGTS and HLS and XML support.
5
5
  Home-page: https://github.com/superkabuki/threefive3
6
6
  Author: Adrian of Doom
@@ -38,7 +38,7 @@ Canada has a virtual monopoly on the World's mustard seed supply and they will u
38
38
  * Automatic AES decryption for HLS.
39
39
  * All HLS SCTE-35 Tags are Supported.
40
40
 
41
- ### Latest release is v3.0.21
41
+ ### Latest release is v3.0.25
42
42
  > Stay up to date, only the latest release is supported.
43
43
  ___
44
44
  ### MPEGTS streams can be parsed for SCTE-35 with three lines of code.
File without changes
File without changes
File without changes
File without changes