%include "config.liq" %include "protocols.liq" %include "rtmp.liq" %include "utils.liq" %include "metadata.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)) # Schedule image video_no_queue = mksafe(playlist(confstr("liquidsoap.fallback",""),conservative=true,reload_mode="watch")) image_schedule = playlist("schedule.pls",reload_mode="watch") image_schedule = mux_audio(audio=blank(),image_schedule) video_base = add([video_no_queue,image_schedule]) # Queue queue1 = request.equeue(id="queue", conservative=true, length=60., timeout=1000.) add_skip_command(command="queue.skip", queue1) # Fallback to queue source = fallback([queue1, video_base],track_sensitive=false) add_skip_command(command="skip", source) # Add file cleanup source = on_end(delay=0., file_end_cleanup, source) source = on_metadata(update_nowplaying, source) # Output to RTMP output.rtmp.live( key=confstr("rtmp.key",""), url=confstr("rtmp.url","rtmp://localhost/live"), video_bitrate=confint("liquidsoap.output.bitrate", 2000), source)