-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlive.liq
78 lines (70 loc) · 1.74 KB
/
live.liq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/local/bin/liquidsoap -v
%include "conf/ice.conf"
#
# Streams for the Live output
#
set("init.daemon.pidfile.path", "/usr/local/var/run/liquidsoap/live.pid")
set("log.level",3)
set("log.stdout", true)
set("log.file", true)
set('log.file.path', '/usr/local/var/log/liquidsoap/live.log')
set("frame.audio.channels",2)
set("frame.audio.samplerate",48000)
# Sources
live = input.jack(id="liveOutput")
live = amplify({ 2.0 }, live)
# High Quality Live Stream
output.icecast(
%mp3(bitrate=192),
host=icehost,
port=iceport,
password=icepass,
mount="live-high",
start=true,
url=website,
description=description,
name="#{name} - High Quality",
genre="Student Radio",
live)
# High Quality Live Stream (ogg)
output.icecast(
%vorbis.cbr(bitrate=128),
host=icehost,
port=iceport,
password=icepass,
mount="live-high-ogg",
icy_metadata="true",
start=true,
url=website,
description=description,
name="#{name} - OGG Stream",
genre="Student Radio",
live)
# Mobile Live Stream
output.icecast(
%mp3(bitrate=48, samplerate=44100, stereo=false),
host=icehost,
port=iceport,
password=icepass,
mount="live-mobile",
start=true,
url=website,
description=description,
name="#{name} - Mobile",
genre="Student Radio",
mean(live)) #Mean the two channels together to make mono
# Registration on flows
# Tell the world how awesome we are
ignore(
register_flow(
radio=name,
website=website,
description=description,
genre="Student Radio",
streams=[
("mp3/192k", "http://#{icehost}:#{iceport}/live-high"),
("ogg/192k", "http://#{icehost}:#{iceport}/live-high-ogg")
],
live
)
)