如果我将数据流式传输到Icecast,如何创建音频文件元数据标题? [英] How to create an audio file metadata header if I am streaming data to icecast?

查看:146
本文介绍了如果我将数据流式传输到Icecast,如何创建音频文件元数据标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将元数据标头发送到Icecast服务器?我正在AAC中进行录制,并通过ios将其流式传输到icecast服务器,但文件显示已损坏.我怀疑需要添加元数据才能播放文件.如何发送元数据?我应该以字符串形式发送吗?应该是什么格式?

How do I send the metadata header to the icecast server ? I am recording in AAC and streaming it to the icecast server through ios but the file shows corrupt . I suspect that the metadata needs to be added to be able to play a file. How do i send the metadata ? SHould i send it as a string ? What should be the format ?

推荐答案

流正常运行不需要元数据.如果您的数据已损坏,则说明您编码错误或发送了错误的Content-Type标头.

The metadata is not required for a stream to function. If your data is corrupt, you are either encoding it wrong or are sending the wrong Content-Type header.

话虽这么说,一旦您的流正常工作,如果您想发送元数据,则这是在实际音频流的带外完成的.通过向Icecast服务器的简单HTTP请求来更新元数据.

That being said, once you get your stream working, if you would like to send metadata, this is done out-of-band of the actual audio stream. Metadata is updated with a simple HTTP request to the Icecast server.

http://icecast.example.com/admin/metadata?pass=hackme&mode=updinfo&mount=/mountpoint&song=Your%20Metadata

您可以在此处的答案中找到更多信息: https://stackoverflow.com/a/9985297/362536

You can find more info in my answer here: https://stackoverflow.com/a/9985297/362536

这篇关于如果我将数据流式传输到Icecast,如何创建音频文件元数据标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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