java sound encode,Java中的MP3编码

由于MP3格式涉及到专利授权问题,寻找一个完全免费且稳定的Java API来编码和解码MP3文件可能具有挑战性。LAME是一个广泛使用的库,但可能存在法律和稳定性问题。其他选项如Java Sound API并不直接支持MP3。如果你不考虑MP3,可以考虑转换为OGG或FLAC等其他格式,它们在开源社区中得到了较好的支持。
摘要由CSDN通过智能技术生成

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

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.

解决方案

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.

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.

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.

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

wait for Sun to license the format for the core JRE. This, I believe they have done recently, but I don't know of any release dates (perhaps to do with JavaFX)

implement your own in Java, and pay the license. I wouldn't fancy this one, either.

write your own Java wrapper to LAME, via JNA, or SWIG

contribute to Lame4J.

pick another format. OGG and FLAC are quite good, and relatively well supported.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值