Bug 75

Summary: Tagging module doesn't fully tag opus files - less information than tagged flac files
Product: abcde Reporter: Erik Koennecke <erik.koennecke>
Component: TaggingAssignee: Steve McIntyre <steve>
Status: CONFIRMED ---    
Severity: normal CC: andrew.david.strong
Priority: Normal    
Version: unspecified   
Hardware: PC   
OS: Linux   

Description Erik Koennecke 2018-02-19 14:48:01 GMT
flac files from multi CD sets (option -W #) get tagged with the DISCNUMBER variable, but opus files not, also other deviations.

excerpt from 

metaflac --except-block-type=PICTURE --list

METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 222
  vendor string: reference libFLAC 1.3.2 20170101
  comments: 8
    comment[0]: ARTIST=Kaled
    comment[1]: ALBUM=Ulli Wengers One Hit Wonder, Volume 5
    comment[2]: TITLE=Aicha
    comment[3]: TRACKNUMBER=101
    comment[4]: TRACKTOTAL=18
    comment[5]: DISCNUMBER=1
    comment[6]: CDDB=ibAhQEFYhdUIOMnlZvToAtMAZ1g-
    comment[7]: COMMENT=CD1

excerpt from opusinfo

 "opus/Various-Ulli_Wengers_One_Hit_Wonder,_Volume_5/101.Kaled-Aicha.opus"...

New logical stream (#1, serial: 5a6232f2): type opus
Encoded with libopus 1.1.2
User comments section follows...
        ALBUM=Ulli Wengers One Hit Wonder, Volume 5
        ARTIST=Kaled
        COMMENT=CD1
        ENCODER=opusenc from opus-tools 0.1.10
        ENCODER_OPTIONS=--vbr --bitrate 128
        TITLE=Aicha
        TRACKNUMBER=01
        METADATA_BLOCK_PICTURE=3|image/jpeg|cover.jpg|500x495x24|<54919 bytes of image data>

Both are Vorbis comments. Tracknumber differs (I actually would prefer the opus variant if DISCNUMBER from "-W 1" would be included), and DISCNUMBER, TRACKTOTAL and CDDB are missing from the opus file.

A command line for opusenc like 

opusenc --artist 'Kaled' --album 'Ulli Wengers One Hit Wonder, Volume 5' --title 'Aicha' --comment TRACKNUMBER='101' --comment TRACKTOTAL='18' --comment DISCNUMBER='1' --comment CDDB='ibAhQEFYhdUIOMnlZvToAtMAZ1g-' --comment COMMENT='CD1' --picture cover.jpg  input.wav output.opus

would give the desired results

        ENCODER=opusenc from opus-tools 0.1.10
        artist=Kaled
        album=Ulli Wengers One Hit Wonder, Volume 5
        title=Aicha
        TRACKNUMBER=101
        TRACKTOTAL=18
        DISCNUMBER=1
        CDDB=ibAhQEFYhdUIOMnlZvToAtMAZ1g-
        COMMENT=CD1
        METADATA_BLOCK_PICTURE=3|image/jpeg||500x495x24|<54919 bytes of image data>

similar to the flac metadata.