audiowaveform icon indicating copy to clipboard operation
audiowaveform copied to clipboard

m4a (AAC / ALAC) support?

Open richthegeek opened this issue 9 years ago • 10 comments

I imagine the chances of this are quite remote, as it's a proprietary / patent-encumbered format.

It seems like it's a fairly popular format (for our use-case at least), which is annoying!

richthegeek avatar Nov 12 '14 11:11 richthegeek

Just figured out I can just convert the files to mp3 with ffmpeg a priori.

Makes things a lot simpler all round!

richthegeek avatar Nov 12 '14 11:11 richthegeek

This would be amazing, re-encoding would be a non-trivial exercise for hundreds of hours of audio. If you can give me a couple of docs as pointers I'll start a pull request on this (NOTE: no C experience whatsoever!)

swordsreversed avatar Jul 29 '16 01:07 swordsreversed

I agree this would be useful, so I'm having a quick look into it. A couple of options are libfaad and libsox. libsox should be straightforward to add, so I'll push a branch for you to test soon.

chrisn avatar Aug 01 '16 17:08 chrisn

If someone reading this is a Mac OS X user, can you check that libsox supports m4a audio (I think ffmpeg is needed), and post the homebrew commands needed to install these. Thanks!

chrisn avatar Aug 03 '16 07:08 chrisn

Ok, spent a little while digging around and i could get sox to convert to m4a, and it is a minefield. Seemingly no on the internet I could find has this working esp through homebrew. It looks like the current version of sox no longer supports ffmpeg,

https://sourceforge.net/p/sox/mailman/message/33267413/

and when I tried 14.4.0 I go errors same as this:

http://sox.10957.n7.nabble.com/Build-with-ffmpeg-not-working-td2016.html

So I'm thoroughly stuck at the moment. Is it possible to incorporate ffmpeg directly? I use it on the command line to convert mp3 to m4a currently. Why would we use sox as an intermediate?

swordsreversed avatar Aug 03 '16 11:08 swordsreversed

Thank you for investigating. The reason for suggesting libsox is that it presents a very simple API for application developers, and internally takes care of all the complexity of parsing file formats and decoding the audio. It supports m4a decoding on Ubuntu via ffmpeg, so it looked to be a simple solution. libfaad on the other hand will be a lot more effort to integrate.

chrisn avatar Aug 04 '16 06:08 chrisn

Ok sounds, good, i'll have a quick go on setting it up on a docker container. Seems OSX and homebrew aren't compatible with the ffmpeg support/.

swordsreversed avatar Aug 04 '16 09:08 swordsreversed

What about libfaac?

ffxsam avatar Oct 15 '17 16:10 ffxsam

After 4 years? What about really support for m4a? I start using Azuracast which is using your JSON wave generator, and i can't use my songs because of it :(

NicoxDJ avatar Jun 02 '20 15:06 NicoxDJ

The current workaround is to use ffmpeg to convert m4a to wav, then run through audiowaveform (see the last example here). Until we have working m4a support, I suggest raising this with Azuracast.

chrisn avatar Jun 03 '20 13:06 chrisn

Closing as not-planned, because I won't be able to distribute binaries due to patent implications.

chrisn avatar Apr 03 '24 21:04 chrisn