gpt4 book ai didi

Icecast 介绍文件

转载 作者:行者123 更新时间:2023-12-04 01:50:37 27 4
gpt4 key购买 nike

在 Ubuntu 16.04 上运行 Icecast 2.4.99.2 只是文件并想添加一个介绍文件。使用从 Darkice 默认声卡输入安装的工作源,当我添加 <intro>标记到挂载的 Icecast 配置文件,它会播放但没有任何内容。

<mount>
<mount-name>/archive</mount-name>
<max-listeners>5</max-listeners>
<fallback-mount>/high_quality.mp3</fallback-mount>
<intro>/high_quality.mp3</intro>
<fallback-override>1</fallback-override>
<hidden>0</hidden>
</mount>

mp3 文件的文件权限:
user@stream:~/StationIDs$ sudo ls -lah /usr/share/icecast2/web/high_quality.mp3
-rwxr--r-- 1 root root 138K Nov 14 17:20 /usr/share/icecast2/web/high_quality.mp3

我已经阅读了需要匹配的格式,所以我使用 darckice.cfg 使用 128kps 比特率使用 lamewav 编码格式。
user@stream:~/StationIDs$ mediainfo high_quality.mp3
General
Complete name : high_quality.mp3
Format : MPEG Audio
File size : 138 KiB
Duration : 8s 777ms
Overall bit rate mode : Constant
Overall bit rate : 128 Kbps
Writing library : LAME3.99r

Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Duration : 8s 803ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 1 channel
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 137 KiB (100%)
Writing library : LAME3.99r
Encoding settings : -m m -V 4 -q 3 -lowpass 20.5 -b 128

从darkice.cfg...
[icecast2-1]
format = mp3
bitrateMode = cbr
bitrate = 128
quality = 0.9
server = localhost
mountPoint = archive
port = 8000
password = changeme
name = Archiver Stream
description = Dedicated archiving stream
url = archive
genre = Eclectic
public = no

使用此配置,介绍文件可以在没有其他任何内容的情况下播放,并且源流在没有介绍文件的情况下播放。有遗漏吗?

最佳答案

嗯,当然,我在写完这篇文章后回答了我自己的问题并解决了。我在文件格式中发现了 1 channel 。我不得不使用 sox转换原始 wav文件到2 channel ,然后再次使用lame转换为mp3 ...

user@stream:~/StationIDs$ sox high_quality.wav -c 2 high_quality-2.wav
user@stream:~/StationIDs$ lame -b 128 -F high_quality-2.wav high_quality.mp3

关于Icecast 介绍文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53326462/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com