Giter Club home page Giter Club logo

Comments (2)

futzu avatar futzu commented on June 18, 2024

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.

futzu avatar futzu commented on June 18, 2024

Upgrading threefive should resolve your issue,
let me know.

from threefive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.