After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 362176 - Chinese in some mp3 id3 tag does not show correctly.
Chinese in some mp3 id3 tag does not show correctly.
Status: RESOLVED NOTABUG
Product: rhythmbox
Classification: Other
Component: User Interface
0.9.6
Other All
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-14 16:21 UTC by Wong, Paul
Modified: 2006-10-15 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
One of the songs with such problem. (part 1) (900.00 KB, application/octet-stream)
2006-10-14 16:27 UTC, Wong, Paul
Details
One of the songs with such problem. (part 2) (900.00 KB, application/octet-stream)
2006-10-14 16:28 UTC, Wong, Paul
Details
One of the songs with such problem. (part 3) (900.00 KB, application/octet-stream)
2006-10-14 16:29 UTC, Wong, Paul
Details
One of the songs with such problem. (part 4) (327.60 KB, application/octet-stream)
2006-10-14 16:30 UTC, Wong, Paul
Details

Description Wong, Paul 2006-10-14 16:21:33 UTC
Please describe the problem:
Hi, for some mp3 files with Chinese in id3 tags, rhythmobx show garbage character (or garbage "stuff") when displaying on the library or song filter.

Those songs data show on iTunes, but not on rhythmbox.

Steps to reproduce:


Actual results:
Garbage characters are displayed.

Expected results:
Correct Chinese character.

Does this happen every time?
Yes.

Other information:
Comment 1 Wong, Paul 2006-10-14 16:27:35 UTC
Created attachment 74690 [details]
One of the songs with such problem. (part 1)
Comment 2 Wong, Paul 2006-10-14 16:28:25 UTC
Created attachment 74691 [details]
One of the songs with such problem. (part 2)
Comment 3 Wong, Paul 2006-10-14 16:29:15 UTC
Created attachment 74692 [details]
One of the songs with such problem. (part 3)
Comment 4 Wong, Paul 2006-10-14 16:30:36 UTC
Created attachment 74693 [details]
One of the songs with such problem. (part 4)
Comment 5 Wong, Paul 2006-10-14 16:35:14 UTC
I read somewhere that this may be one of gstreamer's problem since it's using a id3 decoding library that follows standard (assuming it's iso8859 or unicode), while, some id3 tags of Chinese songs may be recorded in some elder encoding such as Big5.

 I'm not sure about the correctness of this, but the fact is that, I did modify some of these songs in iTunes (suppose to be unicode?), but those songs data still screws in rhythmbox.

Also, I want to note that in many Chinese songs, there are two tags, id3v1 and id3v2, having data in different encoding (gb and big5). I also wonder if that may be part of the problem.

Anyway, this is just some extra information I know of. Hope this helps, and hope you guys can help.
Comment 6 Alex Lancaster 2006-10-15 01:19:24 UTC
I can't extract those files.  You don't need the entire file to check the ID3 tags, just attach the first 50000 bytes (say), using:

head --bytes=50000 your-file.mp3

Comment 7 Alex Lancaster 2006-10-15 01:26:50 UTC
OK, I managed to extract them by concatenating them and then using 7za to extract the.  Here's what I get when I look at the tags using the following version of gstreamer on FC-5:

$ rpm -q gstreamer gstreamer-plugins-base gstreamer-plugins-good gstreamer-0.10.10-0.gst.1.5
gstreamer-plugins-base-0.10.10-0.gst.1.5
gstreamer-plugins-good-0.10.4-0.gst.1.5

It looks like you have both APE tags and ID3 tags in that file.  You should probably be using one or the other, but not both.  

$ gst-launch playbin -t uri=file:///tmp/1-03\ 失常.mp3
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
FOUND TAG      : found by element "id3demux0".
           title: ¥¢±`
          artist: ©x®¦®R
           album: ¥¢±`
     track count: 11
    track number: 3
      disc count: 2
     disc number: 1
           genre: 流行音樂
FOUND TAG      : found by element "apedemux0".
           genre: ゼ
    track number: 3
           title: ア盽
           album: ア盽
          artist: ﹛甊
         comment: forum.musichk.org
FOUND TAG      : found by element "mad0".
           layer: 3
            mode: joint
        emphasis: none
     audio codec: MPEG-1 layer 3
         bitrate: 128000
Comment 8 Alex Lancaster 2006-10-15 01:29:45 UTC
When I import this file in rhythmbox, I only see the APE tags, not the ID3 ones.  I'm not sure which ones are the "correct" ones.  

I have seen this before, gstreamer/rhythmbox will prefer APE tags to ID3 ones when reading or displaying tags, but rhythmbox can only modify ID3 tags.
Comment 9 Alex Lancaster 2006-10-15 01:45:38 UTC
Exfalso (part of quodlibet) has a plugin that will convert APEv2 tags to ID3v2 then it will delete the APE tags, see:

http://www.sacredchao.net/quodlibet/
Comment 10 James "Doc" Livingston 2006-10-15 04:29:40 UTC
Rhythmbox (well, GStreamer) can handle files whose ID3 tags are in other characters set, provided that the tag are spec-compliant by setting the header saying what the character set use is. Unfortunately many programs that write tags do so using the locale's character set and don't set the header.

There isn't really any way Rhythmbox can deal with this that doesn't break some spec-conforming files.
Comment 11 Christophe Fergeau 2006-10-15 09:27:13 UTC
(In reply to comment #10)
> There isn't really any way Rhythmbox can deal with this that doesn't break some
> spec-conforming files.

GStreamer id3 tag reader uses an env variable (I can't remember its name atm :-/) that you can set to force a specific encoding to be used on broken mp3 files. I wouldn't recommend using it but fixing the files instead

Comment 12 Wong, Paul 2006-10-15 19:05:14 UTC
Thanks. I'll try to use that program to remove those APE tags.

Since it's not a bug... I guess I'll have to close it.
Thanks, everyone.