一组用于操作和交互音乐元数据的工具。
music-metadata-tools的Python项目详细描述
音乐元数据工具
用于操作和与音乐元数据交互的工具的集合。在
id3autosort-基于元数据的音乐组织实用程序
id3autosort根据每个曲目的元数据组织音乐库。支持AAC、AIFF、FLAC、MP3、OGG和WMA格式。在
使用
$ id3autosort [-u] [-n] [-v] [-s <desired structure>] /path/to/music [/path/to/music ...] /path/music/should/go
常规选项
^{pr2}$结构选项
-s
开关允许用户定义他们希望音乐的结构化方式,只要用户的音乐有必要的标记,就会遵循这种方式。在
支持的结构元标记:d(日期)、g(流派)、l(专辑)、r(艺术家)
例如,如果用户指定结构“r/l(d)”,目标目录为/tmp/music,则结果与以下类似:
闻起来像音乐精神.mp3
/tmp/音乐/老鹰/加州酒店(1976)/酒店加利福尼亚州佛罗里达州
/tmp/music/Tupac/All Eyez On Me(1996)/加利福尼亚爱.ogg在
然而,如果用户使用相同的目标目录指定结构“g/d/r”,则结果将类似于:
/tmp/music/House/2001/Daft朋克/渐增娃娃.wma
/tmp/music/Pop/2014/Taylor Swift/摇一摇关.aiff
/tmp/music/Dubstep/2006/Skream/Midnight Request Line.m4a
尚未保留用于扩展的字符将传递到生成的结构,但不保证将来不会使用其他字母扩展其他标记。在
apic工具-音乐文件图像处理实用程序
apic工具允许用户插入和提取音乐文件中的图像数据。目前支持mp3文件。在
使用
常规选项
--dry-run, -d Simulate the actions instead of actually doing them
--verbose, -v Change the program's verbosity
--force Whether or not the tool should allow things to happen that may have complications
从音乐文件中提取图像
将图像从文件提取到指定位置:
$ apic-tool extract /path/to/file.mp3 /path/for/outfile.jpg
请注意,如果不是强制的,则实际使用的扩展名可能会根据文件中的图像类型而更改。在
从没有指定位置的文件中提取图像:
$ apic-tool extract /path/to/file.mp3
图像将保存到/path/to/文件.xyz,其中xyz
根据文件中的图像类型而更改。在
将图像插入音乐文件
插入选项
--pic, -p /path/to/image.jpg Image to insert into music files
(currently support GIF, JPEG, PNG)
--dir, -d /path/to/music [/path/to/other/music ...], Directory or directories containing files to insert image into
NOTE: does not recurse
--file, -f /path/to/file.mp3 [/path/to/other/file.mp3 ...] Individual files to insert image into
--keep, -k Don't delete image after inserting it
将图像放入文件:
$ apic-tool insert --file /path/to/file.mp3 --pic /path/to/image.jpg
将图像放入文件目录:
$ apic-tool insert --d /path/to/dir --p /path/to/image.jpg
- 项目
标签: