docs:svx
This is an old revision of the document!
Table of Contents
SVXLink Reflector + portal + live broadcaster
Loopback sound interfaces
To redistribute your reflector content to icecast, you'll need to set up loopback sound interfaces.
The following file will be used to create 3 loopback interfaces at boot time.
It shall be placed in /etc/modprobe.d/:
- aloop.conf
options snd-aloop enable=1,1,1 index=10,11,12
Then run the following command:
echo "snd-aloop" >> /etc/modules
The code above takes care of boot time configuration. To add the interfaces without rebooting, run the following:
(lsmod | grep snd_aloop) && modprobe -r snd_aloop modprobe snd-aloop enable=1,1,1 index=10,11,12
You need to adjust the enable and index parameters to insert additional interfaces.
Icecast
Install icecast2 from repository.
Below, you'll find the configuration file to install in /etc/icecast2/ after having changed the passwords.
- icecast2.xml
<icecast> <location>Region Auvergne-Rhone-Alpes</location> <admin>icemaster@localhost</admin> <limits> <clients>100</clients> <sources>10</sources> <queue-size>524288</queue-size> <client-timeout>30</client-timeout> <header-timeout>15</header-timeout> <source-timeout>10</source-timeout> <burst-on-connect>1</burst-on-connect> <burst-size>65535</burst-size> </limits> <authentication> <source-password>CHANGEME</source-password> <relay-password>CHANGEME</relay-password> <admin-user>admin</admin-user> <admin-password>CHANGEME</admin-password> </authentication> <hostname>icecast.ham42.net</hostname> <listen-socket> <port>5299</port> </listen-socket> <listen-socket> <port>8080</port> </listen-socket> <http-headers> <header name="Access-Control-Allow-Origin" value="*" /> </http-headers> <fileserve>1</fileserve> <paths> <basedir>/usr/share/icecast2</basedir> <logdir>/var/log/icecast2</logdir> <webroot>/usr/share/icecast2/web</webroot> <adminroot>/usr/share/icecast2/admin</adminroot> <alias source="/" destination="/status.xsl" /> </paths> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <loglevel>3</loglevel> <logsize>10000</logsize> </logging> <security> <chroot>0</chroot> </security> </icecast>
SVXReflector
- svxreflector.conf
################################################################### # # Configuration file for the SvxReflector SvxLink conference node # ################################################################### [GLOBAL] #CFG_DIR=svxreflector.d TIMESTAMP_FORMAT="%Y-%m-%dT%H:%M:%S%z" LISTEN_PORT=5300 #SQL_TIMEOUT=600 #SQL_TIMEOUT_BLOCKTIME=60 CODECS=OPUS [USERS] #F4ZXX-1=MyPass [PASSWORDS] DefaultPassword="Change this key now."
SVXLink (listener)
- svxlink.conf
############################################################################### # # # Configuration file for the SvxLink server # # # ############################################################################### [GLOBAL] LOGICS=SimplexLogic,ReflectorLogic CFG_DIR=svxlink.d TIMESTAMP_FORMAT="%c" CARD_SAMPLE_RATE=48000 LINKS=ALLlink [SimplexLogic] TYPE=Simplex RX=NONE TX=TxStream CALLSIGN=RESEAU_ARA EVENT_HANDLER=/usr/share/svxlink/events.tcl DEFAULT_LANG=en_US [ReflectorLogic] TYPE=Reflector HOST=127.0.0.1 PORT=5310 CALLSIGN="RESEAU_xxx" AUTH_KEY="Default community password" AUDIO_CODEC=OPUS #JITTER_BUFFER_DELAY=0 #DEFAULT_TG=999 #MONITOR_TGS=999 #TG_SELECT_TIMEOUT=30 #ANNOUNCE_REMOTE_MIN_INTERVAL=300 EVENT_HANDLER=/usr/share/svxlink/events.tcl [ALLlink] CONNECT_LOGICS=SimplexLogic:94:SK3AB,ReflectorLogic DEFAULT_ACTIVE=1 TIMEOUT=0 [TxStream] TYPE=Local AUDIO_DEV=alsa:hw:1,0 AUDIO_CHANNEL=0 PTT_TYPE=NONE TIMEOUT=7200 TX_DELAY=0 PREEMPHASIS=0
DarkIce
- darkice.conf
[general] duration = 0 # duration of encoding, in seconds. 0 means forever bufferSecs = 1 # size of internal slip buffer, in seconds reconnect = yes # reconnect to the server(s) if disconnected realtime = no rtpio = 3 [input] device = hw:10,1 sampleRate = 48000 # sample rate in Hz. try 11025, 22050 or 44100 bitsPerSample = 16 # bits per sample. try 16 channel = 2 # channels. 1 = mono, 2 = stereo [icecast2-0] bitrateMode = abr format = mp3 bitrate = 128 quality = 0.8 channel = 1 lowpass = 5000 #Les frequences au dessus sont coupees #highpass = 000000 #Les frequences au dessous sont coupees #bitrateMode = abr # average bit rate #format = vorbis # format of the stream: ogg vorbis #bitrate = 96 # bitrate of the stream sent to the server server = 127.0.0.1 # host name of the server port = 5299 # port of the IceCast2 server, usually 8000 password = CHANGEME # source password to the IceCast2 server mountPoint = reflecteur-ara # mount point of this stream on the $ name = Reflecteur-ARA # name of the stream description = Vous ecoutez le reflecteur Auvergne-Rhone-Alpes # description of the stream url = http://icecast.ham42.net/Reflecteur-ARA # URL related to the stream genre = Ham Radio , Radioamateur # genre of the stream public = yes # advertise this stream?
MQTT
Web portal
docs/svx.1669384980.txt.gz · Last modified: 2022/11/25 15:03 by root