Update: I found the problem: file permissions. The missing files where -rw------- instead of -rw-r--r--.
I have all my music on a WD MyCloud, which is added in LibreElec as a NFS drive.
Several of my music albums are missing. For example, for Hank Mobley Kodi only shows 8 albums while I have 14, which are all in the same directory (artist/album). All the files are rips form my CD's, mostly in Ogg Vorbis.
It seems for some reason Kodi does not recognize some of the vorbis files as music files. When I browse through the files section to the directory of a 'missing' album, I can see the files, but can not start playing them.
The files have the same permissions and also very similar metadata:
This is an example which is not recognized:
$ exiftool 2\ -\ Justine.ogg
ExifTool Version Number : 10.10
File Name : 2 - Justine.ogg
Directory : .
File Size : 20 MB
File Modification Date/Time : 2010:08:11 01:45:12+02:00
File Access Date/Time : 2016:09:23 21:56:17+02:00
File Inode Change Date/Time : 2016:08:08 16:27:15+02:00
File Permissions : rw-------
File Type : OGG
File Type Extension : ogg
MIME Type : audio/x-ogg
Vorbis Version : 0
Audio Channels : 2
Sample Rate : 44100
Nominal Bitrate : 224 kbps
Vendor : Xiph.Org libVorbis I 20050304
Genre : Jazz
Album : Thinking Of Home
Artist : Hank Mobley
Track Number : 2
Title : Justine
Date : 1970
Albumartist : Hank Mobley
Duration : 0:12:39 (approx)
Display More
While this one is recognized:
$ exiftool 02\ -\ Feelin\'\ Folksy.ogg
ExifTool Version Number : 10.10
File Name : 02 - Feelin' Folksy.ogg
Directory : .
File Size : 11 MB
File Modification Date/Time : 2010:09:08 17:37:17+02:00
File Access Date/Time : 2016:09:17 22:29:21+02:00
File Inode Change Date/Time : 2016:08:08 16:27:14+02:00
File Permissions : rw-r--r--
File Type : OGG
File Type Extension : ogg
MIME Type : audio/x-ogg
Vorbis Version : 0
Audio Channels : 2
Sample Rate : 44100
Nominal Bitrate : 224 kbps
Vendor : Xiph.Org libVorbis I 20090709
Artist : Hank Mobley
Title : Feelin' Folksy
Album : The Flip
Date : 1969
Tracknumber : 2
Genre :
Duration : 0:07:09 (approx)
Display More
The files are on a WD MyCloud which includes a DLNA server (Twonky). When I use BubbleUPnP on an Android device to select the first song (2 - Justine.ogg) and select Kodi as the DLNA renderer it plays without any problems..
[hr]
When I try to play one of the unrecognized tracks through the files section I see the following appear in kodi.log
00:05:35 14858.634766 T:1962795008 ERROR: Open - failed to open source <nfs://192.168.1.165/nfs/Music/Owned CD's/Hank Mobley/Soul Station/3 - Dig Dis.mp3>
00:05:35 14858.634766 T:1962795008 ERROR: Init: Error opening file nfs://192.168.1.165/nfs/Music/Owned CD's/Hank Mobley/Soul Station/3 - Dig Dis.mp3
00:05:35 14858.634766 T:1962795008 ERROR: CAudioDecoder: Unable to Init Codec while loading file nfs://192.168.1.165/nfs/Music/Owned CD's/Hank Mobley/Soul Station/3 - Dig Dis.mp3
00:05:35 14858.634766 T:1962795008 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder