ICY元数据支持与ffmpeg的 [英] ICY metadata support with ffmpeg

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

问题描述

有没有什么办法让从Shoutcast的流使用FFmpeg的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:

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

另外,你可以访问 /7.html Shoutcast一样的服务器上,你会得到这样一行:

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.

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

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