diff --git a/configuration/sample.engine.ini b/configuration/sample.engine.ini new file mode 100644 index 0000000000000000000000000000000000000000..9b468eeb83af979bf31391514c4abc532e29c1c1 --- /dev/null +++ b/configuration/sample.engine.ini @@ -0,0 +1,280 @@ +################### +# engine Settings # +################### + +[database] +db_user="aura_engine" +db_name="aura_engine" +db_pass="%CHANGE-ME%" +db_host="localhost" + +[monitoring] +# how often should i check the diskspace. defaults to 600s = 10m +diskspace_check_interval=20 +# under which value should i start sending admin mails. possible values k, M, G, T or no metric prefix. defaults to 2G +diskspace_warning_value=1G +# under which value should i stop recording. defaults to 200M +diskspace_critical_value=100M + +[mail] +mail_server="" +mail_server_port="" +mail_user="" +mail_pass="" +# if you want to send multiple adminmails, make them space separated +admin_mail="david@subsquare.at gogo@servus.at" +# with from mailadress should be used +from_mail="monitor@aura.py" +# The beginning of the subject. With that you can easily apply filter rules with any mail client +mailsubject_prefix="[AURA]" + +[dataurls] +# The URL to get the Calendar via PV/Steering +calendarurl="http://localhost:8000/api/v1/playout" +# The URL to get show details via PV/Steering +api_show_url="http://localhost:8000/api/v1/shows/${ID}/" +# The URL to get playlist details via Tank +importerurl="http://localhost:8040/api/v1/shows/${SLUG}/playlists" + +# how often should the calendar be fetched in seconds (This determines the time of the last change before a specific show) +fetching_frequency=3600 + +# sets the time how long we have to fade in and out, when we select another mixer input +# values are in seconds +# this is solved on engine level because it is kind of tough with liquidsoap +[fading] +fade_in_time="0.5" +fade_out_time="2.5" + +####################### +# LiquidSoap Settings # +####################### + +# all these settings from here to the bottom require a restart of the liquidsoap server + +[user] +# the user and group under which this software will run +daemongroup="david" +daemonuser="david" + +[socket] +socketdir="/home/david/Code/aura/engine" + +[logging] +logdir="/var/log/aura" +# possible values: debug, info, warning, error, critical +loglevel="info" + +# track_sensitive => fallback_folder track sensitivity +# max_blank => maximum time of blank from source (float) +# min_noise => minimum duration of noise on source to switch back over (float) +# threshold => power in dB under which the stream is considered silent (float) +fallback_max_blank="10." +fallback_min_noise="1." +fallback_threshold="-60." + +[soundcard] +# choose your weapon +# if you are starving for pain in the ass choose alsa +# if you don't care about latency choose pulseaudio +# if you want low latency and a bit of experimenting, choose jack +soundsystem="alsa" + +# you can define up to 5 inputs and outputs +# it is tested with +# - ALSA with ONE input and ONE output +# - pulseaudio with ONE input and ONE output (should work with multiple ins/outs) +# - jack with multiple inputs and outputs +# +# boundaries: +# - if you use jack, you have to kill liquidsoap. somehow liquidsoap cannot disconnect from jackd when shutting down +# +# with alsa you have to write the devicenames like hw:0 +# with pulse and jack => an non empty value means it is used +# devices with empty string are ignored and not used +input_device_0="hw:0" +input_device_1="" +input_device_2="" +input_device_3="" +input_device_4="" +# same same, but different +output_device_0="hw:0" +output_device_1="" +output_device_2="" +output_device_3="" +output_device_4="" + +# if you are using alsa, you most probably have to tweak these values +# out of the box you will hear alot of cracklings and artifacts + +# alsa_buffer => int +alsa_buffer="" +# alsa_buffer_length => int +alsa_buffer_length="" +# alsa_periods => int +alsa_periods="" +# frame_duration => double +frame_duration="" +# frame_size => int +frame_size="" + +##################### +# Recorder Settings # +##################### + +# you can define up to 5 recorder types. +# aac, flac, mp3, ogg, opus and wav is supported + +[recording] +# flac example +# enable this recorder. everything else than 'y' is considered as disabled +rec_0="n" +# first set a folder +rec_0_folder="/var/audio/rec/flac" +# after how many minutes the recording will be cut +rec_0_duration="30" +# file (or encoding-) type +rec_0_encoding="flac" +# bitrate (with encoding types without bitrate like flac or wav it is substituted. 32 => very poor quality. 320 => very high quality) +rec_0_bitrate="128" +# channels: everything else than 2 is considered as mono +rec_0_channels="2" + +# aac example +rec_1="n" +rec_1_folder="/var/audio/rec/aac" +rec_1_duration="30" +rec_1_encoding="aac" +rec_1_bitrate="64" +rec_1_channels="2" + +# mp3 example +rec_2="n" +rec_2_folder="/var/audio/rec/mp3" +rec_2_duration="30" +rec_2_encoding="mp3" +rec_2_bitrate="32" +rec_2_channels="2" + +# ogg example +rec_3="n" +rec_3_folder="/var/audio/rec/ogg" +rec_3_duration="30" +rec_3_encoding="ogg" +rec_3_bitrate="320" +rec_3_channels="2" + +# opus example +rec_4="n" +rec_4_folder="/var/audio/rec/opus" +rec_4_duration="30" +rec_4_encoding="opus" +rec_4_bitrate="32" +rec_4_channels="2" + +# wav example +#rec_4="n" +#rec_4_folder="/var/audio/rec/wav" +#rec_4_duration="30" +#rec_4_filetype="wav" +#rec_4_bitrate="320" +#rec_4_channels="2" + +################### +# Stream Settings # +################### + +# You can define up to outgoing 5 streams +# aac, flac, mp3, ogg and opus is supported + +[stream] +# defines enabled or not +stream_0="y" +# possible values: aac, flac, mp3, ogg, opus (depending on what liquidsoap-plugins you installed) +stream_0_encoding="aac" +# bitrate (with encoding types without bitrate like flac or ogg it is substituted. 32 => very poor quality. 320 => very high quality) +stream_0_bitrate="128" +# how many channels? everything else than 2 is considered as mono +stream_0_channels="2" +# to where we are streaming..? +stream_0_host="localhost" +# and which port? +stream_0_port="8888" +# the name of the mountpoint +stream_0_mountpoint="aura-test-0.aac" +# username +stream_0_user="source" +# and the password +stream_0_password="hack-me" +# stream url +stream_0_url="http://www.fro.at" +# the name of the stream +stream_0_name="AURA Test Stream 0" +# the genre of the stream +stream_0_genre="mixed" +# description of the stream +stream_0_description="Test Stream 0" + +stream_1="y" +stream_1_encoding="flac" +stream_1_bitrate="128" +stream_1_channels="2" + +stream_1_host="localhost" +stream_1_port="8888" +stream_1_mountpoint="aura-test-1.flac" +stream_1_user="source" +stream_1_password="hack-me" + +stream_1_url="http://www.fro.at" +stream_1_name="AURA Test Stream 1" +stream_1_genre="mixed" +stream_1_description="Test Stream 1" + +stream_2="y" +stream_2_encoding="mp3" +stream_2_bitrate="64" +stream_2_channels="2" + +stream_2_host="localhost" +stream_2_port="8888" +stream_2_mountpoint="aura-test-2.mp3" +stream_2_user="source" +stream_2_password="hack-me" + +stream_2_url="http://www.fro.at" +stream_2_name="AURA Test Stream 2" +stream_2_genre="mixed" +stream_2_description="Test Stream 2" + +stream_3="y" +stream_3_encoding="ogg" +stream_3_bitrate="64" +stream_3_channels="2" + +stream_3_host="localhost" +stream_3_port="8888" +stream_3_mountpoint="aura-test-3.ogg" +stream_3_user="source" +stream_3_password="hack-me" + +stream_3_url="http://www.fro.at" +stream_3_name="AURA Test Stream 3" +stream_3_genre="mixed" +stream_3_description="Test Stream 3" + +stream_4="y" +stream_4_encoding="opus" +stream_4_bitrate="64" +stream_4_channels="2" + +stream_4_host="localhost" +stream_4_port="8888" +stream_4_mountpoint="aura-test-4.opus" +stream_4_user="source" +stream_4_password="hack-me" + +stream_4_url="http://www.fro.at" +stream_4_name="AURA Test Stream 4" +stream_4_genre="mixed" +stream_4_description="Test Stream 4"