使用Liquidsoap进行冰铸不起作用 [英] Icecast with Liquidsoap not working

查看:124
本文介绍了使用Liquidsoap进行冰铸不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部;
Ubuntu 18.04 -Icecast/LiquidSoap/opam/(liquidsoap-daemon)
已安装:taglib疯狂的me子Vorbis cry ssl采样率魔术作品
插件:liquidsoap-plugin-all

All;
Ubuntu 18.04 - Icecast / LiquidSoap / opam / (liquidsoap-daemon)
Installed: taglib mad lame Vorbis cry ssl samplerate magic opus
Plugins: liquidsoap-plugin-all

系统规格:

-System - VirtualBox
-CPU = Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
-Memory = 1969MiB (2GB assigned to VM Client)

我已经把这个弄糟了一段时间,但无济于事.
我现在关闭了该线程,该线程几乎包含了您需要查看的有关我的设置的所有内容. icecast请求解析失败

I have been messing with this for a while now and to no avail.
I have this thread that is now closed, that has near about everything that you would need to look at about my setup. icecast request parsing failed

我正在测试的播放列表:

The playlist I'm testing:

 #!/usr/bin/liquidsoap
 # Log dir
set("log.file.path","/var/log/liquidsoap/radioliq.log")

 # Music
myplaylist = playlist("/home/UserName/music-store/")
 # Some jingles
jingles = playlist("/home/UserName/music-store/jingles/jingles.m3u")
 # If something goes wrong, we'll play this
security = single("/home/UserName/music-store/Sec.mp3")

 # Start building the feed with music
radio = myplaylist
 # Now add some jingles
radio = random(weights = [1, 4],[jingles, radio])
 # And finally the security
 radio = fallback(track_sensitive = false, [radio, security])

  # Stream it out
output.icecast(%vorbis,
  radio, host = "192.168.2.20", port = 8000,
  password = "********", mount = "test.ogg")

当我运行这个

sudo /etc/init.d/liquidsoap restart

我明白了

Stopping liquidsoap channels: no script found in /etc/liquidsoap
Starting liquidsoap channels: radio1.liq OK

它显示了启动radio1.liq,但是它正在停止,因为它在该目录中找不到任何内容.那就是在radio1.liq文件上拾取的地方.

It shows starting radio1.liq, however, it is STOPPING, because it cannot find anything in that directory, however. That is where it is picking up on the radio1.liq file.

我跑步时

sudo systemctl status liquidsoap

我的输出是这样:

● liquidsoap.service - LSB: Starts the liquidsoap daemon
   Loaded: loaded (/etc/init.d/liquidsoap; generated)
   Active: active (exited) since Tue 2018-06-12 17:47:52 EDT; 3h 0min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1312 ExecStart=/etc/init.d/liquidsoap start (code=exited, status=0/SUCCESS)

Jun 12 17:47:47 liquid-ice systemd[1]: Starting LSB: Starts the liquidsoap daemon...
Jun 12 17:47:52 liquid-ice liquidsoap[1312]: Starting liquidsoap channels: radio1.liq OK
Jun 12 17:47:52 liquid-ice systemd[1]: Started LSB: Starts the liquidsoap daemon.

您可以说,活动是(退出),而其他时候则是(运行),就像Icecast一样.但是,通常我必须在系统上进行重新启动,以使其显示(正在运行)
我刚刚进行了重新启动,它仍然显示( exited ),这是它第一次没有更改为( running ).通常,这会给我一个错误,我必须修复某些东西,但现在不这样做.

As you can tell, the Active is (exited) when other times, it is (running) like Icecast is. However, I usually have to do a reboot on the system, in order to get it to show (running)
I just did a reboot, and it is still showing (exited), this is the first time that it has not changed to (running). And usually it will give me an error that I have to fix something, but it is not doing it now.

● icecast2.service - LSB: Icecast2 streaming media server
   Loaded: loaded (/etc/init.d/icecast2; generated)
   Active: active (running) since Tue 2018-06-12 17:47:50 EDT; 3h 1min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1338 ExecStart=/etc/init.d/icecast2 start (code=exited, status=0/SUCCESS)
    Tasks: 4 (limit: 2289)
   CGroup: /system.slice/icecast2.service
           └─1403 /usr/bin/icecast2 -b -c /etc/icecast2/icecast.xml

Jun 12 17:47:48 liquid-ice systemd[1]: Starting LSB: Icecast2 streaming media server...
Jun 12 17:47:48 liquid-ice icecast2[1338]:  * Starting streaming media server icecast2
Jun 12 17:47:50 liquid-ice icecast2[1338]:    ...done.
Jun 12 17:47:50 liquid-ice systemd[1]: Started LSB: Icecast2 streaming media server.

打开Web界面时,我只会看到以下标签(页面)

when I open the web interface, I only get the following tabs (pages)

[Admin] | [Version]

所有其他页面均为空白:

