使用 ffmpeg 支持 ICY 元数据 [英] ICY metadata support with ffmpeg

查看:22
本文介绍了使用 ffmpeg 支持 ICY 元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用 FFMpeg 从shoutcast 流中获取 ICY 元数据?一种方法是自己处理连接/流并将自定义 IOStream 发送到 ffmpeg.

Is there any way to get ICY metadata from shoutcast stream using FFMpeg ? One way would be to deal with the connection/stream by myself and send Custom IOStream to ffmpeg.

还有其他简单的方法吗?或多路分离器可用?

Is there any other simple way? or demuxer available ?

谢谢

推荐答案

这里讨论了支持它的补丁:http://web.archiveorange.com/archive/v/yR2T400567mWEyyZHg3k

There was discussion of a patch for supporting it here: http://web.archiveorange.com/archive/v/yR2T400567mWEyyZHg3k

但是,它看起来还没有成功.我建议你自己简单地解析一下.请在此处查看我的答案以了解如何执行此操作:

But, it doesn't look like it made it in yet. I suggest you simply parse this out yourself. See my answer here for how to do this:

https://stackoverflow.com/a/4914538/362536

或者,您可以在 SHOUTcast 服务器上访问 /7.html,您将得到如下一行:

Alternatively, you can just access /7.html on SHOUTcast servers, and you will get a line like this:

1,1,15,625,1,128,Oh Mercy - Stay, Please Stay

字段是:

  1. 听众数量
  2. 流状态(1 表示您正在播放,0 表示源不在那里)
  3. 此服务器运行的侦听器峰值数量
  4. 服务器配置允许的最大同时侦听器数量
  5. 基于 IP 的唯一侦听器数量
  6. 以千比特为单位的当前比特率
  7. 标题.(请注意,即使您的标题中有逗号,它也不会被转义或其他任何东西.)

请注意,/7.html 在非 SHOUTcast 服务器上并不总是可用,并且在新版本的测试版中可能不可用.虽然这是一种快速简便的方法,但最好解析发送给客户端的元数据.

Beware though that /7.html isn't always available on non-SHOUTcast servers, and may not be available in the beta of the new version. While this is a quick and easy method, you would be better off parsing the metadata sent to clients.

这篇关于使用 ffmpeg 支持 ICY 元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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