36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
|
|
%include "config.liq"
|
|
%include "protocols.liq"
|
|
%include "rtmp.liq"
|
|
%include "utils.liq"
|
|
|
|
set("server.telnet", true)
|
|
set("server.telnet.bind_addr", confstr("control.host", "0.0.0.0"))
|
|
set("server.telnet.port", confint("control.port", 7004))
|
|
|
|
set("frame.video.width",confint("liquidsoap.output.width", 1280))
|
|
set("frame.video.height",confint("liquidsoap.output.height", 720))
|
|
set("frame.video.samplerate",confint("liquidsoap.output.samplerate", 25))
|
|
|
|
video_no_queue = single(confstr("liquidsoap.fallback",""), conservative=true)
|
|
video_base = video.add_image(
|
|
width=confint("calendar.width", 300),height=confint("calendar.height", 400),
|
|
x=900,y=80,
|
|
file="schedule.png",
|
|
video_no_queue)
|
|
add_skip_command(command="schedule.reload", video_base)
|
|
|
|
queue1 = request.equeue(id="queue", conservative=true, length=60., timeout=1000.)
|
|
add_skip_command(command="queue.skip", queue1)
|
|
|
|
source = fallback([queue1, video_base],track_sensitive=false)
|
|
add_skip_command(command="skip", source)
|
|
|
|
source = on_end(delay=0., file_end_cleanup, source)
|
|
|
|
output.rtmp.live(
|
|
key=confstr("rtmp.key",""),
|
|
url=confstr("rtmp.url","rtmp://localhost/live"),
|
|
video_bitrate=confint("liquidsoap.output.bitrate", 2000),
|
|
source)
|