通过脚本更改一堆音乐文件的标题属性
我有很多音乐文件,但它们的标题属性前面有曲目编号,例如 01.TrackName、02.TrackName。 从文件属性中删除整数的最佳方法是什么?
编辑:我使用的是 Windows,所有音乐文件都是 MP3。任何批处理文件、c++ 或 .net 等解决方案都将受到赞赏。
I have quite a lot of music files but their title attributes have the track numbers infront of them, like 01.TrackName, 02.TrackName.
What is the best way to strip off integers from the file attributes?
Edit: I am using windows and all music files are MP3. Any solution as batch files, c++ or .net etc will be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我会使用灵活的文件重命名器根据您的需要重命名文件。它确实需要熟悉模式,并且在某些高级场景中还需要熟悉正则表达式。
市场上还有其他几种类似的工具,每种工具都有自己的功能范围以及完成的容易程度。
请参阅 http://hp.vector.co.jp/authors/VA014830/英语/FlexRena/。该网站显示了用户批量重命名一组 MP3 文件的屏幕截图,该文件不仅使用文件名中的元素,还使用 ID3 标签相关信息(例如曲目标题和艺术家)。
I'd use Flexible File Renamer to rename the files per your needs. It does require some familiarity with patterns and, in some advanced scenarios, regular expressions.
There are several other similar tools on the market, each with their own scope as to what they can do and how easily it can be done.
See http://hp.vector.co.jp/authors/VA014830/english/FlexRena/. The website shows a screenshot of a user batch-renaming a set of MP3 files using not only elements within the filename but also ID3 tag-related information such as track title and artist.
我使用 Flash Renamer 很棒的工具,它支持重命名 MP3
I use Flash Renamer Great util, and it has support for renameing MP3's
您可以使用 ID3 标签编辑器。有些支持使用正则表达式进行批量标记。另一种选择是将 python 与 id3 标签库一起使用(我不记得它的名字...)
编辑: 例如 http://www.mp3tag.de/en/
Mutagen:Python 的 Id3 标签库。
You can use an ID3 tag editor. Some have support for batch tagging using regexes. Another option would be to use python with the id3 tag library (I don't remember its name...)
Edit: For example http://www.mp3tag.de/en/
Mutagen: Id3 tag library for python.
使用“标记和重命名”程序选择所有 mp3 文件(可能有数千个),并将它们导出为 export.xlsx。当你用Excel打开这个文件时,你可以执行任何你能想到的操作。使用此方法,您可以在1小时内随心所欲地调整1万个文件。在 Excel 中请勿更改列标题和位置。首次解压缩export.xlsx 文件时,请务必对其进行备份。
Select all your mp3 files (there may be thousands) with the Tag and Rename program and export them as export.xlsx. When you open this file with Excel, you can perform any operation you can think of. With this method, you can adjust 10 thousand files as you wish within 1 hour. Do not change column headings and locations while in Excel. When you first extract the export.xlsx file, be sure to make a backup of it.