特殊:Badtitle/NS100:ConvertingMP3Tags

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月24日 (四) 09:25的版本 (新页面: {{From|https://help.ubuntu.com/community/ConvertingMP3Tags}} {{Languages|UbuntuHelp:ConvertingMP3Tags}} === MP3 Tag Encoding Problem === If you found your MP3 tags (title, album, etc) ar...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

{{#ifexist: :ConvertingMP3Tags/zh | | {{#ifexist: ConvertingMP3Tags/zh | | {{#ifeq: {{#titleparts:ConvertingMP3Tags|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ConvertingMP3Tags|1|-1|}} | zh | | }}

MP3 Tag Encoding Problem

If you found your MP3 tags (title, album, etc) are not well displayed in players or applications like Rhythmbox, which is especially true for Asian users, you may want to convert their tags to UTF-8 such that they should be properly displayed almost everywhere.

Please notice that some of current programs like EasyTag (as of Ubuntu 6.06) cannot solve this problem because it supports up to ID3v2.3, while it is ID3v2.4 which allows UTF-8. So before you use any tools, make sure it can indeed support ID3v2.4.

Using python-mutagen

python-mutagen is a tool which can do mass convertion of mp3 files. Unfortunately the current version (1.0) in Ubuntu 6.06 (Dapper Drake) does not support the mass converting function. So here are the steps to install the later package of python-mutagen and to use it.

Install python-mutagen from Ubuntu 6.10 (Edgy Eft) Repository

Ubuntu 6.10 (Edgy Eft) is the development version of Ubuntu. It is not yet stable, and not recommended for regular use yet, but it is possible to carefully use selected packages from it in a stable Ubuntu 6.06 installation.

First you need to add a 6.10 Repository to your sources list. Using Synaptic Package Manager or edit /etc/apt/sources.list manually as root, add this line:

deb http://archive.ubuntu.com/ubuntu/ edgy universe multiverse main restricted

Then "reload package information" in Synaptic and install the package "python-mutagen" of version 1.5. Or you can input these under console.

sudo apt-get update
sudo apt-get install python-mutagen

You may need to install some extra packages such as "python-central". Notice that you may see thousands of updates but do not mark and apply them, otherwise you will go far away from Ubuntu 6.06.

After installing python-mutagen, remove the line above from /etc/apt/sources.list, and again

sudo apt-get update

Convert tags of MP3 files using python-mutagen

Go to the directory where you put your MP3 files, or go to the home directory, using the following command,

find . -iname "*.mp3" -execdir mid3iconv -e GBK {} \;

python-mutagen will then search for all .mp3 files in current directory (recursively) and convert their tags to proper form.