ОсновноеRadiotalkПользовательское
Общие вопросы по интернет радио вещанию
6   •   Посмотреть все темы

Проблема с настройкой liquidsoap + icecast2

 

2
artem78 @artem78
У меня сразу две проблемы.


Во первых, не создаётся "mount point". Захожу в web-панель icecast, на странице "Mountpoint List" ничего нет. По адресу 123.123.123.123:8000/radio пишет "404 - The file you requested could not be found ".


Во вторых, запускаю liquidsoap скрипт таким образом (так как я работаю от рута):
sudo -u liquidsoap liquidsoap myinetradio.liq
Он запускается, но каждые несколько секунд пишет ошибку:
strange error flushing buffer ...


Привожу конфиги.

/etc/icecast2/icecast.xml (от дефолтного мало что изменил):
<icecast>
<location>Earth</location>
<admin>icemaster@localhost</admin>

<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>

<authentication>
<source-password>123</source-password>
<relay-password>123</relay-password>
<admin-user>admin</admin-user>
<admin-password>123</admin-password>
</authentication>

<hostname>123.123.123.123</hostname>

<listen-socket>
<port>8000</port>
</listen-socket>

<mount>
<mount-name>/radio</mount-name>
<charset>UTF8</charset>
</mount>

<fileserve>1</fileserve>

<paths>
<basedir>/usr/share/icecast2</basedir>

<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>

<alias source="/" destination="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>

<loglevel>3</loglevel>
<logsize>10000</logsize>
</logging>

<security>
<chroot>0</chroot>

<changeowner>
<user>icecast2</user>
<group>icecast</group>
</changeowner>

</security>
</icecast>


/etc/liquidsoap/myinetradio.liq
set("log.stdout", false)

set("tag.encodings",["UTF-8"])
set("server.telnet", true)


# Music
myplaylist = mksafe(playlist("/root/radio/playlist.m3u"))

radio = myplaylist


output.icecast(
%mp3(bitrate=128, samplerate = 44100, stereo = true),
host = "127.0.0.1",
port = 8000,
name="Test radio",
genre="various",
url="",
description="",
user = "source",
password = "123",
mount = "/radio",
radio
)



Логи: **********

Icecast 2.4.0
Liquidsoap 1.1.1
Debian GNU/Linux 8.2 (jessie)

Отредактировано artem78 - 02.06.2016
131
Enzo @enzO
output nepravilnij mne kazitsa ! Licna u mena net takova ( user = "source", )

paprobuj tak bez user = "source",


#stream output to icecast2 server.
output.icecast(%mp3(stereo=true, samplerate=44100, bitrate=128, id3v2=true),
icy_metadata="true",
mount = "/radio",
host = "127.0.0.1", port = 8000, password = "123",
genre = "city, urban, dance, top40, pop, trap, dancehall, raggae, grime, garage, metal, club, dnb, various",
description = "my internet radio",
name = "my radio mp3 128kbp\s 44khz",
url = "http://mysite.com", radio)

Отредактировано enzO - 03.06.2016