Closed
Bug 907929
Opened 11 years ago
Closed 10 years ago
[music] Support album art in Vorbis comments (ogg files)
Categories
(Firefox OS Graveyard :: Gaia::Music, defect)
Firefox OS Graveyard
Gaia::Music
Tracking
(b2g-v2.0 wontfix, b2g-v2.1 wontfix, b2g-v2.2 fixed)
RESOLVED
FIXED
2.2 S3 (9jan)
People
(Reporter: squib, Assigned: hub)
References
Details
Attachments
(1 file)
Right now, we don't support album art embedded in Vorbis comments, and there's a comment in the metadata parser that expresses some confusion as to how it would be handled. While I'm not certain of the exact implementation, we can see what other media players do and then follow along with that. This should be pretty straightforward once we take a look at some sample files.
Reporter | ||
Comment 2•10 years ago
|
||
I'd recommend working on this a bit later, actually. I haven't had a chance to yet, but I'm going to write up a message about "phase 2" of the metadata improvements. Like with phase 1 (bug 841949), I'd like to land all the improvements in one go so that we don't force people to sit through the music app reparsing all their files. The main things I want for phase 2 are: vorbis album art (this bug), album artist, proper support for multi-value fields (i.e. store them as an array in the DB), genres, and probably ReplayGain support.
I don't think we should try to do this in phase 1, since we should try to land bug 841949 sooner, rather than later.
Reporter | ||
Comment 3•10 years ago
|
||
Sorry, to be clearer: I foresee two times people will have to deal with a full reparse of their music collection: bug 841949, and the "phase 2" bug, which I haven't filed yet.
Assignee | ||
Comment 4•10 years ago
|
||
Bug 1065858 is phase 2.
Assignee | ||
Updated•10 years ago
|
Summary: [music] Support album art in Vorbis comments → [music] Support album art in Vorbis comments (ogg and opus files)
Assignee | ||
Comment 8•10 years ago
|
||
If we can get FLAC support in first, I'll port it over to be used by FLAC too.
Attachment #8534141 -
Flags: feedback?(squibblyflabbetydoo)
Assignee | ||
Updated•10 years ago
|
Attachment #8534141 -
Flags: feedback?(squibblyflabbetydoo) → review?(squibblyflabbetydoo)
Reporter | ||
Comment 10•10 years ago
|
||
Comment on attachment 8534141 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26660
This looks mostly-correct, but I have a few comments on GitHub that should be addressed. It also looks like tests aren't being run, since they're commented out?
Attachment #8534141 -
Flags: review?(squibblyflabbetydoo) → review-
Assignee | ||
Comment 11•10 years ago
|
||
Comment on attachment 8534141 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26660
re-requesting review.
Removed FLAC support as it is broken at the source: the sample I made doesn't conform to VorbisComment. That was the test not run.
Addressed comments in Ogg support. This should be good to go if you feel it is.
Attachment #8534141 -
Flags: review- → review?(squibblyflabbetydoo)
Assignee | ||
Comment 12•10 years ago
|
||
Yep, my sample file actually uses a separate metadata block for the cover art. So it is out of scope for this bug. See bug 1118021
Blocks: 1118021
Assignee | ||
Comment 13•10 years ago
|
||
On the other hand we reuse the binary parsing :-D
Reporter | ||
Comment 14•10 years ago
|
||
Comment on attachment 8534141 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26660
This looks mostly good, but the changes to the test utilities concern me. Currently, the unit tests are testing the case for blobs that have no filename (e.g. things from the open activity). I think this is what we should be testing here, since that's easier to accidentally regress (QA is less likely to check that album art works from an open activity than for the main app).
I plan on testing external artwork for "real" files, but that'll go somewhere else, I think. Look for a few bugs to be filed on improving the unit tests; I've already got some small patches in progress.
There are a couple other minor comments on GitHub too.
Attachment #8534141 -
Flags: review?(squibblyflabbetydoo) → review-
Assignee | ||
Comment 15•10 years ago
|
||
Comment on attachment 8534141 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26660
addressed comments again
Attachment #8534141 -
Flags: review- → review?(squibblyflabbetydoo)
Reporter | ||
Comment 16•10 years ago
|
||
Comment on attachment 8534141 [details]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26660
r=me with two tiny editorial changes. Thanks!
Attachment #8534141 -
Flags: review?(squibblyflabbetydoo) → review+
Assignee | ||
Comment 17•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Summary: [music] Support album art in Vorbis comments (ogg and opus files) → [music] Support album art in Vorbis comments (ogg files)
Assignee | ||
Updated•10 years ago
|
status-b2g-v2.0:
--- → wontfix
status-b2g-v2.1:
--- → wontfix
status-b2g-v2.2:
--- → fixed
Target Milestone: --- → 2.2 S3 (9jan)
Assignee | ||
Comment 18•10 years ago
|
||
Quick note about Opus: I need to find real world sample / use case to determine its status. Will file bugs accordingly.
You need to log in
before you can comment on or make changes to this bug.
Description
•