Created
March 25, 2021 14:51
-
-
Save rmcauley/68a064644b802eb5c9bd2b68bd96f339 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set("log.file",true) | |
set("log.file.path","/home/rmcauley/liquidsoap-daemon/log/" ^ r4_dest_mount ^ "-run.log") | |
set("init.daemon",true) | |
set("init.daemon.pidfile",true) | |
set("init.daemon.pidfile.path","/home/rmcauley/liquidsoap-daemon/pid/" ^ r4_dest_mount ^ "-run.pid") | |
%include "/home/rmcauley/liquidsoap-daemon/script/_crossfade.liq.util" | |
def r4_backend() = | |
result = get_process_output("cd /opt/rainwave && pipenv run ./rw_get_next.py --sid "^r4_sid) | |
request.create(result) | |
end | |
r4_auto = request.dynamic(r4_backend, length=6.0, conservative=false) | |
r4_auto = amplify(0.7, override="replay_gain", audio_to_stereo(r4_auto)) | |
r4_auto = crossfade(r4_auto) | |
r4_offline = single("/home/icecast/~misc/offline.mp3") | |
r4_auto = fallback([r4_auto, r4_offline], track_sensitive=false) | |
output.icecast(%opus(bitrate=112, signal="music"), host="199.27.180.218", port=8000, password="", mount=r4_dest_mount^".ogg", genre="Video Game Music", url=r4_dest_url, description=r4_dest_desc, drop_metadata(merge_tracks(r4_auto))) | |
output.icecast(%mp3.vbr(quality=7), host="199.27.180.218", port=8000, password="", mount=r4_dest_mount^".mp3", genre="Video Game Music", url=r4_dest_url, description=r4_dest_desc, r4_auto) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment