MSST Bible

> from Tidal (with https://github.com/exislow/tidal-dl-ng)

Page 196 of 228 · Open the original GDoc ↗

 

 

- from Apple Music (Android, max 7.1.4)

https://github.com/adoalin/apple-music-alac-downloader

 

Installation tutorial:
https://www.youtube.com/watch?v=blazHnCh6jQ

 

“Pre-Requisites:

x86_64 bit device (Intel/AMD Only)

Install Python: https://www.python.org/

Install Go: https://go.dev/doc/install

Install Android Platform Tools: https://developer.android.com/tools/releases/platform-tools

and set it to environment variables / path

Download and extract Frida Server - https://github.com/frida/frida/releases/download/16.2.1/frida-server-16.2.1-android-x86_64.xz

Download Apple Music ALAC Downloader - https://github.com/adoalin/apple-music-alac-downloader

Extract content to any folder.

 

1)

Install Android Studio

Create a virtual device on Android Studio with an image that doesn't have Google APIs.

 

2)

Install SAI - https://github.com/Aefyr/SAI

Install Apple Music 3.6.0 beta 4 - https://www.apkmirror.com/apk/apple/apple-music/apple-music-3-6-0-beta-release/apple-music-3-6-0-beta-4-android-apk-download/

Launch Apple Music and sign in to your account. Subscription required.

 

3)

Open Terminal

adb forward tcp:10020 tcp:10020

if u get a msg that there are more than 1 emulator/devices running, seek up NTKDaemonService in task manager/services and stop it

adb root

cd frida-server-16.2.1-android-x86_64

adb push frida-server-16.2.1-android-x86_64 /data/local/tmp/

adb shell "chmod 755 /data/local/tmp/frida-server-16.2.1-android-x86_64"

adb shell "/data/local/tmp/frida-server-16.2.1-android-x86_64 &"

The steps above place Frida-server on your Android device and starts the Frida-server.

 

4)

Open a new Terminal window

Change directory to Apple Music ALAC Downloader folder location

pip install frida-tools

frida -U -l agent.js -f com.apple.android.music

 

5)

Open a new Terminal window

Change directory to Apple Music ALAC Downloader folder location

Start downloading some albums:

go run main.go https://music.apple.com/us/album/beautiful-things-single/1724488123

go run main_atmos.go "https://music.apple.com/hk/album/周杰倫地表最強世界巡迴演唱會/1721464851"

 

- from Apple Music (alternative tool)

https://rentry.co/AppleMusicDecrypt

