Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-3024

WAVEFORMATEXTENSIBLE_CHANNEL_MASK tag don't show up and therefor not cleared

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • None
    • 3.0
    • Tags & Metadata
    • None
    • Linux - Picard version: 3.0.0.dev5 install with pip

      1. The files were purchased via Bandcamp and downloaded as Flac.

      2. Decompressed to wav on my own (flac -d).

      3. Compressed on my own to flac (latest git) (flac -8).

       

      metaflac --show:

      METADATA block #0
        type: 0 (STREAMINFO)
        is last: false
        length: 34
        minimum blocksize: 4096 samples
        maximum blocksize: 4096 samples
        minimum framesize: 646 bytes
        maximum framesize: 19666 bytes
        sample_rate: 44100 Hz
        channels: 2
        bits-per-sample: 24
        total samples: 468766
        MD5 signature: 248b43cdf2c08c591ac11f356f819ced
      METADATA block #1
        type: 4 (VORBIS_COMMENT)
        is last: false
        length: 91
        vendor string: reference libFLAC git-aa414e46 20241229
        comments: 1
          comment[0]: WAVEFORMATEXTENSIBLE_CHANNEL_MASK=0x0003
      METADATA block #2
        type: 1 (PADDING)
        is last: true
        length: 8192

       

      There is one comment as tag

      comment[0]: WAVEFORMATEXTENSIBLE_CHANNEL_MASK=0x0003

      which don't show up on picard and don't get cleared if i process the file through picard.

       

      My guess the art/type/content of comment is unimportant.

      Maybe it's the flac version (latest git) or that there are no seekpoints?

       

      My picard "Tags" settings are only:

      • Write tags to files
      • Clear existing tags
      • Remove ID3 tags from FLAC files

       

      Found this old report but it wasn't helping me.

      https://tickets.metabrainz.org/browse/PICARD-466

          [PICARD-3024] WAVEFORMATEXTENSIBLE_CHANNEL_MASK tag don't show up and therefor not cleared

          We actually might consider adding this tag to the preserved tags list by default, instead of hard coding it, though. See also similar discussion on PICARD-2623

          That way users could configure the removal (on their own risk).

          Philipp Wolfer added a comment - We actually might consider adding this tag to the preserved tags list by default, instead of hard coding it, though. See also similar discussion on PICARD-2623 That way users could configure the removal (on their own risk).

          Philipp Wolfer added a comment - - edited

          WAVEFORMATEXTENSIBLE_CHANNEL_MASK is intitionally not cleared and gets preserved even if "Clear existing tags" is active. The reason is that it essentially not typical metadata but a technical detail of the FLAC file.

          The WAVEFORMATEXTENSIBLE_CHANNEL_MASK defines the channel setup for multi-channel audio, specifically if the audio channels differ from the default. See also https://www.ietf.org/rfc/rfc9639.html#channel-mask

          Clearing this tag is hence direct impact on the audio output, which is not what is expected when clearing metadata.

          I could imagine a feature (or likely a plugin) where Picard would be able to edit the channel configuration of FLAC files. But the general behavior that this field does not get cleared with "Clear existing tags" will not change.

          If you really want to clear this tag, please use a different tool, e.g. the metaflac command.

          EDIT: See PICARD-1326

          Philipp Wolfer added a comment - - edited WAVEFORMATEXTENSIBLE_CHANNEL_MASK is intitionally not cleared and gets preserved even if "Clear existing tags" is active. The reason is that it essentially not typical metadata but a technical detail of the FLAC file. The WAVEFORMATEXTENSIBLE_CHANNEL_MASK defines the channel setup for multi-channel audio, specifically if the audio channels differ from the default. See also https://www.ietf.org/rfc/rfc9639.html#channel-mask Clearing this tag is hence direct impact on the audio output, which is not what is expected when clearing metadata. I could imagine a feature (or likely a plugin) where Picard would be able to edit the channel configuration of FLAC files. But the general behavior that this field does not get cleared with "Clear existing tags" will not change. If you really want to clear this tag, please use a different tool, e.g. the metaflac command. EDIT: See PICARD-1326

          Xoip added a comment -

          Okay guess i have it try this and import the out.flac into picard 3.0.0-dev5 (6307a50fba7366b435226f5a8f4cf8d3d1509d46). The tag WAVEFORMATEXTENSIBLE_CHANNEL_MASK is ignored and keep even if you want "Clear existing tags".

          ffmpeg -f lavfi -i "sine=f=1000:d=2" -ac 2 out.wav
          flac -8 out.wav
          metaflac --remove --block-type=SEEKTABLE,PICTURE,PADDING --dont-use-padding out.flac
          metaflac --set-tag=WAVEFORMATEXTENSIBLE_CHANNEL_MASK=0x0003 out.flac

          Xoip added a comment - Okay guess i have it try this and import the out.flac into picard 3.0.0-dev5 (6307a50fba7366b435226f5a8f4cf8d3d1509d46). The tag WAVEFORMATEXTENSIBLE_CHANNEL_MASK is ignored and keep even if you want "Clear existing tags". ffmpeg -f lavfi -i "sine=f=1000:d=2" -ac 2 out.wav flac -8 out.wav metaflac --remove --block-type=SEEKTABLE,PICTURE,PADDING --dont-use-padding out.flac metaflac --set-tag=WAVEFORMATEXTENSIBLE_CHANNEL_MASK=0x0003 out.flac

          Xoip added a comment - - edited

          Okay this is hard to reproduce i try:

          create wav

          ffmpeg -f lavfi -i "sine=f=1000:d=2" -ac 2 out.wav

          compress to flac (Without --keep-foreign-metadata)*

          flac -8

          remove SEEKTABLE,PICTURE,PADDING

          metaflac --remove --block-type=SEEKTABLE,PICTURE,PADDING --dont-use-padding out.flac

          add tag

          metaflac --set-tag=TEST=TEST out.flac

           

          and picard show it and clean it so no bug here.

          But still don't know what's wrong with my original files.

          Xoip added a comment - - edited Okay this is hard to reproduce i try: create wav ffmpeg -f lavfi -i "sine=f=1000:d=2" -ac 2 out.wav compress to flac (Without --keep-foreign-metadata) * flac -8 remove SEEKTABLE,PICTURE,PADDING metaflac --remove --block-type=SEEKTABLE,PICTURE,PADDING --dont-use-padding out.flac add tag metaflac --set-tag=TEST=TEST out.flac   and picard show it and clean it so no bug here. But still don't know what's wrong with my original files.

            Unassigned Unassigned
            xoip Xoip
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package