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 642205 - qtdemux: extract MusicBrainz tags
qtdemux: extract MusicBrainz tags
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.26
Other FreeBSD
: Normal enhancement
: 0.10.29
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-13 02:08 UTC by Heath Nielson
Modified: 2011-03-08 15:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix problem (1.28 KB, patch)
2011-02-13 02:08 UTC, Heath Nielson
committed Details | Review

Description Heath Nielson 2011-02-13 02:08:12 UTC
Created attachment 180755 [details] [review]
Patch to fix problem

Any AAC encoded files which have been tagged with MusicBrainz's Picard application is not recognized by qtdemux.  These tags (especially the album id) are helpful for rhythmbox to automatically download cover art.  Attached is a patch which fixes the problem.
Comment 1 Tim-Philipp Müller 2011-02-13 11:50:20 UTC
Any chance you could provide a sample file? (Or the first 500kB of a sample file?)
Comment 2 Heath Nielson 2011-02-13 19:45:28 UTC
(In reply to comment #1)
> Any chance you could provide a sample file? (Or the first 500kB of a sample
> file?)

I could...but they all are under copyright.  Is theree a way I could make it available without running afoul of some law?
Comment 3 Tim-Philipp Müller 2011-02-13 20:41:13 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Any chance you could provide a sample file? (Or the first 500kB of a sample
> > file?)
> 
> I could...but they all are under copyright.  Is theree a way I could make it
> available without running afoul of some law?

Well, I'm just interested in the headers, not the audio, so you could try:

 $ head --bytes=50k foo.m4a > head.m4a

or so and play with the value to see how small you can make it. A second of audio data should be fine, I doubt that violates any copyright laws. This command line should still work:

 $ gst-launch-0.10 -t filesrc location=head.m4a ! qtdemux ! fakesink
Comment 4 Tim-Philipp Müller 2011-02-13 20:49:17 UTC
Or maybe you could tag one of the files here (which are Creative Commons licensed) with picard: http://gstreamer.freedesktop.org/media/dlna/strict/audio/
Comment 5 Heath Nielson 2011-02-14 05:47:16 UTC
(In reply to comment #4)
> Or maybe you could tag one of the files here (which are Creative Commons
> licensed) with picard:
> http://gstreamer.freedesktop.org/media/dlna/strict/audio/

OK I initially tried just truncating the files as suggested above but it appears the tags are located at the end of the file and gst-inspect couldn't parse the file until I had included almost the entire thing.

I was able to tag one of the files with the creative commons license you suggested.  Since they are over 1MB I can't attach it to this issue but I am making it available here: 

http://twix.dnsalias.net/~heath/NiN_Ghosts_I_9.m4a

Let me know if you have any problems downloading it.
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2011-02-14 08:27:07 UTC
Works perfectly fine for me. gst-discoverer sees the tags, totem and rhythmbox do too. What are the gstreamer versions you are using and on which distribution? If you are on ubuntu, could you try the GStreamer PPA? 
https://launchpad.net/~gstreamer-developers/+archive/ppa
Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2011-02-14 08:29:07 UTC
Wait, indeed the IDs where not part (that cannot be seen from the UI). Also the track had album art already so I did not noticed issues with getting the album art. Under that light, the patch makes sense.
Comment 8 Tim-Philipp Müller 2011-02-14 09:22:43 UTC
Thanks, pushed (adapted patch a little):

commit aa7e638d8ede9315c82d03a6fa1d12cd09ab5f2f
Author: Heath Nielson <heathn@gmail.com>
Date:   Mon Feb 14 00:49:00 2011 +0000

    qtdemux: extract MusicBrainz tags
    
    Extract MusicBrainz tags added by MusicBrainz's Picard
    tagger application. These tags (esp. the album id) are
    helpful for rhythmbox et.al. to automatically downloads
    cover art.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=642205

commit 6f0a4fa85bd1983113050d397288ca4419e392fb
Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Mon Feb 14 00:38:45 2011 +0000

    qtdemux: refactor iTunes tag parsing a bit