AIMP Forum

AIMP for Android => Ошибки и замечания / Bugs => Обработано / Processed => Topic started by: Drag0nFly on March 19, 2023, 07:35:27

Title: [x] [1246] AIMP picks incorrect album title for certain Ogg Vorbis files
Post by: Drag0nFly on March 19, 2023, 07:35:27
Hi Artem and others-

First of all thanks for a fantastic player; I'm using it daily.

I have however come across an extremely weird bug (or behavior, if you will) in the most recent AIMP version on Android (v3.30.1246 (01-Feb-2023) relating to how AIMP displays title and track information for one-track ogg files (btw. most other files of the same one-track ogg type do display correctly, converted the same way from .flac with FFmpeg)

Since I have spent a number of hours trying to "fix" metadata for the problematic ogg file which does not display correctly (AIMP is using *the first song track title* as the album/top-level title - instead of the *main TITLE or ALBUM tags* in the CUESHEET - or the first TITLE occurence in the CUESHEET), I thought it best to send a report here. (I cannot see what is wrong, and it could be something obvious if another person takes a look at it)

I am including mediainfo output for the file below, and a similar file which displays correctly. I have also re-tagged the file several times, in order to add an ALBUM and a TITLE ("track name" the same as the album title). Before doing so, it was similar to the metadata for the ogg file at the bottom (which works). It should not be a UTF-8 issue either, as the cuesheet in question does not have any encoding requiring this (i.e, dos2unix or :set fileencoding=utf8 in vi leaves it as ASCII)

When scraping this file, AIMP reports the album (i.e, top level, before the individual tracks) as "The Man Machine [Warszawa Sala Kongresowa - 27-May-2004]", instead of the album/main title ("Minimum-Maximum").

Since I also thought it might be related to the square brackets used, these were also removed/changed to "(" - and the error followed (album was now "The Man Machine (Warszawa Sala Kongresowa - 27-May-2004)" etc.

Mediainfo output for the file in question:

General
Complete name                            : Kraftwerk - Minimum-Maximum [24bit-96kHz].ogg
Format                                   : Ogg
File size                                : 269 MiB
Duration                                 : 2 h 0 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 311 kb/s
Album                                    : Minimum-Maximum
Performer                                : Kraftwerk
Label                                    : EMI
Genre                                    : Electronic
Recorded date                            : 2006
Writing application                      : Lavc59.37.100 libvorbis
CUESHEET                                 :
REM GENRE Electronic
REM DATE 2006
LABEL EMI
CATALOGNUMBER "334 996 2
0946 3 34996 2 1"
PERFORMER Kraftwerk
TITLE "Minimum-Maximum"
FILE "Kraftwerk - Minimum-Maximum [24bit-96kHz SACD].flac"
  TRACK 01 AUDIO
    TITLE "The Man Machine [Warszawa Sala Kongresowa - 27-May-2004]"
    INDEX 01 0:00:00
  TRACK 02 AUDIO
    TITLE "Planet Of Visions [Ljubljana Krizanke - 24-May-2004]"
    INDEX 01 7:57:18
  TRACK 03 AUDIO
    TITLE "Tour De France Etape 1 [Riga Olimpiska Hall - 29-May-2004]"
    INDEX 01 12:43:00
  TRACK 04 AUDIO
    TITLE "Chrono [Riga Olimpiska Hall - 29-May-2004]"
    INDEX 01 17:05:23
  TRACK 05 AUDIO
    TITLE "Tour De France Etape 2 [Riga Olimpiska Hall - 29-May-2004]"
    INDEX 01 18:34:37
  TRACK 06 AUDIO
    TITLE "Vitamin [Moskwa Lushniki - 03-Jun-2004]"
    INDEX 01 23:23:34
  TRACK 07 AUDIO
    TITLE "Tour De France [Paris Le Grand Rex - 22-Mar-2004]"
    INDEX 01 30:05:16
  TRACK 08 AUDIO
    TITLE "Autobahn [Berlin Tempodrom - 25-Mar-2004]"
    INDEX 01 36:23:31
  TRACK 09 AUDIO
    TITLE "The Model [London Brixton Academy - 20-Mar-2004]"
    INDEX 01 45:14:72
  TRACK 10 AUDIO
    TITLE "Neon Lights [London Royal Festival Hall - 18-Mar-2004]"
    INDEX 01 48:56:57
  TRACK 11 AUDIO
    TITLE "Radioactivity [Warszawa Sala Kongresowa - 27-May-2004]"
    INDEX 01 54:55:24
  TRACK 12 AUDIO
    TITLE "Trans Europe Express [Budapest Sportarena - 25-May-2004]"
    INDEX 01 62:39:12
  TRACK 13 AUDIO
    TITLE "Metal On Metal [Budapest Sportarena - 25-May-2004]"
    INDEX 01 67:40:65
  TRACK 14 AUDIO
    TITLE "Numbers [San Francisco The Warfield - 28-Apr-2004]"
    INDEX 01 72:09:40
  TRACK 15 AUDIO
    TITLE "Computer World [Moskwa Lushniki - 03-Jun-2004]"
    INDEX 01 76:37:13
  TRACK 16 AUDIO
    TITLE "Home Computer [Warszawa Sala Kongresowa - 27-May-2004]"
    INDEX 01 79:32:57
  TRACK 17 AUDIO
    TITLE "Pocket Calculator [Moskwa Lushniki - 03-Jun-2004]"
    INDEX 01 85:27:68
  TRACK 18 AUDIO
    TITLE "Dentaku [Tokyo Shibuya AX - 04-Mar-2004]"
    INDEX 01 88:25:13
  TRACK 19 AUDIO
    TITLE "The Robots [Moskwa Lushniki - 03-Jun-2004]"
    INDEX 01 91:40:70
  TRACK 20 AUDIO
    TITLE "Elektro Kardiogramm [Tallinn Exhibition Hall - 30-May-2004]"
    INDEX 01 99:04:51
  TRACK 21 AUDIO
    TITLE "Aero Dynamic [Riga Olimpiska Hall - 29-May-2004]"
    INDEX 01 103:45:65
  TRACK 22 AUDIO
    TITLE "Music Non Stop [Moskwa Lushniki - 03-Jun-2004]"
    INDEX 01 110:59:65
CATALOGNUMBER                            : 334 996 2 / 0946 3 34996 2 1



Mediainfo for a file which displays ok (using the TITLE in the CUESHEET block - this is how the file above was formatted before trying to fix, i.e, no main TITLE or ALBUM tracks, just those in the CUESHEET block):

General
Complete name                            : Grains of Sound - Rays of Life, Volume 1 - Down.ogg
Format                                   : Ogg
File size                                : 96.6 MiB
Duration                                 : 55 min 52 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 242 kb/s
Writing application                      : Lavc59.18.100 libvorbis
CUESHEET                                 : REM GENRE Electronic / REM DATE 2007 / PERFORMER "Grains of Sound" / TITLE "Rays of Life, Volume 1: Down" / FILE "Grains of Sound - Rays of Life, Volume 1: Down.flac" WAVE /   TRACK 01 AUDIO /     TITLE "Opiate" /     INDEX 01 00:00:00 /   TRACK 02 AUDIO /     TITLE "Ultraviolet" /     INDEX 01 04:20:00 /   TRACK 03 AUDIO /     TITLE "Botanical Curiosities" /     INDEX 01 11:25:64 /   TRACK 04 AUDIO /     TITLE "Surrounder (club mix)" /     INDEX 01 17:46:56 /   TRACK 05 AUDIO /     TITLE "Siamese Twilight" /     INDEX 01 23:22:56 /   TRACK 06 AUDIO /     TITLE "I Am the Pieces. You Are the Puzzle" /     INDEX 01 30:17:71 /   TRACK 07 AUDIO /     TITLE "Caesura" /     INDEX 01 37:05:71 /   TRACK 08 AUDIO /     TITLE "Eden Awaits" /     INDEX 01 41:56:50 /   TRACK 09 AUDIO /     TITLE "Madaul" /     INDEX 01 47:30:43 /   TRACK 10 AUDIO /     TITLE "Floating Through Thought" /     INDEX 01 51:10:00


I would be very thankful for any insights on what is going on here, so that either AIMP can handle this type of file, or I can modify the metadata accordingly if there is something wrong I am not seeing.

Reporting it initially as a bug, as I cannot see any issues with the file, and since the metadata displays ok in other players such as DeadBeef and VOX (I can obviously provide the file itself somewhere so that this can be tested directly)

Thanks.
Title: Re: [1246] AIMP picks incorrect album title for certain Ogg Vorbis files
Post by: Artem on March 19, 2023, 15:07:33
Your CUE file is not correct:

Code: [Select]
FILE "Kraftwerk - Minimum-Maximum [24bit-96kHz SACD].flac"

must be:

Code: [Select]
FILE "Kraftwerk - Minimum-Maximum [24bit-96kHz SACD].flac" FLAC

Player expects file format token, but got the TRACK token and skip that, so what why it takes title from first track as album
Title: Re: [x] [1246] AIMP picks incorrect album title for certain Ogg Vorbis files
Post by: Drag0nFly on March 20, 2023, 02:53:15
Ah - I had a feeling it must be something trivial, which affects the way AIMP parses the cuesheet & tag information.

I will test this asap and report back!
Title: Re: [x] [1246] AIMP picks incorrect album title for certain Ogg Vorbis files
Post by: Drag0nFly on March 20, 2023, 03:06:23
Yep - it now displays correctly after adding WAVE after "Filename.flac" 8) (I use WAVE as abcde picks this by default when ripping CDs, doesn't seem to have a functional impact on this or other players)

Spasibo! - and for the quick response!

I noticed a separate issue with the album art disappearing in the lock-screen on Android though (re-appears when selecting 'Home' in AIMP and locking the phone again - but it gets reset once the next track starts playing. Not sure if this is known, but I can open a separate case for it). Might only affect one-track (ogg) files.

Thanks again.
Title: Re: [x] [1246] AIMP picks incorrect album title for certain Ogg Vorbis files
Post by: Artem on March 20, 2023, 08:02:09
Spasibo! - and for the quick response!

Anyway, I've improved my code. Now app will handle this case correctly.
Title: Re: [x] [1246] AIMP picks incorrect album title for certain Ogg Vorbis files
Post by: Drag0nFly on March 20, 2023, 08:07:12
Excellent. AIMP getting even better. :)

(I'll probably embed album covers for the other issue, which I suspect is because the cover-art is downloaded again for each track for single-file albums (as the cover would be on each file for individual tracks... But this is just a guess)
Title: Re: [x] [1246] AIMP picks incorrect album title for certain Ogg Vorbis files
Post by: Diman779 on May 11, 2023, 23:19:27
Excellent. AIMP getting even better. :)

(I'll probably embed album covers for the other issue, which I suspect is because the cover-art is downloaded again for each track for single-file albums (as the cover would be on each file for individual tracks... But this is just a guess)
I wonder what will happen if Artyom is not (