播放 mp3 的最佳方式
我需要组织从我的机器到世界其他地方的 mp3 流。人们建议我将 MPD 与 Icecast2 作为前端。一切都很好,除了一件事 - 音乐正在以 Ogg Vorbis 的形式传输,而不是我实际需要的。
MPD 的配置文件有一个片段:
audio_output {
type "shout"
name "Radio"
host "localhost"
port "8000"
encoding "mp3"
mount "/radio.ogg"
password "mypass"
bitrate "256"
format "44100:16:2"
protocol "icecast2"
description "radio stream"
}
但是,Icecast 的状态页面显示它正在流式传输 ogg,而不是 mp3。 MPD 的版本是 0.13.2,运行在 Debian Lenny 上。怎么了?
任何帮助将不胜感激。
PS我编译了LAME编码器。
I need to organize mp3-streaming from my machine to the rest of the world. People advised me to use MPD with Icecast2 as frontend. Everything is ok except one thing — music is being streamed as Ogg Vorbis, not what actually I need.
There's a snippet of MPD's config file:
audio_output {
type "shout"
name "Radio"
host "localhost"
port "8000"
encoding "mp3"
mount "/radio.ogg"
password "mypass"
bitrate "256"
format "44100:16:2"
protocol "icecast2"
description "radio stream"
}
But, Icecast's status page says it's streaming ogg, not mp3.
MPD's version is 0.13.2 running on Debian Lenny. What's wrong?
Any help will be appreciated.
P.S. I have LAME encoder compiled.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我的问题就解决了。我刚刚使用 --enable_shout 和 --enable_ffmpeg 键编译了 0.15.2 版本的 MPD。
So my question is solved. I just compiled 0.15.2 version of MPD with --enable_shout and --enable_ffmpeg keys.