aboutsummaryrefslogtreecommitdiffstats
path: root/zmq-simul.mux
blob: 186e1eb84637601b732e63ff7667e3d2f9f8e469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
general {
    ; the DAB Transmission mode (values 1-4 accepted)
    dabmode 1

    ; the number of ETI frames to generate (set to 0 to get an unlimited number)
    nbframes 0

    ; The statsserver for extracting statistics
    statsserverport 12720

    syslog false
    writescca false
    tist true
}

remotecontrol {
    ; enable the remote control server
    telnetport 12721
}

; Some ensemble parameters
ensemble {
    id 0x4fff

    ; Extended Country Code (decimal)
    ecc 225

    local-time-offset 2
    international-table 1
    label "TuxMux"
    shortlabel "Tux"
}

services {
    srv-fb {
        label "FB"
        shortlabel "FB"
        pty 0
        language 0
        id 0x4060
        ; also supports id
    }
    srv-label {
        label "label"
        id 0x4040
        ; also supports id
    }
}

; The subchannels are defined in the corresponding section.
; supported types are : audio, bridge, data, enhancedpacket,
;                       dabplus, dmb, packet, test
subchannels {
    sub-fb {
        type dabplus
        ; use ZeroMQ:
        inputfile "tcp://*:9000"
        zmq-buffer 40
        zmq-prebuffering 20
        bitrate 64
        id 24
        protection 3

        encryption 1
        secret-key "keys/mux.sec"
        public-key "keys/mux.pub"
        encoder-key "keys/encoder1.pub"
    }
    sub-label {
        type audio
        inputfile "tcp://*:9001"
        zmq-buffer 40
        zmq-prebuffering 20
        bitrate 128
        id 4
        protection 3
    }
}

; For now, each component links one service to one subchannel
components {
    ; the component unique identifiers are not used anywhere, but
    ; are useful to disambiguate different components.
    comp-fb {
        label "FBcomp"
        shortlabel "FBcomp"
        service srv-fb
        subchannel sub-fb
    }

    comp-label {
        label "label"
        service srv-label
        subchannel sub-label
    }
}

; A list of outputs, in the format
; unique-id "uri"
outputs {
    ;stdout "fifo:///dev/stdout?type=raw"
    ;zmq  "zmq+tcp://*:9100"

    ; This throttles muxing down to nominal rate
    throttle "simul://"

}