This repository has been archived by the owner on Dec 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserveur_general.liq
49 lines (39 loc) · 1.98 KB
/
serveur_general.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
# Copyright 2014 Planète Sciences
# This file is part of webtv-plasci
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
%include "passwords.liq"
# native input format 720x576, output must a multiple of 16 so you must
# divide by 9.
# quality=4
# set("frame.video.width",720/9*quality)
# set("frame.video.height",576/9*quality)
set("frame.video.width",416)
set("frame.video.height",320)
set("server.telnet",true)
set("server.telnet.port",4540)
minimum=mux_audio(audio=blank(),single("resources/BoucleLogo.ogv"))
direct_brut=input.harbor("lelive.ogv",port=4545,password=motdepasse_live)
direct=switch(track_sensitive=false,[((fun () -> source.is_ready(direct_brut)),
video.add_image(width=120,height=84,file="resources/LogoIncrustation.png",direct_brut)
)])
melange=fallback(track_sensitive=false,[direct,minimum])
infini=add([blank(),melange])
output.icecast(%ogg(%theora,%vorbis),description="La WebTV Planète Sciences",
url="http://webtv.planete-sciences.org",
host="planete-sciences.org",port=5080,password=motdepasse_source,
mount="webtv.ogv",infini)
clock.assign_new(id="stream_webm",[
output.icecast(id="gstreamer_webm",%gstreamer(audio="vorbisenc", video="vp8enc", muxer="webmmux"),
description="La WebTV Planète Sciences", url="http://webtv.planete-sciences.org",
host="planete-sciences.org", port=5080, password=motdepasse_source, mount="webtv.webm",
format="video/webm", icy_metadata="false", video.scale(scale=.4,infini))
])