(after March 5, 2025 get WSA from here:

https://github.com/MustardChef/WSABuilds)

 

 

from Apple Music (MacOS, virtual soundcard recording)

 

(Guide by Mikeyyyyy/K-Kop Filters, source)

 

You will need a Mac to do this, this will only work for MacOS, you will need an Apple Music subscription, "Blackhole 16ch" and any DAW of your choice I prefer FL Studio (can be also Audacity),

 

Step 1. Install Blackhole Audio driver (search for it in Google)

Step 2. Download the song you want in Dolby Atmos (if you don't know how to do it, go to settings in Apple Music then to general then toggle download Dolby Atmos)

 

Step 3. Go to your desired DAW and in your mixed select input, and it will show your 16 outputs select 1, (Mono) for the first mixer, then number 2 mixer do the same but 2 and so on until you reached 6

 

Step 4. Hit record and play the track in Dolby, and you're done!

 

Similar tutorial based on Blackhole and Audacity on Mac (open the link in incognito in case of infinite captcha)

 

Decoding

 

“On the latest MacOS you now have the ability to decode directly to 7.1.4 PCM realtime from Apple Music. If you use a loopback virtual audio driver you can record the 12 channels. Depending on how the song was mixed might mean the C channel has even clearer vocals.

Probably worth mentioning Dolby Atmos is delivered as dd+ (Dolby Digital 5.1 Surround downmix) but JOC allows it to be decoded up to 9.1.6 16 channels. To do that you need either an AVR or Dolby Reference Player or Cavern/Cavernize.” Sam Hocking

 

All Dolby Atmos is encoded, so to play it, basically it has to be decoded to audio playback through a Dolby licensed decoder. There are ways to decode, though. Easiest is to use Cavern.

https://cavern.sbence.hu/cavern/

Atmos is a lossy format. 768kbps across 6 channels so not the highest resolution, but to decode to multichannel .wav just download cavern and put your dd+joc file through Cavernize. Streamed Atmos [is lossy]. TrueHD Atmos isn't. Atmos Music is only distributed lossy, though.

You can encode Dolby Atmos to Ambisonics by e.g. https://www.mach1.tech/.

 

Atmos files downloaded from Tidal with OrpheusDL are simply FLACs in m4a container, and can be read by MPC-HC, VLC, and Foobar 2.x.

 

You won't be able to do the same on Windows with LoopBeAudio instead (paid, but trial works for every 60 minutes after boot) because Apple Music on Windows (including the one in MS Store) doesn't provide Dolby Atmos (7.3.1) files at all (only stereo hi-res lossless) no matter what virtual soundcard you use, so you'll need Hackintosh or VMware.

"Vmware kinda lag

and find own seri to fix login apple services"

 

- ittiam-systems/libmpegh: MPEG-H 3D Audio Low Complexity Profile Decoder

Using this program, you can extract the 12 channels of the Dolby Atmos tracks.

“MPEG-H is essentially Sony360, just Sony360 licenced decoders needed. Fraunhofer allow it to be used for free, though.

ia_mpeghd_testbench.exe -ifile:"FILENAME.mhm" -ofile:track1.wav

or:

ia_mpeghd_testbench.exe -ifile:"input file name.m4a" -ofile:"output file name.wav" -cicp:13

“renders to 22.2 as well”

https://mpegh.lze-innovation.de/#LZE

But seems like you need to write them some message.

Above it tells it's for professionals, but try your luck:

https://www.iis.fraunhofer.de/en/ff/amm/broadcast-streaming/mpegh.html?source=post_page

You should also have a success with extracting stems with MMH Atmos Helper “includes a MPEG-H decoder built-in apparently”

 

360RA/MPEG-H 3D online decoder by run4r.ses/r4r

https://run4r-ses.github.io/mpeghdeconline/

 

“It uses WASM and the libmpegh testbench* to decode files. However, that means that it uses MEMFS, which can lead to the decoder using up to 1.5GB for a 22.2 file so make sure you have plenty of RAM for the decoder to use.

if you don't like that RAM limitation (for mobile devices etc.) you can download builds of the testbench from https://run4r-ses.github.io/libmpegh_builder/ (includes Android builds which you can run through terminal emulators) although the web decoder shouuulddd be fine for most devices (except iOS, it mostly crashes on it)

 

I hope this is helpful to anyone! If you encounter any issues, please let me know, as this is pretty much still a WIP.

 

* The original libmpegh testbench is made by Ittiam Systems, so all credits to them! Their licenses are linked in both websites”

 

Isling: “do you happen to know what all of the names of the channels are?

For the 22.2 layout for example, i have no idea what the channels/speakers are called, i see you have the acronyms for it though”

A: https://en.wikipedia.org/wiki/22.2_surround_sound#Channels

 

Isling: “Great site too, it has customisability too, the one by ITTIAM doesn't seem to keep the surround sound effect so i'll try this one out.
Like, when i decode the 360ra files they lose their surround sound, and they don't sound as good in DAWs compared to if i was playing them with amazon music for example

they just sound like stereo mixes without mastering, i want them to still have that cool effect”

 

R: “Well, if you decode to stereo then it might sound worse than Amazon Music because the binaural renderer that ittiam uses is very basic, and you will get the same result with this too. if you want a "custom surround sound" then you'll probably have to render to something like 22.2, use your own HRTF model etcetera etcetera which is what I imagine Amazon Music does.”

I: Yeah I decode it to 22.2. And I didn't realise there were extra steps but that makes sense.

___________________________

 

On the side, “The process of making Atmos [from the engineer standpoint] is:

DAW > 128 channel ADM_BWF > 7.1.4 >5.1(joc). So basically those 128 channels are encoded to 6, but the object audio is still known where it should exist in the space and pulls that audio out of the 5.1 channels to make up to 9.1.6 (max supported for music)”

 

And authoring for Atmos is not available on Windows but:

“Traditionally it's not been unless you ordered a DELL from Dolby configured to use as a Rendering machine, but today both Dolby Atmos Renderer, DAWs like Cubase and Nuendo and 3rd party VST exist to do it on Windows now. I use Fiedler Atmos Composer on a stereo DAW called Bitwig to build demix projects for Atmos engineers to then master to Atmos from Stereo (sometimes all they have left to work with as multitrack tapes lost/destroyed/politics/easier)” ~Sam Hocking