-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Support for Spatial Audio on macOS Monterey #3444
Comments
Any news on this? I cannot find any app whatsoever that's not an Apple or Catalyst app that can even do spatial audio. Not even Safari can do it with Plex or Netflix, at best its spatialize stereo but not even that is available on most apps... |
This would be awesome! |
Yes, please do, with the latest HDR branch #3539 which does HDR well, this is the last missing piece. Please :-) The list is small but growing https://www.macrumors.com/guide/apps-support-apples-spatial-audio-feature. And there are no MacOS apps yet (Air Video HD is iDevice only :-)
|
Just wanted to +1 this -- I had to stop using IINA and started using Infuse because it's the only Mac player that will output spatial audio on my M1 Mac with AirPods on my MKV files. Would love it if IINA supported this. |
It is just AC3/EAC3, since that's the only stream type Apple spatial audio supports. It's not TrueHD or AC4. Those would require audio transcoding to EAC3 which doesn't seem to be a reasonable expectation for a video player right now. (If you really want spatial audio for those, you could use ffmpeg to transcode file audio to EAC3.) |
Infuse won me over, it supports spatial audio (even atmos output), can connect to my plex/jellyfin server and can also do trakt sync! And its the only M1 native app that can do this! |
Optimus Player does this. |
Infuse Pro on App Store supports both Spatial Audio (head-tracked and fixed) and HDR. But it is a paid app, $1/m and TBH not as good as IINA. |
Look comment above. And it's a one-time purchase only. |
Just wanted to check if there's been any progress towards this. In the MPV issue it looks like another player, KSPlayer, has possibly added the relevant code to support spatial audio? See mpv-player/mpv#9252 (comment) |
Any update on this? |
Please, Spatial Audio + Vision Pro playing videos with 6/8 channel audio would be next decade experience! |
Since AVKit (and QuickTime Player) supports Spatial Audio I decided to quickly patch together a super basic video player that supports HDR and Spatial Audio playback for multichannel audio as an interim solution for me. |
Can use the TracyPlayer APP. It supports HDR and Spatial Audio. |
+1 |
This commit adds AVFoundation support to mpv. I tested it and spatial audio is working well. |
mpv now supports spatial audio! |
So,.. if I update mpv via brew to get the latest brew binaries and symlink them to IINA, it should be automagically working ? Basically very similar to this: |
It is now included in official mpv version - https://github.com/mpv-player/mpv/releases/tag/v0.38.0 |
My first reaction is that I am disturbed at the release of 0.38.0 as the mpv issue I entered about audio on the Mac not working for apps that use Glad all of you have been following the I am a junior IINA developer so I can only speak to what I think the release plans are… The 1.3.4 release was rushed in order to meet an Open Subtitles end of 2023 deadline. Quite a few fixes missed the boat. So the plan is to follow up with a 1.3.5 release. This is intended to be a stabilization release and therefore unlikely to contain major changes. If doable this release will restore support for macOS 10.11 and 10.12. For that reason IINA will not be upgrading After that the plan is to start on the long delayed feature release. This release will include betas. The new plugin system will be enabled for this release. This will also include some fixes that are more risky to make (for example threading problems) that have been postponed for a release that includes betas. There is also a bunch of PRs ready for review that add small features. My own preference would be to put as much as possible into the first beta rather than dribble out features over a series of beta releases. This release will definitely include upgrading As for when these releases will come out, I don't have a guess on that. Other than the 10.11 issue I don't see a lot of work to get 1.3.5 out besides the normal work needed to produce a release. I see a lot of work to get the outstanding PRs merged for the first beta. Upgrading dependencies is always "interesting". When that comes out depends upon decisions about what will be included in the feature release. That hasn't been nailed down yet. Need to first get pass 1.3.5. |
We are discussing a fix for it now (mpv-player/mpv#13902 (comment)). I think we are going to fix it soon. Sad that the fix did not catch up with v0.38 release. You may do some backporting afterwards. ao_avfoundation is a new ao that supports spatial audio. You may want to test it, and IMO you can make it the new default for IINA giving the lack of a maintainer of old ao_coreaudio. |
I confirmed mpv-player/mpv#13348 still reproduces with the latest I did a very quick test with ao_avfoundation and did not encounter a problem. |
@ruihe774 Thank you very much for the link to the Apple examples. I had searched for Apple examples but ended up getting lost in Apple Music. @ShlomoCode Did you strip the The library should end up in a low-batt@gag mpv-build (master %=)$ ls -la mpv/build/libmpv.2.dylib
-rwxr-xr-x 1 low-batt staff 30528048 Apr 19 19:46 mpv/build/libmpv.2.dylib
low-batt@gag mpv-build (master %=)$ The
Without that the |
Thanks! That's what I was missing. I just couldn't locate the file... |
Update: I changed in Build Settings > Architectures to "arm64" only and it solved the error for me. |
Glad to hear your build worked! And yes |
To get spatial audio to work you set |
Yes, Or the change presented at #4909. Both worked for me (with Airpods Pro 2). |
Heh, so when OTA for non-dev people? 😁 |
On this:
See this comment above on what I think the release plans are. I'm a junior IINA developer and can't comment on when the releases might happen. I can only say that work is ongoing. |
I was able to make IINA output Spacial Audio by temporarily replacing Backup the original
Then delete the original
Install
Create a symbolic link to the Homebrew
Then perform the action demonstrated by @low-batt. Now IINA should be capable of playing in Spacial Audio. And if you want to undo it: Remove the symbolic link you created:
Recover from the backup:
You can leave the backup there or delete it:
At last, don't forget to undo the process of setting the |
@low-batt I found a bug (seemingly) that only occurs when
CleanShot.2024-05-08.at.01.45.49-converted.mp4 |
In addition, when Spatialize Stereo is turned on/off, there is a skip of about a second in the audio. With QuickTime it doesn't happen: Screen.Recording.2024-05-08.at.2.10.39-converted.2.mov |
Thanks @Sponge-bink |
This commit will add setting the mpv ao property to avfoundation in the mpvInit method of the MPVController class. This causes IINA to use the AVFoundation framework for audio (which supports spatial audio) instead of the Core Audio framework.
This commit will add setting the mpv ao property to avfoundation in the mpvInit method of the MPVController class. This causes IINA to use the AVFoundation framework for audio (which supports spatial audio) instead of the Core Audio framework.
* Add support for Spatial Audio, #3444 This commit will add setting the mpv ao property to avfoundation in the mpvInit method of the MPVController class. This causes IINA to use the AVFoundation framework for audio (which supports spatial audio) instead of the Core Audio framework.
check the conversation below if it says this file is broken, run this and right click open:
check the conversation below after setting it, quit and restart the iina.app to see the changes |
@Willian-Zhang You can also visit nightly.iina.io to download the latest nightly build, which contains a button to choose from avfoundation and coreaudio. |
wow thank you for the info, this is way better |
@Willian-Zhang I post that method so no one will have to trust other people’s build to use this feature… |
Thank you for the heads up. |
What you want IINA to do:
It would be awesome if IINA could passthrough surround / Dolby Atmos streams to connected AirPods so they can make use of the new spatial audio features in macOS Monterey.
What IINA does currently:
Currently, IINA downsamples surround streams to stereo when connected to AirPods.
Why you think this should be added:
It would enhance the movie watching experience.
Examples of other projects that have something similar:
Since this is a fairly new feature, I've only seen QuickTime, Safari, and their TV app support this so far.
The text was updated successfully, but these errors were encountered: