Skip to content

Improved metadata handling in Audacity #1464

Description

@petersampsonaudacity

Metadata support is known to be patchy in Audacity.

Some (or all) of these may be fixed in future releases, but there aren't any concrete plans as of now.

Original report

Discussed in #947

Originally posted by petersampsonaudacity June 1, 2021
Audacity really needs some attention paying to its handling of metadata (inbound and outbound). Metadata support is known to be patchy in Audacity.

  1. there are several (currently 11 at time of writing - now 13) unfixed metadata bugs listed in the Bugzilla bugtracker:
    https://bugzilla.audacityteam.org/buglist.cgi?quicksearch=metadata&list_id=28314

This is a prime example:
Bug 701 - Metadata: Embedded album art and lyrics metadata discarded
https://bugzilla.audacityteam.org/show_bug.cgi?id=701
This bug has lain untended/unfixed for seven and a half years

  1. There is also a discussion proposal from 2018 in our Wiki: https://wiki.audacityteam.org/wiki/Proposal_Metadata_Options

  2. We often get posts on the Forum about poor handling of metadata - this latest example from today is the one that triggered me to write this up:
    https://forum.audacityteam.org/viewtopic.php?f=50&t=118012

Part of the problem is there is no universal standard for all metadata fields. Audacity does handle consistently the fields that are there by default in the metadata editor - but additional fields are not always handled properly/consistently - for example album art and lyrics are just discarded as stated above in Bug 701.

