[gstreamer-bugs] [Bug 322154] id3 tag not correctly readed.
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Mon Jan 16 09:47:13 PST 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=322154
GStreamer | gst-plugins | Ver: 0.8.x
Jan Schmidt changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thaytan at mad.scientist.com
------- Comment #5 from Jan Schmidt 2006-01-16 17:47 UTC -------
Claudio, is it possible that you can give me just the ID3 portions of the file,
and not the copyrighted music portion?
I'll need both the ID3v2 and ID3v1 tags. ID3v2 is at the start of the file,
ID3v1 is at the end. You can determine the size of the ID3v2 tag with a command
like:
GST_DEBUG=id3demux:5 gst-launch filesrc location=/path/to/file.mp3 ! id3demux !
fakesink 2>&1 | grep ID3v2
and look for a line like:
DEBUG (0x80509d8 - 0:00:00.430592000) id3demux(20778)
gstid3demux.c(736):gst_id3demux_read_id3v2:<id3demux0> Read ID3v2 tag of size
149
You can then extract that many bytes from the start of the file:
dd if=/path/to/file.mp3 bs=1 count=NUMBER_OF_BYTES of=/path/to/id3v2.tag
Extracting the ID3v1 tag is almost as easy. ID3v1 tags are always 128 bytes and
must always be at the end of the file. So, you want to compute the starting
byte as OFFSET=(size of the file - 128) and then run:
dd if=/path/to/file.mp3 bs=1 skip=OFFSET count=128 of=/path/to/id3v1.tag
Attach those for me, and I can have a look at the genre information.
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the Gstreamer-bugs
mailing list