Skip to content

Commit

Permalink
Adapt scripts to renamed tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbraendli committed Oct 7, 2016
1 parent 5eb9a70 commit 82b0ace
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
9 changes: 7 additions & 2 deletions config/supervisor/encoder-bbc1.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
[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
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
Expand Down
4 changes: 2 additions & 2 deletions config/supervisor/encoder-f3.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[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
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
Expand Down
4 changes: 2 additions & 2 deletions config/supervisor/encoder-fip.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[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
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
Expand Down
4 changes: 2 additions & 2 deletions config/supervisor/encoder-maxxima.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[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
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
Expand Down

0 comments on commit 82b0ace

Please sign in to comment.