All the other pages are all blank:

[Server Status] => Nothing, completely blank.
[Mountpoint List] => Active Mountpoints (This is all it shows on the page)

我还更改了/etc/init.d/liquidsoap中的用户名

I also changed the username in the /etc/init.d/liquidsoap

user=username
group=username

用户名是我的登录身份.然后将权限授予我的用户在这些位置上的权限.

Username Is what I am logged in as. And then gave permission to my user over the locations.

/etc/liquidsoap/radio1.liq
/run/liquidsoap/

使用以下脚本:

sudo chmod o+w /run/liquidsoap/
sudo chmod o+w /etc/liquidsoap/radio1.liq

这是icecast error.log中的最新错误日志

Here is the latest error log from the icecast error.log

[2018-08-08  02:22:18] INFO sighandler/_sig_die Caught signal 15, shutting down...
[2018-08-08  02:22:18] INFO main/main Shutting down
[2018-08-08  02:22:18] INFO fserve/fserve_shutdown file serving stopped
[2018-08-08  02:22:18] INFO slave/_slave_thread shutting down current relays
[2018-08-08  02:22:18] INFO slave/_slave_thread Slave thread shutdown complete
[2018-08-08  02:22:18] INFO auth/auth_shutdown Auth shutdown
[2018-08-08  02:22:18] INFO yp/yp_shutdown YP thread down
[2018-08-08  02:22:19] INFO stats/stats_shutdown stats thread finished
[2018-08-08  02:22:19] INFO main/main Icecast 2.4.3 server started
[2018-08-08  02:22:19] INFO connection/get_ssl_certificate No SSL capability
[2018-08-08  02:22:19] INFO stats/_stats_thread stats thread started
[2018-08-08  02:22:19] INFO yp/yp_update_thread YP update thread started

来自radio.log文件的

Exerts from the radio.log file

2018/08/09 04:35:03 [dynamic.loader:3] Could not find dynamic module for fdkaac encoder.
2018/08/09 04:35:03 [dynamic.loader:3] Could not find dynamic module for aacplus encoder.
..........
2018/08/09 04:35:03 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2018/08/09 04:35:03 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
2018/08/09 04:35:03 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
2018/08/09 04:35:03 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
2018/08/09 04:35:03 [decoder:3] Method "MAD" accepted "/home/darkice/music/Security/sec.mp3".
2018/08/09 04:35:03 [single:3] "~/music/Security/sec.mp3" is static, resolving once for all...
2018/08/09 04:35:03 [threads:3] Created thread "generic queue #1".
2018/08/09 04:35:03 [threads:3] Created thread "non-blocking queue #1".
2018/08/09 04:35:03 [Jingle(dot)mp3:3] Loading playlist...
2018/08/09 04:35:05 [Jingle(dot)mp3:3] No mime type specified, trying autodetection.
2018/08/09 04:35:05 [playlist.basic:3] Wrong mime type audio/mpeg for playlist!
2018/08/09 04:35:05 [playlist parser:3] No format found
2018/08/09 04:35:05 [Jingle(dot)mp3:3] Could not parse playlist: Not_found
2018/08/09 04:35:05 [Jingle(dot)mp3:3] Got an empty list: keeping the old one.
2018/08/09 04:35:05 [musicList:3] Loading playlist...
2018/08/09 04:35:05 [musicList:3] Playlist is a directory.
2018/08/09 04:35:05 [musicList:3] Successfully loaded a playlist of 1 tracks.
2018/08/09 04:35:05 [single_6363:3] Prepared "/home/darkice/music/Security/sec.mp3" (RID 0).
2018/08/09 04:35:05 [test(dot)ogg:3] Connecting mount test.ogg for source@192.168.2.4...
2018/08/09 04:35:05 [test(dot)ogg:2] Connection failed: 401, Authentication Required (HTTP/1.0)
2018/08/09 04:35:05 [test(dot)ogg:3] Will try again in 3.00 sec.
2018/08/09 04:35:05 [threads:3] Created thread "wallclock_main" (1 total).
2018/08/09 04:35:05 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
2018/08/09 04:43:34 [decoder:3] Method "MAD" accepted "/home/darkice/music/List/01 Send Her To Me.mp3".
2018/08/09 04:43:34 [test(dot)ogg:2] Connection failed: 401, Authentication Required (HTTP/1.0)
2018/08/09 04:43:34 [test(dot)ogg:3] Will try again in 3.00 sec.
2018/08/09 04:43:34 [threads:3] Created thread "wallclock_main" (1 total).
2018/08/09 04:43:34 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
2018/08/09 04:43:34 [fallback_6368:3] Switch to single_6363.
2018/08/09 04:43:34 [carrzkiss:3] Prepared "/home/darkice/music/List/01 Send Her To Me.mp3" (RID 3).
2018/08/09 04:43:34 [fallback_6368:3] Switch to random_6366 with transition.
2018/08/09 04:35:05 [random_6366:3] Switch to musicList.
2018/08/09 04:35:09 [test(dot)ogg:3] Connecting mount test.ogg for source@192.168.2.4...
2018/08/09 04:35:09 [test(dot)ogg:2] Connection failed: 401, Authentication Required (HTTP/1.0)
2018/08/09 04:35:09 [test(dot)ogg:3] Will try again in 3.00 sec.  

