aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/example.json94
-rw-r--r--doc/example.mux3
2 files changed, 97 insertions, 0 deletions
diff --git a/doc/example.json b/doc/example.json
new file mode 100644
index 0000000..6d543b6
--- /dev/null
+++ b/doc/example.json
@@ -0,0 +1,94 @@
+{
+ "_comment": "This is the same as example.mux, but in JSON format. JSON doesn't really support comments, so please refer to the example.mux and advanced.mux for documentation of the settings",
+ "general": {
+ "dabmode": 1,
+ "nbframes": 0,
+ "syslog": false,
+ "tist": false,
+ "tist_offset": 0,
+ "managementport": 12720
+ },
+ "remotecontrol": {
+ "telnetport": 12721,
+ "zmqendpoint": "tcp://lo:12722"
+ },
+ "ensemble": {
+ "id": "0x4fff",
+ "ecc": "0xe1",
+ "local-time-offset": "auto",
+ "reconfig-counter": "hash",
+ "label": "OpenDigitalRadio",
+ "shortlabel": "ODR"
+ },
+ "services": {
+ "srv-fu": {
+ "id": "0x4daa",
+ "label": "Fünk"
+ },
+ "srv-ri": {
+ "id": "0x5dab",
+ "ecc": "0xe0",
+ "label": "Rick"
+ }
+ },
+ "subchannels": {
+ "sub-fu": {
+ "type": "audio",
+ "bitrate": 128,
+ "id": 10,
+ "protection": 3,
+ "inputfile": "funk.mp2"
+ },
+ "sub-bla": {
+ "type": "audio",
+ "bitrate": 96,
+ "id": 1,
+ "protection": 1,
+
+ "inputproto": "edi",
+ "inputuri": "tcp://0.0.0.0:9001",
+ "buffer-management": "prebuffering",
+ "buffer": 40,
+ "prebuffering": 20
+ },
+ "sub-ri": {
+ "type": "dabplus",
+ "bitrate": 96,
+ "id": 1,
+ "protection": 3,
+
+ "inputproto": "edi",
+ "inputuri": "tcp://127.0.0.1:9000",
+ "buffer-management": "timestamped",
+
+ "buffer": 500,
+ "tist-delay": 10
+ }
+ },
+ "components": {
+ "comp-fu": {
+ "service": "srv-fu",
+ "subchannel": "sub-fu"
+ },
+ "comp-ri": {
+ "service": "srv-ri",
+ "subchannel": "sub-ri",
+
+ "user-applications": {
+ "userapp": "slideshow"
+ }
+ }
+ },
+ "outputs": {
+ "throttle": "simul://",
+ "stdout": "fifo:///dev/stdout?type=raw",
+ "edi": {
+ "destinations": {
+ "example_tcp": {
+ "protocol": "tcp",
+ "listenport": 13000
+ }
+ }
+ }
+ }
+}
diff --git a/doc/example.mux b/doc/example.mux
index 03fb3f0..9a5686b 100644
--- a/doc/example.mux
+++ b/doc/example.mux
@@ -3,6 +3,9 @@
; It doesn't show all possible options. A more detailed example
; is available in doc/advanced.mux
;
+; The configuration file can also be given in JSON format, an
+; example is given in doc/example.json
+;
; It contains two services, one DAB and one DAB+, and also shows
; both the file input useful for offline processing, and the
; EDI input useful in a 24/7 scenario.