Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Album cover in Opus file

  • 13 replies
  • 2 have this problem
  • 9 views
  • Last reply by hub

more options

Hello,

As Firefox supports Opus files I use this format for my music. The thing is that embedded cover is not supported properly, in such case the music player will simply not show the file (like an unsupported type). Here is the command line used: opusenc --picture "cover.jpg" input.wav output.wav

It fails even with: opusenc --picture "3|image/jpeg||1000x984x24|cover.jpg" input.wav output.wav

Hello, As Firefox supports Opus files I use this format for my music. The thing is that embedded cover is not supported properly, in such case the music player will simply not show the file (like an unsupported type). Here is the command line used: opusenc --picture "cover.jpg" input.wav output.wav It fails even with: opusenc --picture "3|image/jpeg||1000x984x24|cover.jpg" input.wav output.wav

Chosen solution

Hi Zikzak,

Firefox OS was able to find both files on the Flame v2.1 that I'm currently running, so it seems that the issue with not finding the file due to the embedded cover has been fixed.

However, the album cover and the metadata were not displayed correctly for either file. I'll open up a bug and follow up with you on this thread. =)

Thanks,

- Ralph

Read this answer in context 👍 1

All Replies (13)

more options

Hi zikzak,

What is the model and OS version of your Firefox OS device?

Are you able to share an example of a music file with the album cover embedded? I will test this on more recent versions of Firefox OS, currently under development, to see if this issue has already been resolved. If not, I will open up a bug ticket to track it.

Thanks,

- Ralph

more options

Hello Ralph,

ZTE Open C with stock FirefoxOS 1.3.0.0 Sample is here. Use opusinfo to check its metadata.


Note: I use the same with my videos, format is Theora + Opus with a cover and the video player find them without any issue, although no cover is shown.

more options

Ralph, it seems that the size of the picture is the issue. In the sample above Firefoxos finds the file but doesn't display the cover. I tried on another file and teh cover was a 700x700 pixels image of around 80kB. Firefoxos was not able to find the music file this time. So I reeencoded it with the picture resized to 150x150 pixels and a size of 16kB. This time the file is found, still no cover displayed though.

Modified by zikzak

more options

Hi Zikzak,

I get a 404 error on the link you provided.

If you're able to share the sound files with embedded 700x700 pixels cover art and the one with 150x150 pixels cover art, I'll be able to create a bug for it so that this issue can be further investigated.

- Ralph

more options

I did another test. Definitely it fails when the embeded cover exceed some size. With a small jpeg the file is found by firefoxos' music player. I tried with a png and this time the file is not found. Can you access this archive?

This one is missing: METADATA_BLOCK_PICTURE=3|image/png||320x320x24|<156249 bytes of image data>

This one is found but no cover displayed: METADATA_BLOCK_PICTURE=3|image/jpeg||320x320x24|<16488 bytes of image data>

more options

Hi Zikzak,

Thank you for your help investigating this issue, as well as providing sample files! I was able to download the zip from the address you linked.

I don't have a USB cord with me, but I'll test this out on newer versions of Firefox OS, then file a bug, and update you on the status.

Thank you for your interest in Firefox OS and the Open Web! =)

- Ralph

more options

Not only Firefox OS but the whole opensource world ;-) That's why I use patent-free codecs.

more options

Chosen Solution

Hi Zikzak,

Firefox OS was able to find both files on the Flame v2.1 that I'm currently running, so it seems that the issue with not finding the file due to the embedded cover has been fixed.

However, the album cover and the metadata were not displayed correctly for either file. I'll open up a bug and follow up with you on this thread. =)

Thanks,

- Ralph

more options

Hi zikzak,

You can follow the development of this issue on the following bug:

- Ralph

more options

Fantastic news! Let's hope some easy update for the ZTE Open C (or even an official one from ZTE) to FirefoxOS 2.1 will happen. BTW, if the cover issue is fixed I hope that this time the specs of the OS will indicate support of Opus format ;)

more options

Hi Zikzak,

Here is a more definite response from one of our engineers, who replied in Bug 1093232:

  • Bug 907929 already exists for Ogg Vorbis art support.
  • Metadata should be fine on master (Firefox OS version 2.2).
  • We don't really support Opus in Music.

- Ralph

more options

I'm not surprised that it can be already in Vorbis. I haven't tried as with FirefoxOS I tend to early-adopt geeky softwares. That's why I use Opus instead of Vorbis (Flac is not supported by firefox).

I agree on the point they do not really support it, nowhere it is said that FirefoxOS does. But... Firefox does so I expected a nice surprise and I was glad to put aside my Android smartphone to listen to my music.

I'll wait, I'm sure the issue will be sorted out for Vorbis and so Opus will benefit from it.

more options

Opus is supported for things like WebRTC. Supporting Opus is mandated by the standard.

Opus as a music playback format is a different matter. Opus metadata aren't the same as in Ogg/Vorbis either.

For Flac, see bug 1039639 - ie not yet.