用 Java (ID3) 编辑 mp3 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7031250/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 18:20:41  来源:igfitidea点击:

Editing mp3 files in Java(ID3)

javamp3editid3

提问by krp

i'm kinda new in programming so i hope you can help me :)

我在编程方面有点新,所以我希望你能帮助我:)

Lately, I've been trying to write sth that can change id3 tags of mp3 file. I managed to write code getting those tags quite easily, but i have no idea how to write code changing tags. I assumed that there may be no easy solution, so I decided to try out some libraries. It may be my fault, but none of them work..

最近,我一直在尝试编写可以更改 mp3 文件的 id3 标签的东西。我设法很容易地编写了获取这些标签的代码,但我不知道如何编写代码更改标签。我认为可能没有简单的解决方案,所以我决定尝试一些库。这可能是我的错,但它们都不起作用..

Anyway, my question is : if it is quite simple - how to do my own id3 tag getting code? and if not, are there any libraries you can recommend, and you are sure that they work, so I can spend hours on trying to run it by myself :)?

无论如何,我的问题是:如果它很简单 - 如何做我自己的 id3 标签获取代码?如果没有,是否有任何您可以推荐的库,并且您确定它们可以工作,因此我可以花几个小时尝试自己运行它:)?

回答by KiwiMartin

And for anyone stumbling onto this all these years on, mp3agicmight be handy.

对于这些年来绊倒这一点的任何人来说,mp3agic可能会很方便。

回答by alexmherrmann

Processinghas ways of manipulating audio, video, and even 3d (and of course normal images)

Processing有处理音频、视频甚至 3d(当然还有普通图像)的方法

回答by Binaromong

This library:

这个图书馆:

http://javamusictag.sourceforge.net/

http://javamusictag.sourceforge.net/

provides a means of reading and writing id3 tags.

提供了一种读写 id3 标签的方法。