使用 Icecast 自定义元数据

发布于 2025-01-05 07:10:46 字数 176 浏览 6 评论 0原文

我需要向 Icecast 流添加额外的元数据(除了艺术家和歌曲标题之外)。我尝试了很多想法,但似乎都没有产生任何效果。情况变得更加复杂,因为元数据也通过 Wowza,它正在重新传输 Icecast 流。是否有 Icecast 支持的元数据字段的规范列表,是否有人有将自定义元数据作为 Icecast 流的一部分传递到 Wowza 的经验?

I need to add additional metadata to an Icecast stream (beyond Artist and Song Title). I've tried a number of ideas but none seems to yield anything. The situation is made more complicated in that the metadata also passes through Wowza, which is re-streaming the Icecast stream. Is there a canonical list of metadata fields supported by Icecast, and does anyone have experience passing custom metadata as part of an Icecast stream and on to Wowza?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

昔日梦未散 2025-01-12 07:10:46

我的 node-icy 模块能够读取任意 Icecast 流拦截“元数据”事件和/或将“元数据”事件添加到输出流。您本质上是在“代理”流。一个很好的(虽然有点复杂)示例可能在这里: proxy.js

请注意,虽然“元数据”格式是分号分隔的键值对字符串,但 Icecast 客户端仅对StreamTitle 值,因此只需将您想要的所有信息填充到其中即可:

StreamTitle='Pink Floyd - Welcome to the Machine';

我已经做了一些事情,例如每秒发送一个元数据事件来保留轨道位置计数器(尽管这可能有点网络繁重) ):

StreamTitle='Pink Floyd - Welcome to the Machine (0:12/4:02)';

祝你好运!

My node-icy module is capable in reading in an arbitrary Icecast stream and intercepting and/or adding "metadata" events to an output stream. You are essentially "proxying" the stream. A good (though slightly complicated) example might be here: proxy.js

Do note though that the "metadata" format is a semicolon-delimited String of key-value pairs, but Icecast clients only react to the StreamTitle value, so just stuff all the information you want into there:

StreamTitle='Pink Floyd - Welcome to the Machine';

I've done things like send a metadata event every second to keep a track position counter (though that may have been a little network-heavy):

StreamTitle='Pink Floyd - Welcome to the Machine (0:12/4:02)';

Good luck!

别靠近我心 2025-01-12 07:10:46

尽管有点复杂,但 Savonet/Liquidsoap 脚本语言具有修改/设置流元数据的功能。 Liquidsoap wiki 中有几个示例,网址为 https://wiki.sourcefabric.org/display/LS/用户脚本

Though it's a bit complicated, the Savonet/Liquidsoap scripting language has facilities to modify/set stream metadata. There's a couple examples in the Liquidsoap wiki at https://wiki.sourcefabric.org/display/LS/UserScripts

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文