5

I need to locate a command line tool that would allow me to write ID3v2 and album art to an MP3 file. Command line is required as it will be executed from PHP, so no graphical interface. Searches of Google have proved fruitless, so perhaps there is a tool available that will enable me to do this?

4

4 回答 4

6

根据 Arboghast 的建议, eyeD3 ( http://eyed3.nicfit.net/ ) 将完成这项工作。

eyeD3 --add-image file.jpg:FRONT_COVER music.mp3

将添加封面专辑封面(这是 iTunes/iPhone 用于图像的内容)。

eyeD3 --add-image :FRONT_COVER music.mp3

将删除最后一个封面图像。(注意,如果你想替换一张图片[例如你修复了图片],你需要删除图片然后添加它。如果你只是重新添加图片,你会得到多张封面图片。)

于 2010-03-03T05:29:07.707 回答
3

PHP has ID3 capabilities built in, but it looks like it doesn't support album art.

If you really want a command line tool there's id3v2.

于 2009-08-27T11:58:19.970 回答
3

我发现http://eyed3.nicfit.net/是 Linux 上最全面的命令行 MP3 标签操纵器。支持使用 --add-image 参数嵌入艺术(警告:我自己没有尝试过使用它)。

于 2009-09-01T21:49:52.783 回答
0

尝试使用 mp3info,它是命令行。我不确定专辑封面是否存储为标签并且 mp3info 不支持它。

于 2009-08-27T12:04:57.257 回答