1

有没有办法在不使用管理员密码的情况下使用 PHP 或 CGI 检查 SHOUTcast 服务器的峰值音量?

4

1 回答 1

0

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.

于 2011-03-29T02:04:06.490 回答