我在这里关注了此页面,以开始记录.

我这里缺少什么吗?为了使Liquidsoap正常工作,还需要安装其他东西吗?
我按照本教程进行了安装. 使用Icecast和Liquidsoap创建互联网广播电台

Is there something I am missing here? is there something else that needs to be installed, in order to make liquidsoap function properly?
I followed this tutorial on the installation. Create an internet radio station with Icecast and liquidsoap

我真的不知道还要添加什么.我写了所有的东西,甚至做了一些额外的事情.如果您还有其他需要我检查的内容,请告诉我.并且,请查看我的其他主题,以获取有关我在此处设置的更多信息. icecast请求解析失败

I really do not know what else to add to this. I have gone through everything and even did some extras while writing this up. Please let me know if there is anything else that you may need for me to check on. And please, have a look at my other thread, for more information on what I have set up here. icecast request parsing failed

运行以下代码.

curl -v 192.168.2.4:8000 >/dev/null

给我这个.

* Rebuilt URL to: 192.168.2.4:8000/
*   Trying 192.168.2.4...
* TCP_NODELAY set
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 192.168.2.4 (192.168.2.4) port 8000 (#0)
> GET / HTTP/1.1
> Host: 192.168.2.4:8000
> User-Agent: curl/7.58.0
> Accept: */*
> 
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: Icecast 2.4.3
< Date: Sun, 12 Aug 2018 18:28:52 GMT
< Content-Type: text/xml; charset=UTF-8
< Cache-Control: no-cache
< Expires: Mon, 26 Jul 1997 05:00:00 GMT
< Pragma: no-cache
< Access-Control-Allow-Origin: *
< Content-Length: 1144
< 
{ [1144 bytes data]
100  1144  100  1144    0     0  95333      0 --:--:-- --:--:-- --:--:--  101k
* Closing connection 0

谢谢.
韦恩

推荐答案

好的,既然我认为我有足够的信息/数据,就让我们来区分一下:

OK, now that I think I have enough information/data, let's pick this apart:

2018/08/09 04:35:03 [single:3] "~/music/Security/sec.mp3" is static, resolving once for all...
2018/08/09 04:35:05 [single_6363:3] Prepared "/home/darkice/music/Security/sec.mp3" (RID 0).

由安全性"配置的液体肥皂内部后备"功能才可用.

Your liquidsoap internal 'fallback' configured by 'security' just became available.

2018/08/09 04:35:03 [Jingle(dot)mp3:3] Loading playlist...
2018/08/09 04:35:05 [Jingle(dot)mp3:3] No mime type specified, trying autodetection.
2018/08/09 04:35:05 [Jingle(dot)mp3:3] Could not parse playlist: Not_found
2018/08/09 04:35:05 [Jingle(dot)mp3:3] Got an empty list: keeping the old one.

没有铃声的播放列表.我猜它只会忽略它.

There is no playlist for jingles. I'm guessing it will just ignore that.

2018/08/09 04:35:05 [musicList:3] Loading playlist...
2018/08/09 04:35:05 [musicList:3] Playlist is a directory.
2018/08/09 04:35:05 [musicList:3] Successfully loaded a playlist of 1 tracks.

"/home/darkice/music/List/01发送给我.mp3"是指定目录中的唯一文件.

"/home/darkice/music/List/01 Send Her To Me.mp3" is the only file in the specified directory.

2018/08/09 04:35:05 [test(dot)ogg:3] Connecting mount test.ogg for source@192.168.2.4...
2018/08/09 04:35:05 [test(dot)ogg:2] Connection failed: 401, Authentication Required (HTTP/1.0)

它正在尝试连接到Icecast服务器,但是Icecast拒绝连接. 造成这种情况的最可能原因是密码与Icecast配置中配置为<source-password>的密码不匹配.

It's trying to connect to your Icecast server, but Icecast rejects the connection. The most likely reason for this is that the password doesn't match the one configured as <source-password> in the Icecast config.

您将在时间戳2018/08/09 04:35:05的Icecast error.log中找到有关连接失败的原因的详细信息-请注意,如果这是另一台计算机并且任一计算机的系统时间未同步,则可能会有偏移通过例如NTP.

You will find details as to why the connection failed in the Icecast error.log at the timestamp 2018/08/09 04:35:05 - please note that there may be an offset if this is a different computer and the system time of either machine is not synchronized by e.g. NTP.

这篇关于使用Liquidsoap进行冰铸不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