X
Tap here to go to the mobile version of the site.

Support Forum

Album cover in Opus file

Posted

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

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0

More Information

Ralph Daub
  • Locale Leader
158 solutions 1182 answers

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

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

Question owner

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.

Hello Ralph, ZTE Open C with stock FirefoxOS 1.3.0.0 [http://gameclash79.free.fr/output.opus 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.

Question owner

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.

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

Ralph Daub
  • Locale Leader
158 solutions 1182 answers

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

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

Question owner

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>

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 [http://gameclash79.free.fr/opus_issue_with_cover.zip 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>
Ralph Daub
  • Locale Leader
158 solutions 1182 answers

Helpful Reply

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

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

Question owner

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

Not only Firefox OS but the whole opensource world ;-) That's why I use patent-free codecs.
Ralph Daub
  • Locale Leader
158 solutions 1182 answers

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

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
Ralph Daub
  • Locale Leader
158 solutions 1182 answers

Hi zikzak,

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

- Ralph

Hi zikzak, You can follow the development of this issue on the following bug: * [https://bugzilla.mozilla.org/show_bug.cgi?id=1093232 Bug 1093232] - Ralph

Question owner

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 ;)

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 ;)
Ralph Daub
  • Locale Leader
158 solutions 1182 answers

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

Hi Zikzak, Here is a more definite response from one of our engineers, who replied in [https://bugzilla.mozilla.org/show_bug.cgi?id=1093232 Bug 1093232]: * [https://bugzilla.mozilla.org/show_bug.cgi?id=907929 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

Question owner

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.

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.
hub 6 solutions 36 answers

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.

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.