You are not logged in.

#1 2016-12-16 23:28:59

Ploppz
Member
Registered: 2013-09-14
Posts: 311

mpd doesn't find certain .flac files

What could the reason be that ncmpcpp/mpd doesn't find certain .flac files, even after updating database?

I used this script to split a big flac file into smaller ones https://bbs.archlinux.org/viewtopic.php?id=75774 and it's the smaller ones that are not found/diplayed by ncmpcpp/mp.

mpd --verbose --stdout --no-daemon doesn't seem to display any errors. this is a part of the output when I update the database again:

client: [1] process command "update "classical/Godowsky/Godowsky_Hamelin_Chopin/cd1""
update: spawned thread for update job id 1
client: [1] command returned 0
update: starting: classical/Godowsky/Godowsky_Hamelin_Chopin/cd1
client: [1] process command "idle"
client: [1] command returned 1
update: finished: classical/Godowsky/Godowsky_Hamelin_Chopin/cd1
client: [1] process command "status"
client: [1] command returned 0
client: [1] process command "idle"
client: [1] command returned 1
client: [1] process command "status"
client: [1] command returned 0

The directory cd1 mentioned there is the one which contains the files that aren't discovered.

`mpd --version`: https://bpaste.net/show/81a76b314dec

`file` on one of the problematic files includes this information: `FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 5741820 samples`

Offline

#2 2016-12-16 23:46:00

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: mpd doesn't find certain .flac files

I don't have any problems with flac files here. Can you post the output of 'stat', run on a known 'good' file, and a known 'bad' file? Are the files all in the same directory? If they're in dedicated subdirectories (e.g. one subdir per artist/album), make sure the directories are all readable by the user mpd is run as.

I did recently notice that tags, when edited by an external tag editor, did not update in mpd even following a update database call. I had to manually move these files out of the music directory, update mpd's database, move the files back, then update mpd's database again. I'm not sure if this is expected behaviour or not, but it may be relevant to your problem.

Mod note: Moving to multimedia and games.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-12-17 00:05:36

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: mpd doesn't find certain .flac files

Same directory indeed.
Bad file:

  File: '01 Hamelin, Marc-Andr'$'\351'' - No 1 - Op 10 No 1 (1st version) C major.flac'
  Size: 8392964   	Blocks: 16400      IO Block: 4096   regular file
Device: 806h/2054d	Inode: 1704079     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  ploppz)   Gid: (  100/   users)
Access: 2016-12-17 00:28:14.451385497 +0100
Modify: 2016-12-16 23:57:58.614914934 +0100
Change: 2016-12-16 23:59:14.899396501 +0100

Good file (the big one which was split into smaller ones):

  File: 'Hamelin, Marc-Andre - Godowsky  The Complete Studies on Chopin'\''s Etudes (CD 1 of 2).flac'
  Size: 256041742 	Blocks: 500088     IO Block: 4096   regular file
Device: 806h/2054d	Inode: 1704069     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  ploppz)   Gid: (  100/   users)
Access: 2016-12-16 23:52:14.557431185 +0100
Modify: 2016-09-25 23:38:51.868739628 +0200
Change: 2016-09-25 23:38:51.868739628 +0200
 Birth: -

Offline

#4 2016-12-17 00:27:29

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: mpd doesn't find certain .flac files

Okay, permissions look good to me. Unfortunately I don't have any albums with cue files to try this out on my own system, but I have no reason to believe that script (which essentially just calls shnsplit and cuetag.sh) is suffering from bitrot, despite being over 7 years old.

Can you play the files in other programs, e.g. mpv?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-12-17 08:45:49

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: mpd doesn't find certain .flac files

Yes, in mpv it works fine.

Offline

#6 2016-12-18 18:49:05

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: mpd doesn't find certain .flac files

The files had this letter in the name י.I removed it. Still no success though.

Can it have anything to do with inotify? Syncthing complains that inotify stopped working because some number of files exceeds the limit.

No, I failed to remove it in the resulting files, but now I did so and it seems that that character was the problem! Further information about the character, just for the record: the file names looked like this when `ls` (yes it's not the same character as I said initially because I looked in the wrong place):

'24 Hamelin, Marc-Andr'$'\351'' - No 20 - Op 10 No 10 (2nd version) A flat major - left hand.flac'

Last edited by Ploppz (2016-12-18 18:53:56)

Offline

Board footer

Powered by FluxBB