Activity

  1. added
    AU3-bug
    Design / UX
    on Aug 12, 2021
  2. petersampsonaudacity commented on Aug 19, 2021

    @petersampsonaudacity
    Author

    Today the Album art metadata bit me - and it really is very annoying, I can fully understand why users get upset about this one:
    Bug 701 - Metadata: Embedded album art and lyrics metadata discarded
    https://bugzilla.audacityteam.org/show_bug.cgi?id=701

    I have several audio files lying on my desktop for QA testing use, they all have nice album art which shows as the icon on the desktop for rapid identification and use.

    One recent QA test involved

    1. Import an AAC (with album art metadata) file into Audacity
    2. process it as part of QA testing
    3. Export it back out to same location (this was the actual QA test after a Forum complaint)
    4. Observe: the nice album art is lost - just abandoned and thrown away by Audacity

    image

  3. petersampsonaudacity commented on Aug 19, 2021

    @petersampsonaudacity
    Author

    I have marked this as a High Priority bug as some of those metadata bugs (in particular the discarding of a user's carefully added album art) is a data loss - and we have always regarded data loss as serious issue.

  4. changed the title [-]Improved metadata handling in Auacity[/-] [+]Improved metadata handling in Audacity[/+] on Aug 19, 2021
  5. petersampsonaudacity commented on Aug 19, 2021

    @petersampsonaudacity
    Author

    I have transferred the major metadata bugs and enhancements from Bugzilla (and closed the Bugzilla entries - leaving links from the new GitHub entries)

    1. Metadata: Embedded album art and lyrics metadata discarded Metadata: Embedded album art and lyrics metadata discarded #1505
    2. Metadata: custom entries are ignored by Audacity on export Metadata: custom entries are ignored by Audacity on export #1506
    3. Metadata: Export Multiple substitutes default metadata for user-entered metadata Metadata: Export Multiple substitutes default metadata for user-entered metadata #1507
    4. Enh: Metadata - FLAC export lacks seekpoints and metadata padding Enh: Metadata - FLAC export lacks seekpoints and metadata padding #1508
  6. added
    Enhancement Request
    medium feature
    Planning
    and removed
    Design / UX
    P2
    on Jul 7, 2022
  7. 1 remaining item

  8. moved this from Undecided to Accepted in Feature Requestson Jul 7, 2022
  9. moved this from Accepted to timeline: 4.x in Feature Requestson Nov 28, 2022
  10. dougbreaux commented on Feb 5, 2023

    @dougbreaux

    So the behavior where I use ffmpeg to add album_artist and can see it there in the Audacity export dialog under "Album Artist", but it's actually missing from the exported mp3, this is due to these issues in Audacity, correct? I was looking for what I'm doing wrong. (Also confirmed with mp3tag before and after, BTW.)

  11. Zeit08 commented on Jan 4, 2024

    @Zeit08

    Are there any news about the labels->chapters feature #678? It would be great for podcasters!

  12. Lycanthrope-R commented on Jan 6, 2024

    @Lycanthrope-R

    Just thought I'd throw in here that as of 3.4.2, Audacity seems to be reading "Album Artist" metadata as "Album Title" metadata for imported M4A files, overwriting the actual Album name. It's not great.

  13. sebastienlebreton commented on Apr 24, 2024

    @sebastienlebreton

    Hi, I initially reported issues with date/comment and other fields being unexpectedly duplicated/modified on audacity forums, which I believe was logged in issue 1620 here.

    As of 3.5.0/3.5.1 those are still not fixed and I was wondering if there is a chance that it's gonna be fixed anytime soon as it's pretty inconvenient to be forced to fix tags every time I edit an mp3 file.

    I have commented my original post on audacity forums (https://forum.audacityteam.org/t/multiple-id3-tags-issue-when-exporting-to-mp3/60786/11) and figured I should up this issue too.

    Thanks !

  14. jpgreen3 commented on Jun 8, 2024

    @jpgreen3

    I originally posted this under #5825, but I think it more appropriately belongs here.

    Below is a description of my observations using Audacity 3.5.1 commit d8f4c2 of April 24, 2024, to write ID Tags during label-based export of audio.** It has been many years since I have done any software development, and I'm certainly not aware of the intended architecture for audacity and how that may interact with metadata management. However, from where I sit, I think that metadata management should behave differently from the observations at the bottom of this post. Just below, I've listed suggested desirable behavior for metadata management. This is from a perspective of using Audacity to record LP music albums, and then splitting the recording into tracks with correct ID Tags in each output file.

    A. There needs to be a means to enter ID Tag data that will be the default value for every label / track exported. This seems to work fine by entering the data under the 'entire project' scope. The scope of these defaults should be limited to the current project. I don't know whether data entered in the 'entire project' context should automatically be the default value for all tracks / labels, or whether there are use cases where selecting 'set default' should be required. Likewise, I don't see a need for values to be the default for subsequent projects as well, but perhaps there are cases this is so. Save / Load template would work for these cases.

    B. In the 'multiple files' context, the ability to enter track-specific tag values is currently supported, and is a valuable capability. In previous versions of Audacity, metadata values for each exported file were displayed during export with an ability to modify fields before that file was exported. This was a useful mode of updating specific track metadata, and - perhaps by option - should be reinstated. Implementing item E and encouraging that mode of metadata entry and managment would obviate the need for this.

    C. It seems that custom metadata tags are supported, and can be created with track-specific values, but they are not exported with the audio file, and values assigned to them are not saved with the project. (I created a metadata tag named Songwriter, that sometimes has a null value. This tag did not appear in exported files.)

    D. 'Save Project' must always save the complete set of metadata with the project, both that created under the 'entire project' scope, and that created under the label / track 'multiple files' scope. Data for each scope should be saved separately, allowing individual track / label data to overwrite a value entered at the 'entire project' scope at export time. Metadata should be considered an integral part of each project, including custom IDTags and associated data.

    E. The 'Edit' - 'Metadata Editor' entry into metadata management should support complete management of metadata. I've seen a metadata interface with arrows at the top to move the focus between individual files within the context, and an 'all files' entry that shows data that is identical across the context, and the word "different" when some files have unique data for that tag. It seems like this would be a useful, user-friendly interface for the 'Edit' - 'Metadata Editor'. Full support to add custom IDTags from this interface would be needed.

    F. Exiting Audacity via 'file' - 'exit' and the upper - right corner X produces different results. Using the 'X' only closes the running instance of audacity that is the focus at the moment, which seems to me the correct behavior - though I'm not sure closing this way invokes the 'compacting' routine when appropriate. The 'file' - 'exit' mode causes all currently running instances of Audacity to close, which to me is an unexpected and undesirable action. Both modes of exiting the program should close only the current instance, invoking the 'compacting' routine when appropriate, and prompting the user to save the project - or not - before close if unsaved edits exist.

    OBSERVATIONS DURING USE OF AUDACITY V 3.5.1

    1. Export Audio - Entire Project - Edit Metadata - entered tag fields less track title and number - close (no save template or set default) - Pasted target directory into output field. Hit 'enter' which caused export entire project to begin. canceled the export, as this was undesirable. Output directory was created. Deleted partial 'entire project' file, Selected 'multiple files', export, All exported files had metadata from the previously processed and exported album, not the data entered for this 'entire project'.

    2. Export Audio - Selected Entire Project - metadata from previous step still there. Clicked 'Set Default'. - 'OK'. - Multiple files. - Export. all files exported to the proper directory with correct metadata, except thecustom IDTag Songwriter - added in Audacity - was not included in the metadata for each file.

    3. Did a Save Project - exit. Opened Audacity and loaded the recently closed project. Export Audio and multiple files - edit metadata. Correct metadata shows for each label.

    4. Did a File - Exit. "Compacting" message shows, and then ALL! open instances of Audacity closed. This shouldn't happen!! only the instance where the File-Exit was issued should close, as is the case when an instance is closed by selecting X in the upper-right corner.

    5. Opened another partially completed Audacity project, and finished editing labels and their position. Saved project. Opened 'Export Audio' - defaulted to 'multiple files'. Pasted output directory to be created into Folder field, hit enter to save it - export of multiple files started, which I canceled. ID tags in the exported files included the track# and track labels from the current project. Other IDTags held data from the previously processed project, due to the prior 'set default' at 'entire project'. I don't think that hitting enter on the 'folder' field should be the equivalent of clicking the 'export' button - export at this time is an unwelcome action, as is using IDTag data for a prior project.

    6. In 'Export Audio', selected 'Entire Project' and entered the IDTags that are the same for all tracks of the project. Did not hit 'Set Default'. Closed window with OK. In Export Audio window. selected 'Multiple Files' and 'Export'. The files were created in the correct designated output folder. However, the ID Tag content for the tags that should have the same content for all labels / tracks did not contain the information entered into the metadata with Entire Project selected - instead it contained the content from the previous project where 'set default' was selected. This is not desirable behavior. Any metadata entered within the 'Entire Project' scope should become the default tag content for the project, and automatically propogate to the tags in every export for that project. Alternatively, Clicking 'set default' could make that tag content the default for the project - but not beyond, having no effect on other projects. In what I believe is the relatively rare case that the same tag content would be desired between multiple projects, the 'Save Template' function would accomplish that. I corrected the IDTags for this project by going back to 'entire project', edited metadata - the previously entered correct content was still there so I clicked 'set default'; and then used the export multiple function. The exported files had the desired metadata. I saved the project and used the menu exit.

    7. As a test, I reloaded the project that was the subject of items 1-3 above, and checked the metadata that had been saved with the project. The metadata displayed when 'entire project' was selected was correct for that project. However, when displaying 'multiple files' - 'edit metadata' the metadata displayed was for recently closed project described in 5-6, which had 12 tracks. The project the subject of items 1-3 had only 8 tracks, and the 'multiple files' - 'edit metadata' showed 8 tracks of metadata, all for the wrong project.

  15. petersampsonaudacity commented on Jun 8, 2024

    @petersampsonaudacity
    Author

    Exiting Audacity via 'file' - 'exit' and the upper - right corner X produces different results. Using the 'X' only closes the running instance of audacity that is the focus at the moment, which seems to me the correct behavior - though I'm not sure closing this way invokes the 'compacting' routine when appropriate. The 'file' - 'exit' mode causes all currently running instances of Audacity to close, which to me is an unexpected and undesirable action. Both modes of exiting the program should close only the current instance, invoking the 'compacting' routine when appropriate, and prompting the user to save the project - or not - before close if unsaved edits exist.

    When you run Audacity there is actually only a single "instance" of Audacity running. You may have several projects running but they are all managed by the same single instance of Audacity. So what you are seeing is the correct behavior:

    a) when you use File Exit, the single instance of Audacity is closed and thus all the open projects get closed

    b) when you use File > Close (or use the X in a project's corner then only that project is closed and any other open projects will remain open

    c) If you use File > Close with a single project open then that project will close, but Audacity will remain open with an empty project.

    This page in the manual describes the behaviors:
    https://manual.audacityteam.org/man/file_menu.html

  16. jpgreen3 commented on Jun 8, 2024

    @jpgreen3
  17. petersampsonaudacity commented on Jun 9, 2024

    @petersampsonaudacity
    Author

    Hi John,

    it's only ever easy when you know how ... ;-)

    But this has made me thing that Close and Exit would be better together in the same place in the File menu - when I get some time I'll write up a short Enhancement Request for this.

    UPDATE

    Logged as #6644

  18. petersampsonaudacity commented on Jun 9, 2024

    @petersampsonaudacity
    Author

    A. There needs to be a means to enter ID Tag data that will be the default value for every label / track exported.

    That is what the Set Default button in the Metadata Tags dialog is supposed to do
    image
    I can't remember if this is still one of the things that is buggy and doesn't work as intended.

    And note that you should be able to save and Load custom metadata templates.

    See this page in the audacity manual: https://manual.audacityteam.org/man/metadata_editor.html

    When I digitized my entire LP and tape collection some years ago with Audacity I never bothered with metadata in Audacity, instead I used iTunes to manage metadata.

  19. petersampsonaudacity commented on Jun 9, 2024

    @petersampsonaudacity
    Author

    @jpgreen3

    your C and D are both known and logged bugs that as yet remain unfixed.

    The most egregious for me is the fact that if I import an MP3 (or AAC) with an artwork image, when I re-export this file after editing (or even just QA testing) Audacity discards and loses the artwork.

  20. jpgreen3 commented on Jun 9, 2024

    @jpgreen3
  21. bll123 commented on Oct 4, 2025

    @bll123

    Having worked with reading and writing metadata in my software application, please consider the following rule:

    All metadata, known, unknown and custom must be preserved.

    Many audio tagging libraries will lose tags that are not in their "known" list of tags, and custom tags are shown no consideration. It is simply better to treat all tags that are read in as valid, and write them out again. I had to write my own mp4 tagging library, because I could not find an existing library that worked properly.

    When using the libid3tag library (this is from when I last looked, which was quite a long time ago), Audacity passed the TXXX custom audio tag arguments in reversed order to libid3tag, resulting in loss of custom tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AU3-bugEnhancement RequestMetadataPlanningmedium feature

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions