package
0.0.0-20241004231951-ce2c092996ab
Repository: https://github.com/eluv-io/avpipe.git
Documentation: pkg.go.dev

# README

Go Transport Stream parsing

TODO

  • Removing use of TeeReader should give better performance

SCTE-35 JSON subset used:

{
   "pts": 8554888184,
   "protocol_version": 0,
   "tier": 4095,
   "encryption_algorithm": 0,
   "cw_index": 0,
   "splice_command_type": 6,
   "splice_null": {},
   "time_signal": {},
   "splice_descriptors": [
      {
         "splice_descriptor_tag": 2,
         "splice_descriptor_name": "segmentation_descriptor",
         "segmentation_event_id": 158662685,
         "segmentation_event_cancel_indicator": false,
         "segmentation_duration": 0,
         "segmentation_type_id": 33,
         "segment_num": 5,
         "segments_expected": 1,
         "sub_segment_num": 0,
         "sub_segments_expected": 0,
         "delivery_restrictions": {
            "web_delivery_allowed_flag": true,
            "no_regional_blackout_flag": true,
            "archive_allowed_flag": true,
            "device_restrictions": 3
         },
         "segmentation_upids": [
            {
               "segmentation_upid_type": 1,
               "format_identifier": 123,
               "upid": "EP034115060099 RVAwMzQxMTUwNjAwOTk="
            }
         ],
         "components": [
            {
               "component_tag": 8,
               "pts_offset": 33
            }
         ]
      },
      {
         "splice_descriptor_tag": 2,
         "...": "multiple descriptors allowed"
      }
   ]
}

# Packages

No description provided by the author

# Functions

TODO We should parse the SCTE data directly instead of going through layers of gots, which doesn't support JSON marshaling.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
TODO The Tee is unnecessary once we have code to parse TS packets directly Implements io.ReadCloser.
No description provided by the author
No description provided by the author
No description provided by the author
The purpose of this struct is for JSON marshaling with minimal complexity.