Summary: | Ability to preserve song metadata after edit | ||
---|---|---|---|
Product: | [Applications] kwave | Reporter: | witchhunter <witchhunterpro> |
Component: | general | Assignee: | Thomas Eschenbacher <Thomas.Eschenbacher> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | mrp |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | f6509281bff83e586b3c228f0a76070414085685 | Version Fixed In: | |
Sentry Crash Report: |
Description
witchhunter
2024-11-07 17:49:02 UTC
I've been digging into this and I think I understand what's happening, but haven't decided how best to fix it. This needs some more specific information, I cannot reproduce/confirm that. For example the "title" and "artist" are preserved. Front cover pics and lyrics... yes, that might be. In order to provide support for this kind of meta data, I need the name of ID3 tag, an idea of how this should be mapped to some internal meta data identifier that already exist, or a new mapping. And in the best case some field in the file info dialog. For realizing support for this, we need several steps: 1. create a new "FileProperty" for generic "application specific" data 2. make an entry in Kwave::FileInfo::PropertyTypesMap and make sure that this type of meta data does not produce warning messages when saving under a different file format 3. add another FileProperty with the original mime type from which the meta data was read in, so that it can be identified as relevant when saving (internal tag). 4. in the DecoderMP3: set the "original mime type" + encode all "unsupported" ID3 tags into an application specific container 5. in the EncoderMP3: check if the current mime type is identical (or compatible to) the original mime type + encode all application specific meta data into a ID3 tag After that we should check other file formats too, Ogg/Vorbis and FLAC may need the same treatment. should work now, see https://invent.kde.org/multimedia/kwave/-/issues/7 should work now, at least for the use case where you import a MP3 file and save it again as MP3. Support for more complex use cases like loading from MP3, saving into some other format, opening that file and saving as MP3 are still to do. |