Bug 475055

Summary: Kid3 can't find file tag
Product: [Applications] kid3 Reporter: Mark Fraser <mfraz74+kde>
Component: generalAssignee: Urs Fleisch <ufleisch>
Status: RESOLVED WAITINGFORINFO    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.9.x   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mark Fraser 2023-09-30 15:55:25 UTC
SUMMARY
I've viewed an album in mp4 format in Kid3 and it says that some tracks have no tags even though they are visible when using ffmpeg.


STEPS TO REPRODUCE
1. Open directory in Kid3
2. See that some tracks say "No Tag"
3. Run ffmpeg -i and see that the tags are visible.

ffmpeg -i 03Look\ What\ You\ Dun.m4a 
ffmpeg version 6.0-0ubuntu1~22.04.sav3 Copyright (c) 2000-2023 the FFmpeg developers
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55ac5e1ca6c0] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '03Look What You Dun.m4a':
  Metadata:
    major_brand     : M4A 
    minor_version   : 512
    compatible_brands: isomiso2
    album_artist    : Slade
    disc            : 1
    track           : 3/20
    artist          : Slade
    album           : The Very Best Of Slade
    date            : 2005
    genre           : Glam Rock
    title           : Look What You Dun
  Duration: 00:02:58.82, start: 0.000000, bitrate: 147 kb/s
  Stream #0:0[0x1](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 141 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x0]: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 600x589, 90k tbr, 90k tbn (attached pic)


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-84-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 Urs Fleisch 2023-09-30 18:38:33 UTC
Without an example file, it is a bit hard to reproduce. Could you answer the following questions:

- M4A files can be parsed by both TagLib and mp4v2, what metadata plugins are enabled in your settings? Does it happen with both? Note that you have to restart Kid3 after changing plugin settings. If the "Mp4v2Metadata" plugin is not listed, it is because libmp4v2 is not provided by your distro and you could try the binary kid3-3.9.4-Linux.tgz from https://kid3.kde.org/#download.

- Could it be that this is the same situation as in https://invent.kde.org/multimedia/kid3/-/issues/566? Could you compare the output of `file` with those in that report?
Comment 2 Mark Fraser 2023-09-30 21:22:23 UTC
(In reply to Urs Fleisch from comment #1)
> Without an example file, it is a bit hard to reproduce. Could you answer the
> following questions:
> 
> - M4A files can be parsed by both TagLib and mp4v2, what metadata plugins
> are enabled in your settings? Does it happen with both? Note that you have
> to restart Kid3 after changing plugin settings. If the "Mp4v2Metadata"
> plugin is not listed, it is because libmp4v2 is not provided by your distro
> and you could try the binary kid3-3.9.4-Linux.tgz from
> https://kid3.kde.org/#download.

I am using TagLib and Mp4v2Metadata isn't available, but I am using kid3 from the PPA.

> - Could it be that this is the same situation as in
> https://invent.kde.org/multimedia/kid3/-/issues/566? Could you compare the
> output of `file` with those in that report?

It could be as I've been using SoundKreator to rip the CDs, but in this case I found a copy of the file on another drive and that's fine.
I do have some other files that are unreadable, but the smallest is 4.2M.
Comment 3 Urs Fleisch 2024-02-24 06:06:48 UTC
Could you try with Kid3 3.9.5 Linux Binary (not from PPA), which is build with TagLib 2.0, which is a bit more forgiving with M4A files?
Comment 4 Urs Fleisch 2024-09-21 11:35:21 UTC
Could you try with Kid3 3.9.6?
Comment 5 Mark Fraser 2024-09-22 07:04:18 UTC
(In reply to Urs Fleisch from comment #4)
> Could you try with Kid3 3.9.6?

I think the issue was a corrupt m4a file. I came across more files that wouldn't load or even play in certain applications. After processing them in ffmpeg I was able to load them into kid3.