News for hackers. Stuff that matters.
Re:Apple Music Announces Spatial Audio and Lossless Audio by moogly on Monday May 17, 2021 @10:42AM (#27183983)
> The format is ALAC, it’s not proprietary but an open spec

True. No one else bothers with it though, because why should they when FLAC exists? That makes ALAC, in practice, largely an Apple-only format.

Re:Apple Music Announces Spatial Audio and Lossless Audio by floatingatoll on Monday May 17, 2021 @11:19AM (#27184441)
I've been storing my FLAC files as ALAC for iTunes compatibility for the past decade. Max.app on macOS, while old and creaky looking, does a fine job of transcoding them and maintaining tags.
Re:Apple Music Announces Spatial Audio and Lossless Audio by moogly on Monday May 17, 2021 @02:06PM (#27186262)
Now imagine storing it in FLAC and playing them everywhere, without having to transcode at all.
Re:Apple Music Announces Spatial Audio and Lossless Audio by floatingatoll on Monday May 17, 2021 @06:20PM (#27189110)
That's someone else's windmill to tilt, sorry.
Re:Apple Music Announces Spatial Audio and Lossless Audio by floatingatoll on Monday May 17, 2021 @07:18PM (#27189542)
Oh, if you're using homebrew and you want ffmpeg to support ALAC, you can do that. brew edit ffmpeg; add `depends_on "fdk-aac"` and `--enable-libfdk-aac`, `--enable-nonfree` to the relevant sections, remove the bottle section; then, brew reinstall ffmpeg. There's probably a better way to do this that doesn't trigger a merge conflict each time they update the bottle hashes (resolved easily with brew edit ffmpeg, repeat above), but I'm lazy and ffmpeg doesn't update frequently. I have no idea if ffmpeg can maintain ID3 tags from FLAC->ALAC or not, but if you have need of this knowledge someday, say hi to that future for me!

(And if compilation fails with a specific weird error about corefoundation corevideo coreaudio etc, uninstall and reinstall your macOS command line tools, because they're broken; `sudo rm -rf /Library/Developer/CommandLineTools ; xcode-select --install` will do that.)

Re:Apple Music Announces Spatial Audio and Lossless Audio by Ericson2314 on Monday May 17, 2021 @07:58PM (#27189829)
> There's probably a better way to do this that doesn't trigger a merge conflict

Well if you want to try Nix, https://github.com/NixOS/nixpkgs/blob/9dba669e8a53f00114b53d... right out of the box :D

Re:Apple Music Announces Spatial Audio and Lossless Audio by joshspankit on Monday May 17, 2021 @08:14PM (#27189906)
Though I had read about it already, your comment is the first time I’ve seen a compelling real-word reason for me to install Nix.
Re:Apple Music Announces Spatial Audio and Lossless Audio by floatingatoll on Monday May 17, 2021 @08:25PM (#27189970)
That’s what I get for not saying “in Homebrew”!
Re:Apple Music Announces Spatial Audio and Lossless Audio by Ericson2314 on Tuesday May 18, 2021 @05:01PM (#27201064)
I mean it was perfectly clear in context. That's why I wrote the "Well..." dependent clause; I know I'm providing the better way for homebrew.
Re:Apple Music Announces Spatial Audio and Lossless Audio by Ericson2314 on Wednesday May 19, 2021 @07:02PM (#27215583)
oops "not providing the better way for homebrew." (edit window.)
Re:Apple Music Announces Spatial Audio and Lossless Audio by thirdsun on Tuesday May 18, 2021 @03:33AM (#27192101)
I wonder why you wouldn't just use ALAC full time? As mentioned in my other comment any decent piece of software or hardware supports ALAC these days.

Sure, if you don't have any use for iTunes or iOS FLAC is the obvious choice, but if you do use iTunes there's really no need to keep two formats around. Just use ALAC.

Re:Apple Music Announces Spatial Audio and Lossless Audio by yingbo on Monday May 17, 2021 @11:43AM (#27184741)
As mentioned above, ALAC is an open source format, which has all benefits as other open source format e.g. FLAC.
Re:Apple Music Announces Spatial Audio and Lossless Audio by whyoh on Monday May 17, 2021 @04:17PM (#27187921)
>ALAC is an open source format, which has all benefits as other open source format e.g. FLAC.

Technically, it's still not as good. For instance, FLAC includes a checksum of the audio data, whereas ALAC doesn't. FLAC also compresses a bit better (=smaller file sizes) and decodes a bit faster (=lower CPU/battery usage).

Re:Apple Music Announces Spatial Audio and Lossless Audio by Forbo on Monday May 17, 2021 @12:25PM (#27185242)
> all benefits as other open source format e.g. FLAC.

Except adoption. FLAC is much more widely supported, so why opt for ALAC?

Re:Apple Music Announces Spatial Audio and Lossless Audio by yingbo on Monday May 17, 2021 @01:23PM (#27185843)
ALAC is open source and you can feel free to contribute to it or "adopt"/use it.Apple has been using ALAC for a long time on difference devices and platform. Moreover, according to Wikipedia, "compared to some other formats, it is not as difficult to decode, making it practical for a limited-power device, such as older iOS devices". "Adoption" is not a reason, from my point of view, ask a company/app abandon an open sourced format to use another one.
Re:Apple Music Announces Spatial Audio and Lossless Audio by tshaddox on Monday May 17, 2021 @02:10PM (#27186301)
That seems to imply that there should only ever be one format for any particular application.
Re:Apple Music Announces Spatial Audio and Lossless Audio by jolux on Monday May 17, 2021 @01:16PM (#27185781)
Because iTunes doesn't support FLAC.
Re:Apple Music Announces Spatial Audio and Lossless Audio by lozf on Monday May 17, 2021 @03:58PM (#27187699)
Apple created ALAC as a closed source project after FLAC had already been released as Open Source. They subsequently changed ALACs license to Open Source -- presumably to take advantage of further development from the community.
Re:Apple Music Announces Spatial Audio and Lossless Audio by eikenberry on Monday May 17, 2021 @04:39PM (#27188163)
The main benefit of lossless is the ability to convert to other formats, including other lossless formats that might have better longevity. So as long as you can convert it to FLAC once downloaded it is doing its job.
Re:Apple Music Announces Spatial Audio and Lossless Audio by Ericson2314 on Monday May 17, 2021 @07:56PM (#27189816)
Yes exactly. And likewise with trying to avoid DRM via some sort of loopback device that is now lossless too.

I can't information theoretically argue for this. But I can algebraically argue lossless conversion rather than storage is great, and this seems great for the war against bad IP legal regimes.

Too bad they are probably only doing this because they feel that with streaming's dominance, the IP regime is not at risk.

Re:Apple Music Announces Spatial Audio and Lossless Audio by yehaaa on Monday May 17, 2021 @11:17AM (#27184415)
To increase interoperability with existing libraries for example. The user group that has some kind of Apple device, and thus potentialy ALAC encoded audio is quite large.
Re:Apple Music Announces Spatial Audio and Lossless Audio by thirdsun on Tuesday May 18, 2021 @03:29AM (#27192084)
My whole collection is stored in ALAC. Any half decent software or hardware player will support ALAC these days.