sudo -u liquidsoap liquidsoap myinetradio.liq
strange error flushing buffer ...
<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>
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 )
#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)