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 319316 - retag example doesn't work
retag example doesn't work
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.x
Other All
: Normal normal
: 0.8.12
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-20 13:59 UTC by Artem Baguinski
Modified: 2005-10-28 10:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Artem Baguinski 2005-10-20 13:59:29 UTC
Please describe the problem:
If I try to use gstreamer to change tags of the mp3 file using id3mux or id3tag
elements I get the file with no tags at all (audio stays).

Steps to reproduce:
(a) to try id3tag - build the examples/retag/retag.c and try something like:

cp a-file-with-tags.mp3 "artist - track.mp3"
./retag "artist - track.mp3"
id3info "artist - track.mp3"

(b) to try with id3mux - build rhythmbox --with-tag-wrinting, it attempts to use
id3mux. get the spare mp3 file with tags, change any tag you want (using File >
Properties) and exit. now - id3info file.mp3

Actual results:
[artm@caracolito test-id3]$ id3info artist\ -\ title.mp3

*** Tag information for artist - title.mp3
*** mp3 info
MPEG1/layer III
Bitrate: 128KBps
Frequency: 44KHz


Expected results:
[artm@caracolito test-id3]$ id3info artist\ -\ title.mp3

*** Tag information for orig.mp3
=== TCOP (Copyright message):
=== TYER (Year): 1998
=== TENC (Encoded by):
=== TIT2 (Title/songname/content description): title
=== WXXX (User defined URL link): ():
=== TPE1 (Lead performer(s)/Soloist(s)): artist
=== TALB (Album/Movie/Show title): On North Sea Jazz Festival
=== TRCK (Track number/Position in set): 4
=== TCON (Content type): (8)
*** mp3 info


Does this happen every time?
yes

Other information:
Comment 1 Artem Baguinski 2005-10-20 14:00:08 UTC
gstreamer 0.8.11
Comment 2 Tim-Philipp Müller 2005-10-27 09:13:49 UTC
id3tags mode of operation depends on its source pad caps. If the source pad caps
are not application/x-id3 it will not add tags, so you need to use a filtered
link there for things to work.

The retag.c example wasn't really up-to-date or at least not working as
intended. I've updated it now. 

2005-10-27  Tim-Philipp Muller  <tim at centricular dot net>

        * examples/retag/retag.c: (main):
          Update retag example so that it actually works (#319316).

See

http://cvs.freedesktop.org/gstreamer/gstreamer/examples/retag/retag.c?r1=1.5&r2=1.5.4.1&only_with_tag=BRANCH-GSTREAMER-0_8

for changes.

Cheers
 -Tim
Comment 3 Artem Baguinski 2005-10-28 09:50:10 UTC
it does set tags but there is something about them. I can see them in the file
but no other program I tried can. I'm not familiar with id3v2 format enough to
spot the problem but if I set the same tags with easytag they look a bit
different. like

tagged with easytag:

00000000  49 44 33 03 00 00 00 00  01 07 54 49 54 32 00 00  |ID3.......TIT2..|
00000010  00 05 00 00 00 66 6f 6f  78 54 50 45 31 00 00 00  |.....fooxTPE1...|
00000020  04 00 00 00 62 61 72 54  41 4c 42 00 00 00 04 00  |....barTALB.....|
00000030  00 00 62 61 7a 54 4c 45  4e 00 00 00 07 40 00 00  |..bazTLEN....@..|
00000040  36 39 35 30 30 30 00 00  00 00 00 00 00 00 00 00  |695000..........|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000090  00 ff fb 92 04 00 00 02  70 1b ca 85 30 c0 00 64  |........p...0..d|
000000a0  47 f9 40 a7 a0 00 0b 86  41 46 18 d5 00 09 9e c8  |G.@.....AF......|
000000b0  28 43 1a a0 01 04 00 80  02 00 00 10 11 0f 2a 76  |(C............*v|

tagged with gstreamer:

00000000  49 44 33 04 00 40 00 00  01 07 00 00 00 0c 01 20  |ID3..@......... |
00000010  05 0e 4b 24 06 61 54 49  54 32 00 00 00 09 00 01  |..K$.aTIT2......|
00000020  00 00 00 05 03 66 6f 6f  78 54 50 45 31 00 00 00  |.....fooxTPE1...|
00000030  08 00 01 00 00 00 04 03  62 61 72 54 41 4c 42 00  |........barTALB.|
00000040  00 00 08 00 01 00 00 00  04 03 62 61 7a 54 43 4f  |..........bazTCO|
00000050  4e 00 00 00 0c 00 01 00  00 00 08 03 55 6e 6b 6e  |N...........Unkn|
00000060  6f 77 6e 54 52 43 4b 00  00 00 06 00 01 00 00 00  |ownTRCK.........|
00000070  02 03 30 54 4c 45 4e 00  00 00 05 20 01 00 00 00  |..0TLEN.... ....|
00000080  01 03 54 50 4f 53 00 00  00 05 00 01 00 00 00 01  |..TPOS..........|
00000090  03 ff fb 92 04 00 00 02  70 1b ca 85 30 c0 00 64  |........p...0..d|
Comment 4 Artem Baguinski 2005-10-28 09:52:29 UTC
oh, after I pasted I noticed that Gstreamer sets 2.4 tags and easytag - 2.3.
that must be it.
Comment 5 Christophe Fergeau 2005-10-28 09:53:01 UTC
Can you see them when using gst-launch -t ? easytag couldn't parse id3v2.4 tags
last time I tried. A tag editor using taglib should be able to display them too
I think.
Comment 6 Artem Baguinski 2005-10-28 10:43:05 UTC
yes!

is it normal that it finds two tags?

can't "id3tag" be told to use id3v2.3 ?

[artm@caracolito test-id3]$ gst-launch -t playbin
uri=file:///pub/audio/test-id3/The\ Who\ -\ My\ Generation.mp3
RUNNING pipeline ...
Waiting for the state change... FOUND TAG      : found by element "playbin0".
          title: My Generation
         artist: The Who
          album: baz
               : baz
          genre: Unknown
               : Unknown
   track number: 0
               : 0
FOUND TAG      : found by element "playbin0".
          title: My Generation
         artist: The Who
          album: baz
               : baz
          genre: Unknown
               : Unknown
   track number: 0
               : 0
FOUND TAG      : found by element "mad0".
          layer: 3
           mode: Stereo
       emphasis: None
        bitrate: 128000