Skip to content

Instantly share code, notes, and snippets.

@mondain
Last active October 27, 2020 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mondain/90c4b358e68a3dc3e7c136b4dbbee334 to your computer and use it in GitHub Desktop.
Save mondain/90c4b358e68a3dc3e7c136b4dbbee334 to your computer and use it in GitHub Desktop.
Red5 Pro Server SRT parameters

Configuration Options

When one configures SRT end-points using the provision style submission, the following parameters are available:

{
    "guid": "live/stream1",
    "context": "live",
    "name": "stream1",
    "level": 0,
    "parameters": {
        "type": "srt",
        "action": "create",
        "ip": "0.0.0.0",
        "port": 8000,
        "frameType": 0,
        "latency": 100,
        "reorder": 16,
        "overhead": 100,
        "keyLength": 16,
        "passphrase": "Red5ProRules2020"
    }
}

Supported parameters:

  • frameType - The type of encapsulation utilized for the data (audio, video, etc) traversing the network
    • 0 - MPEG-TS
    • 1 - EFP (Elastic Framework Protocol)
  • latency - TsbPd receiver delay (mSec) to absorb burst of missed packet retransmission. The time that should elapse since the moment when the packet was sent and the moment when it’s delivered to the receiver application in the receiving function. This time should be a buffer time large enough to cover the time spent for sending, unexpectedly extended RTT time, and the time needed to retransmit the lost UDP packet.
  • reorder - Maximum possible packet reorder tolerance (number of packets to receive after loss to send lossreport)
  • overhead - Recovery bandwidth overhead above input rate. A Maximum bandwidth ceiling based on % over input stream rate.
  • keyLength - Cryptographic key length in bytes
    • 0 = PBKEYLEN not set, crypto disabled
    • 16 = AES-128
    • 24 = AES-192
    • 32 = AES-256
  • passphrase - Crypto PBKDF2 Passphrase size [0,10..64] (0 = disable)

Additional info about the parameters:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment