Comments (2)
You are using an old version.
2.3.61 is the latest.
python3 -mpip install --upgrade threefive
a@debian:~/cuei$ pypy3
Python 3.8.13 (7.3.9+dfsg-5, Oct 30 2022, 09:55:31)
[PyPy 7.3.9 with GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>> from threefive import Cue
>>>> Base64 = "/DBhAAAAAyiY///wBQb+AS4ycQBLAh5DVUVJLcYgPX//AAD4flUICAAEzagtxiA9\
NAECAAACKUNVRUkAAAAAf78MGlZNTlUB+pOe004CEe2tjg5Azy/ChQGxHMmtAQAAphbmGg=="
>>>> cue=Cue(Base64)
>>>> cue.decode()
True
>>>> cue.show()
{
"info_section": {
"table_id": "0xfc",
"section_syntax_indicator": false,
"private": false,
"sap_type": "0x3",
"sap_details": "No Sap Type",
"section_length": 97,
"protocol_version": 0,
"encrypted_packet": false,
"encryption_algorithm": 0,
"pts_adjustment_ticks": 207000,
"pts_adjustment": 2.3,
"cw_index": "0xff",
"tier": "0xfff",
"splice_command_length": 5,
"splice_command_type": 6,
"descriptor_loop_length": 75,
"crc": "0xa616e61a"
},
"command": {
"command_length": 5,
"command_type": 6,
"name": "Time Signal",
"time_specified_flag": true,
"pts_time": 220.053167,
"pts_time_ticks": 19804785
},
"descriptors": [
{
"tag": 2,
"descriptor_length": 30,
"name": "Segmentation Descriptor",
"identifier": "CUEI",
"components": [],
"segmentation_event_id": "0x2dc6203d",
"segmentation_event_cancel_indicator": false,
"program_segmentation_flag": true,
"segmentation_duration_flag": true,
"delivery_not_restricted_flag": true,
"segmentation_duration": 180.947433,
"segmentation_duration_ticks": 16285269,
"segmentation_message": "Provider Placement Opportunity Start",
"segmentation_upid_type": 8,
"segmentation_upid_type_name": "AiringID",
"segmentation_upid_length": 8,
"segmentation_upid": "0x4cda82dc6203d",
"segmentation_type_id": 52,
"segment_num": 1,
"segments_expected": 2,
"sub_segment_num": 0,
"sub_segments_expected": 0
},
{
"tag": 2,
"descriptor_length": 41,
"name": "Segmentation Descriptor",
"identifier": "CUEI",
"components": [],
"segmentation_event_id": "0x0",
"segmentation_event_cancel_indicator": false,
"program_segmentation_flag": true,
"segmentation_duration_flag": false,
"delivery_not_restricted_flag": true,
"segmentation_message": "Content Identification",
"segmentation_upid_type": 12,
"segmentation_upid_type_name": "MPU",
"segmentation_upid_length": 26,
"segmentation_upid": {
"format_identifier": 1447906901,
"private_data": "0x1fa939ed34e0211edad8e0e40cf2fc28501b11cc9ad"
},
"segmentation_type_id": 1,
"segment_num": 0,
"segments_expected": 0
}
]
}
>>>>
from threefive.
Upgrading threefive should resolve your issue,
let me know.
from threefive.
Related Issues (20)
- OSError: [Errno 55] No buffer space available HOT 8
- Issues with example scripts HOT 6
- 2 quick points HOT 6
- Decode / encode round trip produces unexpected results HOT 5
- Tried editing a splice insert from example but getting different result HOT 3
- 2nd argument is missing HOT 2
- Having latest.py file breaks rpm build HOT 7
- IndexError thrown in _decode_components() threefive/commands.py:217 HOT 6
- unable to re-encode the following base64 /DA8AAAAAAAAAP/wBQb/ZoaJUwAmAiRDVUVJBPpHwH/9AABSY2IMEERJU0NTTURDMDc3MzAwTEg0AQESS6TU HOT 6
- Hey I'd love to talk about scte35 support! HOT 1
- The SCTE35 "section_length" value is always 3 bytes less than the actual size HOT 2
- cmd.py in latest PyPI release is not syntaxically correct HOT 6
- Can't parse valid SCTE-35 HOT 11
- decode local ts file fails... HOT 3
- encoding a signal with auto_return = true HOT 2
- UPID parsing with strange output HOT 6
- Does anyone speak DASH?
- Crash when decoding private descriptors from PrivateCommand HOT 19
- Are you for hire in scte35 related jobs? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from threefive.