Won't Open Apple Lossless m4a files

Bug #1336982 reported by David Birch on 2014-07-02
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Uwe Klotz

Bug Description

I can open m4a files encoded in lossy AAC. However, when I try to open lossless m4a files encoded in ALAC, a message saying the track could not be loaded is displayed.

Changed in mixxx:
status: New → Incomplete
status: Incomplete → New
jus (jus) on 2014-09-09
Changed in mixxx:
status: New → Confirmed
importance: Undecided → Low
Uwe Klotz (uklotzde) wrote :

The SoundSourceM4A plugin uses FAAD2 to decode .m4a files. Currently Mixxx determines the file type solely by the file extension. Unfortunately ALAC files use the same file extension "m4a". Only a single SoundSource as registered for each file extension.

As a workaround we could use the approach I proposed here to register multiple SoundSources for the same file extension:


Drawback: SoundSourceM4A will fail to open an ALAC file and log a warning message. Only then the to-be-created SoundSourceALAC decoder will take over (assuming that is has been assigned a lower priority than SoundSourceM4A).

We should also rename SoundSourceM4A to SoundSourceFAAD2.

Uwe Klotz (uklotzde) wrote :

If libsndfile is now able to decode ALAC files we could register SoundSourceSndFile with a lower priority for the file extension "m4a" and there is no need for a new specialized SoundSource.

Daniel Schürmann (daschuer) wrote :

https://github.com/mixxxdj/mixxx/pull/605 is now merged. Is this bug solved?

Uwe Klotz (uklotzde) on 2016-05-07
Changed in mixxx:
assignee: nobody → Uwe Klotz (uklotzde)
status: Confirmed → In Progress
Uwe Klotz (uklotzde) wrote :

ALAC files with the extension .m4a should play now when building Mixxx with libsndfile 1.0.26.

I'm not able to check this myself, because Fedora 23 still comes with libsndfile 1.0.25.

Uwe Klotz (uklotzde) on 2016-05-20
Changed in mixxx:
status: In Progress → Fix Committed
Uwe Klotz (uklotzde) wrote :

Unfortunately libsndfile 1.0.26 only reads ALAC/CAF, but not ALAC/M4A files.

Disabled support for M4A files in SoundSourceSndFile:

Changed in mixxx:
status: Fix Committed → Confirmed
Uwe Klotz (uklotzde) on 2016-10-12
Changed in mixxx:
assignee: Uwe Klotz (uklotzde) → nobody

I just got confirmation from Erik (main libsndfile developer) that the lack of ALAC/M4A support is simply due to manpower, so one of us could add it to libsndfile. https://github.com/erikd/libsndfile/

He also said to add a new container (or codec) just copy one of the existing ones (like src/au.c) and make the appropriate changes.

Uwe Klotz (uklotzde) on 2017-09-28
Changed in mixxx:
status: Confirmed → In Progress
assignee: nobody → Uwe Klotz (uklotzde)
Uwe Klotz (uklotzde) on 2017-12-05
Changed in mixxx:
milestone: none → 2.2.0
Be (be.ing) on 2018-06-24
Changed in mixxx:
milestone: 2.2.0 → 2.3.0
Be (be.ing) on 2019-02-08
Changed in mixxx:
milestone: 2.3.0 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers