GNOME Bugzilla – Bug 382395
unable to edit tags
Last modified: 2006-12-08 03:49:24 UTC
I haven't been able to pin down why but I haven't been able to edit tags. At first I was getting a gstreamer error 'file a bug'. I think this was due to not having taglib and support in gst-plugins-good. But now something else... The tag is changed in the database but not in the file. Unfortunately --debug isn't giving me much - nor is the metadata helper debug.
(16:57:16) [0x9db3008] [rb_metadata_save] rb-metadata-gst.c:1334: saving metadata for uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting title (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting replaygain-track-peak (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting artist (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting replaygain-album-gain (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting album (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting replaygain-album-peak (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting date (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting genre (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting musicbrainz-trackid (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting track-number (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting album-disc-number (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting bitrate (16:57:16) [0x9db3008] [rb_metadata_gst_add_tag_data] rb-metadata-gst.c:1289: Setting replaygain-track-gain (16:57:16) [0x9db3008] [rb_add_id3_tagger] rb-metadata-gst.c:206: using id3v2mux (16:57:16) [0x9db3008] [id3_pad_added_cb] rb-metadata-gst.c:163: linked pad from id3de to id3mux (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: title (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: artist (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: album (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: date (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: genre (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: private-id3v2-frame (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: track-number (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: album-disc-number (16:57:16) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp3 tag: image (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 2048 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:16) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:902: EOS reached (16:57:17) [0x9db3008] [rb_metadata_load] rb-metadata-gst.c:1018: loading metadata for uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 (16:57:17) [0x9db3008] [rb_metadata_load] rb-metadata-gst.c:1095: going to PAUSED for metadata, uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 (16:57:17) [0x9db3008] [rb_metadata_gst_new_decoded_pad_cb] rb-metadata-gst.c:819: got decoded audio pad of type audio/x-raw-int (16:57:17) [0x9db3008] [rb_metadata_gst_typefind_cb] rb-metadata-gst.c:787: found type application/x-id3 (16:57:17) [0x9db3008] [rb_metadata_load] rb-metadata-gst.c:1103: element state changing asynchronously: 2, 165851784 (16:57:17) [0x9db3008] [rb_metadata_load] rb-metadata-gst.c:1117: gone to PAUSED for file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 512 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: title (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: artist (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: album (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: date (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: genre (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: private-id3v2-frame (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: track-number (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: album-disc-number (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: image (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: genre (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: date (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: album (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: artist (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: title (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: track-number (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: duration (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: bitrate (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: layer (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: mode (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: emphasis (16:57:17) [0x9db3008] [rb_metadata_gst_load_tag] rb-metadata-gst.c:649: uri: file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736 tag: audio-codec (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 64 (16:57:17) [0x9db3008] [rb_metadata_bus_handler] rb-metadata-gst.c:948: message of type 16384 (16:57:17) [0x9db3008] [rb_metadata_load] rb-metadata-gst.c:1241: successfully read metadata for file:///home/mccannwj/Music/The%20Rolling%20Stone%20Magazines%20500%20Greatest%20Songs%20Of%20All%20Time/187%20-%20Ac%20Dc%20-%20Back%20In%20Black.mp32C1736
That was with "Watch library" off.
That all looks normal, except that there appear to be two sets of tags in the file. 'gst-launch-0.10 -t filesrc location=file.mp3 ! decodebin ! fakesink' will tell you where the tags are coming from.
Created attachment 77740 [details] output of gst-launch-0.10 -t filesrc location="$1" ! decodebin ! fakesink Rhythmbox still shows the title as "Back in Black" instead of "The Rolling Stone Magazines 500 Greatest Songs Of All Time".
Is this a gstreamer bug then? If I understand this correctly, when I edit the tags it is only changing the ID3v2 ones but when the metadata is reloaded the ones found by apedemux0 take precedence. This would explain why (when the watch library is on) the tag edit seems to work but then is reverted after the metadata is reloaded in response to the file changed event. Should we be writing out to the apedemux0 tags too or should the id3demux0 tags take precedence on load?
This sounds like the problem in bug #362876 and there is a patch there which converts the APE tags into ID3v2 tags and removes the APE tags. Closing as a dupe of that bug, feel free to re-open if the bug doesn't cover all the problems there. *** This bug has been marked as a duplicate of 362876 ***