Skip to content

Use threefive to decode SCTE35 Markers from UDP / RTP / SRT stream #91

Answered by futzu
pcb105 asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't found a SRT lib for python3.

Here's how I did UDP

  • udptest.py
import sys
from threefive import Stream


arg = sys.argv[1]
strm = Stream(arg)
strm.decode()
  • Run udptest.py
pypy3 udptest.py udp://192.168.12.244:1234
  • Use gums to serve an mpegts file over UDP.
 cat flat.ts | gums -a 192.168.12.244:1234
  • Output.
{
    "info_section": {
        "table_id": "0xfc",
        "section_syntax_indicator": false,
        "private": false,
        "sap_type": "0x3",
        "sap_details": "No Sap Type",
        "section_length": 64,
        "protocol_version": 0,
        "encrypted_packet": false,
        "encryption_algorithm": 0,
        "pts_adjustment_ticks": 6734276504,
        "pts…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pcb105
Comment options

Answer selected by pcb105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants