SHOUTcast音量峰值测试
有没有办法在不使用管理员密码的情况下使用 PHP 或 CGI 检查 SHOUTcast 服务器的峰值音量?
Is there any way to check peak volume of SHOUTcast server using PHP or CGI without using the admin password?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。
您需要调谐到流并解码为原始 PCM,然后从那里进行计算。管理员密码实际上对您没有任何帮助。当然,这只能让您获得您收听时的最高峰值,这并不能告诉您太多信息。
SHOUTcast 服务器实际上不会对通过它们的编码音频执行任何操作。事实上,如果您在连接时发送正确的数据,您可以通过 SHOUTcast 服务器发送纯文本。因此,服务器根本不跟踪与音频相关的任何内容。这就是为什么解码音频是您在这里可以做的唯一事情,而不是从编码器获取您需要的内容。
Yes.
You need to tune into the stream and decode to raw PCM and do your calculations from there. The admin password wouldn't actually help you at all here. Of course, this only allows you to get the highest peak for the time that you listen, which doesn't tell you much.
SHOUTcast servers don't actually do anything to the encoded audio that passes through them. In fact, if you send the right data upon connection, you can send plain ol' text through the SHOUTcast server. Because of this, the server doesn't keep track of anything related to the audio at all. this is why deocding the audio is the only thing you can do here, short of getting what you need from the encoder.