Rhythmbox Chinese garbled solution

Source: Internet
Author: User
Rhythmbox Chinese garbled solution into your music folder to execute the following code: mid3iconv-eGBK *. mp3 if no prompt to try multiple times, the system may prompt: www.2cto. compython-mutagen not installed. Sudoapt-getinstallpython-mutagen... rhythmbox Chinese garbled solution go to your music folder and execute the following code: mid3iconv-e GBK *. if you are not prompted to try mp3 for several times, the system may prompt: www.2cto.com python-mutagen is not installed. Sudo apt-get install python-mutagen installation. Enter the preceding command and press enter. After installing the program, return to your music folder and enter the command: mid3iconv-e GBK *. mp3 and press enter. Then open rhythmbox again, OK! All mp3 files are displayed normally. The www.2cto.com mid3iconv command converts the ID3 information of the original mp3 music file to Unicode and saves it back to the file in ID3v2 format. The other one is "Mutagen" written in Python. The latest version is 1.11, and the Ubuntu 7.04 source also has the Mutagen version 1.10. you can use this command to install it: sudo apt-get install python-mutagen ps: required for both Quod Libet and Listen installation: mid3iconv-e gbk *. mp3: find. -iname "*. mp3 "-execdir mid3iconv-e gbk {} \; * I believe that most of the mp3 tags found in mainland China are encoded in GBK/GB18030 format- E gbk is enough for processing. of course you can also use-e gb18030 for processing. * The-e gbk parameter indicates converting the GBK encoding label to Unicode encoding, which itself is a Unicode encoding without conversion. If you need to convert other encoding files, you can modify them by yourself, for example, to Big5. * Tested, converted to version 2.4 ID3v2, the encoding format is uft-16 * but it will also fill the D3v1, ID3v2, APEv2 tags with Unicode encoding, however, ID3v1 does not support Chinese Unicode encoding, so the converted ID3v1 tags are all question marks. So it is best to add the-remove-v1 parameter, delete the ID3v1 label after conversion. Mid3iconv-e gbk -- remove-v1 *. mp3 audio Rhythmbox Music Player is a Music Player that comes with ubuntu, the function is relatively powerful, easy to use. The only drawback is that Chinese characters are garbled because of different codes. Here is a solution for modifying variables. Enter 1vi ~ on the terminal ~ /. Profile add the following content at the end: 12exportststst_id3_tag_encoding = GBK: UTF-8: gb18030exportstst_id3v2_tag_encoding = GBK: UTF-8: GB18030 save and exit. 1source ~. Restart profile Rhythmbox and re-import the song to display the correct information. This method is feasible in Ubuntu 10.04, and other versions should have little problem. -------------------------------------------------------- I believe many friends may encounter mp3 tag garbled characters when playing mp3 in Linux. I usually use Ex Falso (an mp3 tag editor provided by Quod Libet) to edit tags when the mp3 TAG is garbled, enable my player Quod Libet to recognize mp3 tags normally. When there were few conversion songs, there was no problem with doing so, but many of my friends who just switched from Windows to Linux started to grow, many mp3 labels that are normally displayed in Windows are all messy in Linux. Let's take a look at some of the mp3 tags and encoding concepts to solve this problem, and we will be clearer. The tag types and encoding of mp3 mainly include ID3v1, ID3v2 2.3, ID3v2 2.4, and APEv2. They support ID3v1: only ISO--8859-1ID3v2 2.3: ISO--8859-1, UTF-16ID3v2 2.4: ISO--8859-1, UTF-16, UTF-8APEv2: UTF-8 we can see from the list above, there are various tag types and codes for mp3, and there is no specification at all. ID3v1 only supports ISO-8859-1 this encoding, it does not support Chinese, so generally only ID3v1 tag mp3 in Linux are basically garbled, the formats supported by ID3v2 2.3 increase the UTF-16 until the ID3v2 2.4 version starts to support the UTF-8, but the two versions of ID3v2 standards do not have a uniform label content encoding. Here it is worth mentioning that APEv2, which has the best scalability, It unified the encoding format for the UTF-8, in this way, as long as the player that supports APEv2 reading plays mp3 files with the APEv2 tag, there will be no garbled problem. Unfortunately, the mp3 files downloaded on Chinese websites basically do not have the APEv2 tag, and few players in Linux support the read of the APEv2 tag. (Currently, the Rhythmbox in Gnome supports reading the APEv2 tag, including Quod Libet .) An mp3 tag can contain multiple types. When an mp3 file contains more than two types: ID3v1, ID3v2 2.3, ID3v2 2.4, and APEv2, the player generally reads mp3 tags from top to bottom. APEv2 (provided that the player supports reading this encoding) --- ID3v2 --- ID3v1. So sometimes the tag displayed in the same file Rhythmbox is normal (read the APEv2 tag), and other players are abnormal (read the ID3 tag ). Next, let's talk about why all mp3 players have garbled characters in Linux, this is because these mp3 players rely on the libid3tag library in the system to completely read the tag content according to the ID3 standard. No matter what standard tags mp3 adopts (ID3v1, ID3v2, and APEv2), as long as the content of mp3 tags is stored in Unicode encoding, so the display is certainly normal (ID3v1 ISO-8859-1 strictly says it does not support Chinese, but does not mean it cannot store Chinese ). If we encounter gbk, gb18030, big5 encoding of the Chinese content, it will still take it as a ISO-8859-1 to read, garbled code has become inevitable. Having said so much, the problem becomes simple now. it seems that we only need to change the Chinese content stored in the mp3 tags using gbk, gb18030, and big5 encoding to Unicode encoding, basically, all Linux players can recognize mp3 tags normally. For mp3 encoding conversion, here is a tool named Mutagen. if you have installed Quod Libet, this package has been installed. If not, run the following command. Sudo apt-get install python-mutagen usage method mid3iconv-e gbk *. mp3 # Convert the mp3 file in the current directory to find. -iname "*. mp3 "-execdir mid3iconv-e gbk {}\; # Convert all mp3 files (including subdirectories) in the current directory. because most mp3 files downloaded online now use gbk/gb18030 encoding, the-e gbk parameter is used to convert gbk-encoded tags to Unicode encoding. If mp3 tags are Unicode-encoded tags, they are not converted. If you want to convert other encoded files, you can modify the gbk parameter, for example, to gb18030 or big5. The converted mp3 tag type is ID3v2 2.4 and the encoding format is UTF-16. After this step, it is estimated that there is no problem to use all players in Linux. Next, let's look back at the root cause. why are these mp3 files normally displayed with Media Player in Windows? Is Linux not as good as Windows? In fact, this principle is very simple. Firefox cannot open many pages that can be easily opened by IE. does it show that Firefox is not as good as IE? People with knowledge can understand it at a glance. For its so-called compatibility, Windows completely ignores specifications and custom rules. it seems that its software compatibility is very good. In fact, in the end, it is still a waste of users, we can see from a large number of webpages that do not comply with W3C standards and the overwhelming mp3 tags are gbk/gb18030 encoded. (anyway, I have not seen a few mp3 files downloaded from the Internet in Linux. normally displayed ). We can tell you that, after using the above method to convert and encode, these mp3 files cannot display the tags normally in the file attribute menu and Media Player of Windows, and will all be changed "? ". Because the mid3iconv command fills up D3v1, ID3v2, and APEv2 tags with Unicode encoding by default during transcoding (the premise is that the file originally contains these types of tags ), however, ID3v1 does not support Chinese Unicode encoding. Media Player seems to only support ID3v1 reading. of course, you can use other software that supports ID3v2 and APEv2 reading. Here, we recommend a Windows mp3 player, Foobar2000. I used this player all the time in my previous Windows career. foobar2000 supports reading a full range of tags, it is even more commendable that it uses ID3v2 2.4 by default to write the UTF-8 code, completely solving the encoding problem. Provide the final solution provided by one person. 1. the system environment is completely Linux. Directly use the following command to convert all mp3 files, regardless of the Windows user experience. Mid3iconv-e gbk *. mp3 of course, if you want to avoid your mp3 files being shared to users of Windows or mp3, what's wrong "? ", You can add a -- remove-v1 parameter to directly delete the ID3v1 tag, avoiding file properties and Media Player appear "? ". Mid3iconv-e gbk *. mp3 remove-v1 2. we recommend that you use the foobar2000 player to edit the mp3 tag of a file in a Windows + Linux system. you can select all mp3 files in foobar2000 for file tag re-writing, foobar2000 will rewrite all the labels, so that the label uses ID3v2 2.4 type UTF-8 encoding write, completely solve the problem of mp3 file encoding in Windows and Linux. This is also a perfect solution. Foobar supports three tag encoding methods: ID3V1 ID3V2 APEv2 converts mp3 files using these three encoding methods, and neither Windows nor linux will contain garbled characters? The tag editing function of foobar is very powerful. add % on both sides of the tag name. for example, you can read the value of % genre % on both sides of the tag name. try again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.