Добрый день!
Конфиг liquidsoap минимален:
set("log.file.path","liquidsoap.log")
set("log.level", 4)
set("harbor.bind_addr","82.146.33.16")
live = input.harbor("mount", port=8000)
single = single("fa0b6aa85ffd63.mp3")
radio = fallback(track_sensitive=false, [live, single])
output.icecast(%mp3,
host = "82.146.33.16",
port = 8080,
password = "XXXX",
mount = "AutoDJ",
mksafe(radio))
На моунте AutoDJ играет сингл fa0b6aa85ffd63.mp3
Дальше начинается чертовщина: пытаюсь подконнектится вебкастером (https://github.com/webcast/webcaster) к моунту mount.
Лог, показывающий, что моунт вроде как создан:
2014/08/08 14:43:24 [threads:3] Created thread "generic queue #1".
2014/08/08 14:43:24 [threads:3] Created thread "generic queue #2".
2014/08/08 14:43:24 [clock:4] Currently 1 clocks allocated.
2014/08/08 14:43:24 [clock.wallclock_main:4] Starting 1 sources...
2014/08/08 14:43:24 [source:4] Source output.icecast_5881 gets up.
2014/08/08 14:43:24 [source:4] Source mksafe gets up.
2014/08/08 14:43:24 [source:4] Source fallback_5877 gets up.
2014/08/08 14:43:24 [source:4] Source harbor_5873 gets up.
2014/08/08 14:43:24 [harbor_5873:4] Content kind is {audio=2;video=0;midi=0}.
2014/08/08 14:43:24 [harbor:4] Opening port 8000 with icy = false
2014/08/08 14:43:24 [harbor:3] Adding mountpoint '/mount' on port 8000
2014/08/08 14:43:24 [harbor_5873:4] Activations changed: static=[], dynamic=[fallback_5877:mksafe:AutoDJ:AutoDJ].
2014/08/08 14:43:24 [source:4] Source single_5875 gets up.
2014/08/08 14:43:24 [single_5875:4] Content kind is {audio=2;video=0;midi=0}.
2014/08/08 14:43:24 [single_5875:4] Activations changed: static=[], dynamic=[fallback_5877:mksafe:AutoDJ:AutoDJ].
2014/08/08 14:43:24 [fallback_5877:4] Activations changed: static=[], dynamic=[mksafe:AutoDJ:AutoDJ].
2014/08/08 14:43:24 [source:4] Source safe_blank gets up.
2014/08/08 14:43:24 [safe_blank:4] Content kind is {audio=2;video=0;midi=0}.
2014/08/08 14:43:24 [safe_blank:4] Activations changed: static=[], dynamic=[mksafe:AutoDJ:AutoDJ].
2014/08/08 14:43:24 [mksafe:4] Activations changed: static=[AutoDJ:AutoDJ], dynamic=[].
2014/08/08 14:43:24 [single_5875:3] Prepared "fa0b6aa85ffd63.mp3" (RID 0).
2014/08/08 14:43:24 [AutoDJ:4] Activations changed: static=[AutoDJ], dynamic=[].
2014/08/08 14:43:24 [AutoDJ:4] Enabling caching mode: active source.
2014/08/08 14:43:24 [AutoDJ:3] Connecting mount AutoDJ for source@82.146.33.16...
2014/08/08 14:43:24 [AutoDJ:3] Connection setup was successful.
2014/08/08 14:43:24 [threads:3] Created thread "wallclock_main" (1 total).
2014/08/08 14:43:24 [clock:4] Main phase starts.
2014/08/08 14:43:24 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
2014/08/08 14:43:24 [mksafe:3] Switch to fallback_5877.
2014/08/08 14:43:24 [fallback_5877:4] Activations changed: static=[mksafe:AutoDJ:AutoDJ], dynamic=[mksafe:AutoDJ:AutoDJ].
2014/08/08 14:43:24 [fallback_5877:3] Switch to single_5875.
2014/08/08 14:43:24 [single_5875:4] Activations changed: static=[fallback_5877:mksafe:AutoDJ:AutoDJ], dynamic=[fallback_5877:mksafe:AutoDJ:AutoDJ].
Но жидкое мыло посылает меня далеко и надолго:
2014/08/08 14:45:38 [harbor:4] New client on port 8000: 87.228.30.246
2014/08/08 14:45:38 [harbor:4] Header: Upgrade, value: websocket.
2014/08/08 14:45:38 [harbor:4] Header: Connection, value: Upgrade.
2014/08/08 14:45:38 [harbor:4] Header: Host, value: gcmedia.ru:8000.
2014/08/08 14:45:38 [harbor:4] Header: Sec-WebSocket-Protocol, value: webcast.
2014/08/08 14:45:38 [harbor:4] Header: Pragma, value: no-cache.
2014/08/08 14:45:38 [harbor:4] Header: Cache-Control, value: no-cache.
2014/08/08 14:45:38 [harbor:4] Header: Sec-WebSocket-Key, value: qK2nym/slHUZj1EOakP79A==.
2014/08/08 14:45:38 [harbor:4] Header: Sec-WebSocket-Version, value: 13.
2014/08/08 14:45:38 [harbor:4] Header: Sec-WebSocket-Extensions, value: permessage-deflate; client_max_window_bits, x-webkit-deflate-frame.
2014/08/08 14:45:38 [harbor:4] Header: User-Agent, value: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36.
2014/08/08 14:45:38 [harbor:4] HTTP GET request on /mount.
2014/08/08 14:45:38 [harbor:4] Returned 404 for '/mount'.
Если есть идеи, буду очень рад выслушать. Спасибо.
Отредактировано Kunik (08-08-2014 16:11:43)