aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-07 20:03:43 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-07 20:03:43 +0200
commit82b0aced9133507f588486bcef3af322672e8819 (patch)
tree6ed394482fd913ddc43211366df371f10e070e6c
parent5eb9a7075cab7535d27996a37bf8434f8fe606a2 (diff)
downloaddab-scripts-82b0aced9133507f588486bcef3af322672e8819.tar.gz
dab-scripts-82b0aced9133507f588486bcef3af322672e8819.tar.bz2
dab-scripts-82b0aced9133507f588486bcef3af322672e8819.zip
Adapt scripts to renamed tools
-rw-r--r--README.md19
-rw-r--r--config/supervisor/encoder-bbc1.conf9
-rw-r--r--config/supervisor/encoder-f3.conf4
-rw-r--r--config/supervisor/encoder-fip.conf4
-rw-r--r--config/supervisor/encoder-maxxima.conf4
5 files changed, 22 insertions, 18 deletions
diff --git a/README.md b/README.md
index 35a5fc9..e76b6bb 100644
--- a/README.md
+++ b/README.md
@@ -1,17 +1,16 @@
ODR-mmbTools scripts for 24/7 operation
=======================================
-version : radioHack2016
-
+version : 2016-10-07
Prerequisites
-------------
-You need to have a working ODR-DabMux, ODR-DabMod, FDK-AAC-DABplus and/or
-Toolame-DAB configuration to use these scripts. Also
+You need to have a working ODR-DabMux, ODR-DabMod, ODR-AudioEnc, ODR-PadEnc
+and/or Toolame-DAB configuration to use these scripts. Also
[supervisor](http://supervisord.org/) is needed. (apt-get install supervisor)
The tools are expected to be installed in their usual place in /usr/local.
-Folder structure
+Folder Structure
----------------
The 'config' folder contains all needed configuration file and needed to be
@@ -24,14 +23,14 @@ moved into /home/odr/ folder.
with mkfifo for each radio (e.g. mkfifo /home/odr/config/mot/f3.pad)
-About encoder and mot-encoder
------------------------------
+About Audio and PAD Encoders
+----------------------------
-The encoder (toolame-dab or dabplus-enc) writes ICY-Text into a text file. You
+The encoder (ODR-AudioEnc or toolame-dab) writes ICY-Text into a text file. You
need to create this file at first for each radio :
* touch /home/odr/config/mot/f3.txt
-mot-encoder reads ICY-Text information from previous text file and writes into
+ODR-PadEnc reads ICY-Text information from previous text file and writes into
the pad file. This pad file need to be a FIFO and you need to create it for
each radio :
* mkfifo /home/odr/config/mot/f3.pad
@@ -40,7 +39,7 @@ If you use Slide Show, you can put your images into the directory under mot
folder corresponding to the radio (example: /home/odr/config/mot/f3/)
-About supervisor
+About Supervisor
----------------
You need to create sym link into /etc/supervisor/conf.d/ for each radio
diff --git a/config/supervisor/encoder-bbc1.conf b/config/supervisor/encoder-bbc1.conf
index a076568..c53068a 100644
--- a/config/supervisor/encoder-bbc1.conf
+++ b/config/supervisor/encoder-bbc1.conf
@@ -1,5 +1,10 @@
[program:encoder-bbc1]
-command=/usr/local/bin/toolame-dab -s 48 -V http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p -b 128 -W /home/odr/config/mot/bbc1.txt -p 58 -P /home/odr/config/mot/bbc1.pad tcp://127.0.0.1:9004
+# DAB encoding using odr-audioenc
+command=/usr/local/bin/odr-audioenc --dab --vlc-uri=http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p -b 128 -r 48000 -o tcp://127.0.0.1:9004 --pad=58 --pad-fifo=/home/odr/config/mot/bbc1.pad --write-icy-text=/home/odr/config/mot/bbc1.txt
+
+# DAB encoding using toolame
+#command=/usr/local/bin/toolame-dab -s 48 -V http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p -b 128 -W /home/odr/config/mot/bbc1.txt -p 58 -P /home/odr/config/mot/bbc1.pad tcp://127.0.0.1:9004
+
autostart=false
autorestart=true
priority=10
@@ -7,7 +12,7 @@ stderr_logfile=/var/log/supervisor/encoder-bbc1.log
stdout_logfile=/var/log/supervisor/encoder-bbc1.log
[program:mot-bbc1]
-command=/usr/local/bin/mot-encoder -t /home/odr/config/mot/bbc1.txt -o /home/odr/config/mot/bbc1.pad --pad=58 --charset=15 --dir=/home/odr/config/mot/bbc1/ --sleep=30
+command=/usr/local/bin/odr-padenc -t /home/odr/config/mot/bbc1.txt -o /home/odr/config/mot/bbc1.pad --pad=58 --charset=15 --dir=/home/odr/config/mot/bbc1/ --sleep=30
autostart=false
autorestart=true
priority=10
diff --git a/config/supervisor/encoder-f3.conf b/config/supervisor/encoder-f3.conf
index 71451a4..715bf1a 100644
--- a/config/supervisor/encoder-f3.conf
+++ b/config/supervisor/encoder-f3.conf
@@ -1,5 +1,5 @@
[program:encoder-f3]
-command=/usr/local/bin/dabplus-enc --vlc-uri=http://ice.stream.frequence3.net/frequence3-128.mp3 -b 96 -r 48000 --sbr -o tcp://127.0.0.1:9001 --pad=58 --pad-fifo=/home/odr/config/mot/f3.pad --write-icy-text=/home/odr/config/mot/f3.txt
+command=/usr/local/bin/odr-audioenc --vlc-uri=http://ice.stream.frequence3.net/frequence3-128.mp3 -b 96 -r 48000 -o tcp://127.0.0.1:9001 --pad=58 --pad-fifo=/home/odr/config/mot/f3.pad --write-icy-text=/home/odr/config/mot/f3.txt
autostart=false
autorestart=true
priority=10
@@ -7,7 +7,7 @@ stderr_logfile=/var/log/supervisor/encoder-f3.log
stdout_logfile=/var/log/supervisor/encoder-f3.log
[program:mot-f3]
-command=/usr/local/bin/mot-encoder -t /home/odr/config/mot/f3.txt -o /home/odr/config/mot/f3.pad --pad=58 --charset=15 --dir=/home/odr/config/mot/f3/ --sleep=30
+command=/usr/local/bin/odr-padenc -t /home/odr/config/mot/f3.txt -o /home/odr/config/mot/f3.pad --pad=58 --dir=/home/odr/config/mot/f3/ --sleep=30
autostart=false
autorestart=true
priority=10
diff --git a/config/supervisor/encoder-fip.conf b/config/supervisor/encoder-fip.conf
index c1fcbea..a35b96b 100644
--- a/config/supervisor/encoder-fip.conf
+++ b/config/supervisor/encoder-fip.conf
@@ -1,5 +1,5 @@
[program:encoder-fip]
-command=/usr/local/bin/dabplus-enc --vlc-uri=http://audio.scdn.arkena.com/11016/fip-midfi128.mp3 -b 96 -r 48000 --sbr -o tcp://127.0.0.1:9003 --pad=58 --pad-fifo=/home/odr/config/mot/fip.pad --write-icy-text=/home/odr/config/mot/fip.txt
+command=/usr/local/bin/odr-audioenc --vlc-uri=http://audio.scdn.arkena.com/11016/fip-midfi128.mp3 -b 96 -r 48000 -o tcp://127.0.0.1:9003 --pad=58 --pad-fifo=/home/odr/config/mot/fip.pad --write-icy-text=/home/odr/config/mot/fip.txt
autostart=false
autorestart=true
priority=10
@@ -7,7 +7,7 @@ stderr_logfile=/var/log/supervisor/encoder-fip.log
stdout_logfile=/var/log/supervisor/encoder-fip.log
[program:mot-fip]
-command=/usr/local/bin/mot-encoder -t /home/odr/config/mot/fip.txt -o /home/odr/config/mot/fip.pad --pad=58 --charset=15 --dir=/home/odr/config/mot/fip/ --sleep=30
+command=/usr/local/bin/odr-padenc -t /home/odr/config/mot/fip.txt -o /home/odr/config/mot/fip.pad --pad=58 --dir=/home/odr/config/mot/fip/ --sleep=30
autostart=false
autorestart=true
priority=10
diff --git a/config/supervisor/encoder-maxxima.conf b/config/supervisor/encoder-maxxima.conf
index 792e668..550eb91 100644
--- a/config/supervisor/encoder-maxxima.conf
+++ b/config/supervisor/encoder-maxxima.conf
@@ -1,5 +1,5 @@
[program:encoder-maxxima]
-command=/usr/local/bin/dabplus-enc --vlc-uri=http://maxxima.mine.nu:8000/ -b 96 -r 32000 --sbr -o tcp://127.0.0.1:9002 --pad=58 --pad-fifo=/home/odr/config/mot/maxxima.pad --write-icy-text=/home/odr/config/mot/maxxima.txt
+command=/usr/local/bin/odr-audioenc --vlc-uri=http://maxxima.mine.nu:8000/ -b 96 -r 32000 -o tcp://127.0.0.1:9002 --pad=58 --pad-fifo=/home/odr/config/mot/maxxima.pad --write-icy-text=/home/odr/config/mot/maxxima.txt
autostart=false
autorestart=true
priority=10
@@ -7,7 +7,7 @@ stderr_logfile=/var/log/supervisor/encoder-maxxima.log
stdout_logfile=/var/log/supervisor/encoder-maxxima.log
[program:mot-maxxima]
-command=/usr/local/bin/mot-encoder -t /home/odr/config/mot/maxxima.txt -o /home/odr/config/mot/maxxima.pad --pad=58 --charset=15 --dir=/home/odr/config/mot/maxxima/ --sleep=30
+command=/usr/local/bin/odr-padenc -t /home/odr/config/mot/maxxima.txt -o /home/odr/config/mot/maxxima.pad --pad=58 --dir=/home/odr/config/mot/maxxima/ --sleep=30
autostart=false
autorestart=true
priority=10