mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 22:32:10 +00:00
0375b0a892
fix fix Fix ? fx Liquidsoap init test test2 test Tst tst fix PLS tst tst test test fix tst aa aa# Please enter the commit message for your changes. Lines starting Ping fix? fix fix Working version Upgrade Fix fix metadata test fix fix# Please enter the commit message for your changes. Lines starting Fix aa fix fix test FIx test test test fix fix fix? aa fix test Final v.00 HLS Serve
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
let json.parse credentials = file.contents("/home/pi/Conjurer/icecast_credentials.json")
|
|
enable_replaygain_metadata()
|
|
s = replaygain(playlist(reload_mode="watch", "/home/pi/Conjurer/all_playlist.playlist"))
|
|
|
|
interactive.harbor(port = 9999)
|
|
f = interactive.float("f", description="Frequency", min=0., max=1000.,unit="Hz", 200.)
|
|
g = interactive.float("g", description="Gain", min=0., max=20.,unit="dB", 8.)
|
|
b = bass_boost(frequency=f, gain=g, s)
|
|
s = add([s, b])
|
|
a = interactive.float("main_volume", min=0., max=20., 1.)
|
|
s = compress.multiband.interactive(bands=3, s)
|
|
|
|
s = nrj(normalize (s))
|
|
s = crossfade(fade_out=3., fade_in=3., duration=5., s)
|
|
s = amplify(a,s)
|
|
|
|
s = blank.skip(max_blank=2., s)
|
|
|
|
emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland [GvrvQTUbUcA].mp3")
|
|
radio = fallback([s,emergency])
|
|
handle_metadata = fun (m) -> begin
|
|
print(m["title"])
|
|
print(m["artist"])
|
|
print(m["filename"])
|
|
end
|
|
radio.on_metadata(handle_metadata)
|
|
interactive.persistent("script.params")
|
|
|
|
output.file.hls("/tmp/hls",[("mp3-low", %mp3(bitrate=96)), ("mp3-hi", %mp3(bitrate=160))],radio)
|
|
output.icecast(%mp3, host="retropie", port=8000,password=credentials.password, icy_metadata="true", mount="mp3-stream", radio)
|