Embedded Art Doesn’t Work for Opus Files

Issue description:

Opus files in the Ogg container don’t show embedded cover art. Adding the FLAC that they are created from shows a song with working cover art.

Reproduction steps:

  1. Convert a song with opusenc
  2. Re-add cover art
  3. Re-scan Symfonium library and view art-less song in library


debug-20230206_191323.zip (19.6 KB)


Additional information:

Viewing the Opus file with opusinfo and the FLAC with metaflac show both having the correct Vorbis comment and ID3v2 APIC ID.

METADATA_BLOCK_PICTURE=3|image/jpeg||500x500x24|<93288 bytes of image data>
METADATA block #3
  type: 6 (PICTURE)
  is last: true
  length: 93330
  type: 3 (Cover (front))
  MIME type: image/jpeg
  width: 500
  height: 500
  depth: 24
  colors: 0 (unindexed)
  data length: 93288
    00000000: FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 48 ......JFIF.....H

@Sniper296 please provide the opus file for reproduction (you can send via PM)

I don’t appear to be able to PM yet, so I’ll attach it and hope the RIAA don’t assasinate us both. :rofl:

Really nothing was here :slight_smile:

Thanks can repro, the parser sees the image but fails at decoding, will try to figure out why and fix.

1 Like