Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: MPD not recognizing the .aif file extension
#11
(05-19-2025, 08:35 PM)steve4star Wrote: Not claiming an experience or knowledge of the plugin mechanism, however

https://github.com/MusicPlayerDaemon/MPD...Plugin.cxx

Is missing aif

ETA: it looks for the file metadata, not sure if it use file extension name ?

Look carefully; there is no mention of either .aiff or .aif extensions in this module. It recognizes MIME types audio/aiff and audio/x-aiff. That's where the mapping table comes into play.

But I'm not going any farther with this so have away at it.

Regards,
Kent
Reply
#12
Cheers Kent, I looked at the ffmpeg source and .aif .aiff and .aifc were all in the mapping.
Like you I have no aiff files, over to someone who can investigate further.
Reply
#13
(05-19-2025, 08:35 PM)steve4star Wrote: ETA: it looks for the file metadata, not sure if it use file extension name ?

If the file extension is not included in those being searched for, the metadata is somrehing we can only dream of... ;-)
Reply
#14
(05-19-2025, 08:22 PM)TheOldPresbyope Wrote: Since I don’t actually use AIFF, it’s all the same to me.
Neither do I, but for the sake of consistency I couldn't remain silent and risk to become accomplice...  Big Grin

ETA
I went your way. Red wine is never a mistake.
Reply
#15
If there is no smoking gun in the code maybe someone could create a failure repro with MPD compiled from sources on PiOS Bookworm and a couple of AIFF tracks (I can provide those if needed).

The repro would show that .aif is not recognized by MPD (not added to DB) but a rename to .aiff and the tracks are recognized (successfully added to MPD DB).

ETA: And then post an issue to MPD repo.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#16
Actually, there is already an issue in the MPD repo referencing files being excluded because ffmpeg is queried at runtime for its list of supported codecs. https://github.com/MusicPlayerDaemon/MPD/issues/2268

Maybe someone can volunteer to post to this issue and mention that .aif files are also being excluded.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#17
(05-22-2025, 11:43 AM)Tim Curtis Wrote: Actually, there is already an issue in the MPD repo referencing files being excluded because ffmpeg is queried at runtime for its list of supported codecs. https://github.com/MusicPlayerDaemon/MPD/issues/2268

Maybe someone can volunteer to post to this issue and mention that .aif files are also being excluded.

No volunteers?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#18
I was hoping someone else would raise their hand. Rolleyes

I first want to try building and enabling MPD’s sndfile decoder plugin to see how well moOde performs with it. I’m sure it will be brought up.

Regards,
Kent
Reply
#19
You could try that but I don't think its necessary since the trouble report https://github.com/MusicPlayerDaemon/MPD/issues/2268 addresses the exact issue of specific file types being excluded because of the new "at runtime" query of ffmpeg.

I would just mention that .aif is also being excluded.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#20
@Tim Curtis 

Not my finest effort but check out issue #2313.

Regards,
Kent
Reply


Forum Jump: