Media address format

    The media address consists of three parts:

    type://address#options
    

    type
    This element describes what type of protocol to use. The following types are available:
    udp
    UDP multicast, unicast or broadcast;
    rtp
    a protocol based on UDP;
    http
    HTTP protocol. MPEG-TS, HLS (HTTP live streaming video);
    resi
    a protocol that sends data to the DVB-C modulator;
    file
    MPEG-TS files;
    np
    NetworkPush - the HTTP-based protocol is used to send streams to the server.

    address

    Receive/transmit address


    options

    There are special and general parameters. The parameters must be separated by the & character.
    For example: resi://#adapter=0&frequency=346&modulation=QAM256


    Protocol reception/transmission formats:

    Click to expand:

    UDP/RTP
    udp://[interface@]address[:port]
    rtp://[interface@]address[:port]
    interface
    IPv4 address or name of the local interface. The routing table is used by default.
    address
    IPv4 address of the stream. Multicast or unicast.
    port
    port number. Default: 1234.
    Advanced setting
    ttl=TTL
    the life time of a UDP packet. Default: 32.
    sync
    flow synchronization is a uniform flow transfer based on the PCR label. Astra calculates the total block size between two PCR labels and the actual block speed.
    no_sync
    this setting disables the sync function.
    Note:
    • For Astra versions 5.63 and below-the feature is disabled by default.
    • For Astra version 5.64-the function is enabled by default.
    cbr=RATE
    add NULL-TS packets to the stream to get a constant bitrate. The value must be in KBit/s
    renew=INTERVAL
    renewing your multicast group subscription after a specified time (in seconds)

    For example:
    udp://239.255.1.1:1234 udp://eth0@239.255.1.1
    udp://239.255.1.1:1234#cbr=8000


    RTSP
    RTSP protocol is only available for reception!\
    rtsp://[login:password@]address[:port][/path]
    login:password
    username and password for authorization rtsp
    address
    IPv4 server address or domain name
    port
    port number. Default: 554
    path
    the path to the resource. Default: /

    HTTP
    http://interface:port[/path]
    interface
    the address of the local interface
    port
    port number. Default: 80
    path
    the path to the resource. To use HLS, there must be .m3u8 at the end of the path. Default: /

    Additional parameters of HLS stream transmission:

    duration=5
    segment length in seconds. Default: 5
    quantity=6
    number of segments. Default: 6
    no_auth
    access to the stream without authentication

    Additional MPEG-TS streaming options:

    buffer_size=SIZE
    the size of the client buffer, in kilobytes. A buffer is allocated for each connection and prevents data loss during transmission delay. Default: 1024
    buffer_fill=SIZE
    the minimum size of data in kilobytes that must be collected before sending to the client. Default: 256
    no_auth
    access to the stream without authentication
    Additional reception options:
    ua=USER-AGENT
    custom user-agent. Default: Astra
    timeout=TIMEOUT
    timeout, in seconds, to establish a connection to the server. Default: 10
    buffer_size=SIZE
    receive buffer size, in kilobytes. Default: 1024
    buffer_time=TIME
    the buffer size in seconds as an alternative to setting buffer_size

    Example: http://0:10000/channel-id/index.m3u8#no_auth - HLS transmission
    http://0:10000/channel-id — MPEG-TS stream

    An additional proxy server, such as nginx, must be used to obtain the HTTPS source, as Astra does not yet support HTTPS.

    Create a configuration file /etc/nginx/sites-enabled/astra with the contents:

    server {
        listen 30000;
        server_name _;
    
        location / {
            proxy_cache off;
            expires -1;
            proxy_ssl_server_name on;
            proxy_pass https://example.com:8000;
        }
    }
    

    RESI

    RESI — is a DVB-C modulator manufactured by DigitalDevices.

    resi://#adapter=0&device=0&frequency=346&modulation=QAM256

    Options:
    adapter
    RESI adapter number in the system: /dev/dvb/adapter0
    device
    modulator number in RESI adapter: /dev/dvb/adapter0/mod0
    frequency
    transponder frequency
    symbolrate
    transponder speed. Default: 6900
    modulation
    DVB-C modulation, possible meanings: QAM16, QAM32, QAM64, QAM128, QAM256. Default: QAM64
    attenuator
    Signal attenuation. The value must be between 0 and 10. Default: 0

    MPEG-TS File

    file://path path — the path to the file
    Example:
    file:///mnt/raid0/file.ts

    Additional parameters:
    loop
    looping file playback.

    Network Push

    Network Push — The transmission protocol stream for HTTP-based.
    Used for transmitting stream from the client to the server.
    For example to send a stream to servers for transcoding.

    np://[login:password@]address[:port][/path]
    login:password
    login and password for HTTP authorization. Supports: Basic, Digest. For Input only!
    address
    IPv4 address or host domain name
    port
    port number. Default: 80
    path
    the path to the resource. Default: /

    Additional parameters for Output:
    sctp — use SCTP instead of TCP

    Example:
    np://media.example.com/channel-id


    Global receive options

    pnr=PNR
    the program number/SID (Service ID) retrieves the channel with the specified number from the stream.
    set_pnr=PNR
    to change PNR. The value must be between 1 and 65535.
    set_tsid=TSID
    to change TSID (Transport Stream ID).
    biss=1122330044556600
    use BISS key for decrypting stream.
    cam
    use DVB-CI for decrypting stream.
    cam=CAM-ID
    use Softcam for decrypting stream.
    ecm_pid=PID
    to install ECM PID (not recommended).
    shift=X
    the size of the decryption buffer for the incoming stream, in megabits, allows the decryption of the stream to be delayed. The parameter may be required for "Sky" channels. To calculate the value of the parameter, you need to multiply the bitrate of the stream by the delay time, in seconds. For example 10Mbps * 3 seconds will get shift=30
    cas
    skip service data about conditional access systems. Used to transmit an encrypted stream.
    filter=N,…
    stream filtration, used to remove the specified PID. Identifiers are separated by commas.
    filter~=N,…
    stream filtering, used to remove all data except specified PID and service tables. Identifiers are separated by commas.
    map.SRC=DST
    change PID to the specified values. SRC - the original identifier or data type. Possible types: pmt, video, audio, language code. DST - required identifier. The value can be between 16 and 8190.
    no_sdt
    to delete channel information: channel name, operator name (SDT Service Description Table).
    pass_sdt
    SDT transfer without processing. By default, if pnr is set, Astra transmits information only on the selected stream.
    no_eit
    delete EPG event information (EIT - Event Information Table).
    pass_eit
    EIT transmission without processing. By default, if pnr is set, Astra transmits information only on the selected stream.
    no_reload
    disables checking for changes in the stream.
    cc_limit=N
    set CC error limit. If the number of CC errors exceeds the set limit, Astra will switch to the backup source (if available). Default: no limit is set.
    bitrate_limit=RATE
    set the minimum bitrate for the analyzer in Kbit/s. The source will be considered non-working if the stream bitrate is less than the specified value. Default: 16 Kbit/s for stream without video data and 128 Kbit/s for stream with video data.
    watchdog=N
    set the timer trigger time to restart the faulty incoming stream, set in seconds. Default: 5 sec.
    sctp
    use SCTP instead of TCP.
    order 1
    sort PID in the PMT table. Often used with the lang parameter to select a priority audio track. In this example, we will set the English audio track first (default):
    lang.1475=ita&lang.1472=eng&order=1472,1475
    

    1475 и 1472 - PID

    lang 1
    set the language property for the audio track
    Example:
    lang.1241=eng
    

    1241 - pid, eng - language code.


    1. Available from version 5.64  2