streamscapes/stream.liq

52 lines
1.4 KiB
Plaintext
Executable File

#!/usr/bin/liquidsoap
# get the macaddress of the device and assign it to stream name
%include "password.liq"
# get the macaddress of the device and assign it to stream name
system("sh gethostname.sh")
%include "hostname.liq"
# get the macaddress of the device and assign it to stream name
system("sh getmac.sh")
%include "macaddress.liq"
# get the name of the attached audio interface
system("sh getiface.sh")
%include "iface.liq"
set("log.file.path","#{HOSTNAME}.log")
set("log.stdout", true)
set("frame.audio.samplerate",48000)
#full = mksafe(buffer(input.pulseaudio(), buffer=5., max=10.))
full = mksafe(buffer(input.pulseaudio(device="#{IFACE}")) )
#full = mksafe(buffer(input.alsa(),buffer=5., max=10.))
#sine = sine(440., amplitude=0.6)
#loop = single('/usr/share/sounds/alsa/Rear_Center.wav')
#loop = mux_mono(mono=loop,loop)
#include script that archives local sound source to stereo wav
#%include "archive.liq"
#output.pulseaudio(device="alsa_output.platform-bcm2835_AUD0.0.analog-stereo", loop)
# stream using opus codec
output.icecast(%opus(
channels=2,vbr="constrained",
application="audio",
complexity=5,
#max_bandwidth="super_wide_band",
samplerate=48000,
bitrate=64),
host="stream.kiben.net",
name="drift #D3g67",
url="http://rob.kiben.net",
description="live stream from node: #{MACADD}",
port=8800, password="#{PASSWORD}",
mount="#{HOSTNAME}.opus",
full)