使用 Icecast 自定义元数据
我需要向 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(2)
我的
node-icy
模块能够读取任意 Icecast 流拦截“元数据”事件和/或将“元数据”事件添加到输出流。您本质上是在“代理”流。一个很好的(虽然有点复杂)示例可能在这里:proxy.js
请注意,虽然“元数据”格式是分号分隔的键值对字符串,但 Icecast 客户端仅对
StreamTitle
值,因此只需将您想要的所有信息填充到其中即可:我已经做了一些事情,例如每秒发送一个元数据事件来保留轨道位置计数器(尽管这可能有点网络繁重) ):
祝你好运!
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: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):
Good luck!
尽管有点复杂,但 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