Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial Audio #343

Closed
Jivko1212 opened this issue Apr 23, 2020 · 2 comments
Closed

Spatial Audio #343

Jivko1212 opened this issue Apr 23, 2020 · 2 comments

Comments

@Jivko1212
Copy link

Is there any way to render Dolby Atmos / DTS:X using the windows spatial API here when spatial sound is enabled:

https://docs.microsoft.com/en-us/windows/win32/coreaudio/render-spatial-sound-using-spatial-audio-objects

Currently Dolby Atmos / DTS:X are rendered to 7.1 when using spatial sound with headphones in Windows.

When listening to the following file with Movies & TV and a player using LAV audio decoding with headphones spatial audio enabled there is big difference:
https://download.dolby.com/us/en/test-tones/dolby-test-tones_9_1_6.mp4

Further information here:
https://docs.microsoft.com/en-us/windows/win32/coreaudio/spatial-sound

This table is of particular interest:

Format Max Static Objects (Channel Bed) Max Dynamic ObjectsXbox One Max Dynamic ObjectsWindows Max Dynamic ObjectsHoloLens 2
Dolby Atmos (HDMI) 12 (7.1.4) 20 20 NA
Dolby Atmos (Headphones) 16 (7.1.4.4) 16 16 NA
Windows Sonic for Headphones 16* (8.1.4.4) 16 112 31
@Viscerous
Copy link

Viscerous commented Apr 23, 2020

Wow you must be reading my mind, I just started experimenting with this and came to the same conclusion.

It seems there are almost no ways to play back a file that has Atmos metadata and have it be passed along to the Windows Spatial API.
The only out-of-the-box solution I've found so far is the PLEX media player, and I assume other home theatre software like Kodi will probably work too. This is not particularly convenient however, and it would be cool to have support for this so it could work in any player.

There is an alternative solution right now, namely the Media Foundation Codec native to Windows actually works too. In PotPlayer it's listed as the "Microsoft DTV-DVD Audio Decoder"; when using this to decode audio, Atmos works as well but, sadly it doesn't support TrueHD so it's not a catch-all solution (yet?).

It certainly doesn't help that it's a bit hard to troubleshoot since there are no visual queues to determine whether or not it's using Spatial data or is taking in 7.1/5.1 signals. Both of those result in a "Dolby Atmos for Headphones is in use" though this gets dropped when playing regular stereo which is left alone.

@Nevcairiel
Copy link
Owner

There is no Atmos or DTS:X decoder available that could be used here, so this is not possible, unfortunately.

Windows spatial audio basically re-encodes audio back to Atmos, so you might as well bitstream the original stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants