glomatico / gamdl

A Python CLI app for downloading Apple Music songs/music videos/posts.
587 stars 76 forks source link

What is aac-legacy? #121

Closed DwayneHoobler closed 1 month ago

DwayneHoobler commented 1 month ago

I am confused about the meaning of aac-legacy codec. I could not find a definition anywhere. What is the difference between the aac-legacy codec and the aac codec, and is the quality of the audio the same or does it differ?

glomatico commented 1 month ago

Sorry, I should have added an explanation about this on the README.

The main difference between aac and aac-legacy (and also legacy and non-legacy codecs in general) is the API used to get the stream info.

aac uses the amp API that is used in the app client, while aac-legacy uses the webplayback API that is used in the web client.

In terms of quality, they are pretty much the same, but sometimes you can get 48kHz audio using aac.