在Java中MP3编码 [英] MP3 Encoding in Java

查看:528
本文介绍了在Java中MP3编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Java中的开放源代码的API,它可以连接code * .WAV和* .​​AU格式为MP3,反之亦然。

I need an OpenSource API in Java, which can encode *.wav and *.au formats to MP3 and vice-versa.

我已经评估的Java API的声音和 LameOnJ ,但他们并不满足我的要求,并不稳定,分别为。请建议一个是自由和独立的平台。

I have evaluated Java Sound API and LameOnJ, but they do not meet my requirements and are not stable, respectively. Please suggest one that is free and platform independent.

推荐答案

有可能不适合你足够的答案,但是,随着MP3格式需要去codeR的作者/ EN codeRS获得从Fraunhofer研究所的许可证。

There may not be an adequate answer for you, yet, as the MP3 format requires the authors of decoder/encoders to obtain a license from the Fraunhofer Institute.

我觉得在LAME库是从一个不尊重这些知识产权问题的国家分布,但它采取了法律两轮牛车的相当数量远远得到这个。

I think the the LAME library is distributed from a country that does not respect these IP issues, but it took a considerably amount of legal hackery to get this far.

有关的任​​何其他库 - 例如,一个用Java编写的,作者需要得到类似的许可证。其中,成本是一个问题 - 例如,在一个开源项目,那么这是一个足以阻碍的首发。

For any other libraries - for example one written in Java, the authors need to get a similar license. Where cost is an issue - e.g. in an Open Source project, then this is enough of a disincentive to starting.

有关详细信息,请参阅本维基百科文章

For more details see this wikipedia article.

如果LAME4J是不是你不够稳定,那么恐怕你的选择可能是:

If LAME4J is not stable enough for you, then I'm afraid your options are probably:


  • 等待太阳许可为核心的JRE的格式。这一点,我相信他们最近做的,但我不知道任何发布日期的(也许是做的JavaFX)

  • 在Java中实现自己,并支付了许可。我也不会看上这一次,无论是。

  • 编写自己的Java包装器LAME,通过JNA或者SWIG

  • 有助于Lame4J。

  • 选择其他格式。 OGG和FLAC都相当不错,而且比较很好的支持。

这篇关于在Java中MP3编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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