-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Mac OS X Core Audio Layout problem #3065
Comments
Yeah, we could just remove the code that reads and applies the stereo layout, and assume stereo is always supported. But what's the point of the stereo layout at all? |
CC @pigoz |
@mpsrig can you post a screenshot of how your speaker layout is configured in |
The point of stereo layout is to route stereo audio. This can be separate from multichannel audio. I.E. unless the app is sending surround sound, it should simply send stereo or mono audio to the system using the "stereo" path. MPV does this fine but only in the mono case, not the stereo case. Screenshots to follow. |
Your config looks indeed correct, this looks like a bug in mpv. |
In every other app this works. All audio is stereo and is routed to 11 as left and 12 as right. This is not a bug on my system. |
Ideally what should happen is that unless the app is sending multichannel audio i.e. 5.1 or 7.1, it should drop to the stereo path. I.E. I should be able to have surround set up on 5.1 on interface channels 1-6 and stereo set up on 11-12 and it should work fine. This works great in VLC. Shouldn't be too hard a fix. |
Update: It seems that MPV has trouble with pretty much any nonstandard audio layout. I changed my setup to be 5.1 on standard channels 1-6 and it still gets thrown off by channels 7-12 being "na" and outputs either mono (when the "stereo" output setup in Audio MIDI setup is set to 11 and 12) or stereo (when the "stereo" output is set to 1 and 2). The input file is 5.1 and VLC does this fine. |
Please post logs with -v for all interesting cases. |
case1-stereo_is11and12-multichannel_is_stereo11and12.txt Happy to post more on request, though it seems that it doesn't know what to do with my 12ch audio interface no matter how it's set up except to output stereo to channels 1 and 2 or mono to whatever the system default for stereo is. |
And you never actually want 5.1 output? (Since a while ago we've switched back to stereo/mono downmix output by default.) |
No, in the case where multichannel out is set to 5.1 on channels 1-6 I would expect it to do 5.1 output from a 5.1 source mkv - I guess I will have to look into the command line flags for this? Michael Stella Sent from my phone - please forgive errors.
|
Yes, you need to set |
Thanks for the tip. There is obviously still a bug here though. Will update. |
Having a similar issue - added findings to #5042 |
Hi, what you're referring to here - the default downmix - where is this implemented ? I am wondering if it plays a part in #5042 |
Hello,
The handling of Core Audio layouts has a problem.
On multichannel systems there are 2 layouts, the "stereo" layout and the "multichannel" layout. The stereo layout is handled in an interesting way - it is "parsed" into an mpv layout the same way as the multichannel layout.
This should not be the case. Rather, mpv should simply assume that the stereo layout is in fact stereo, and send left and right audio to those channels.
Another option (at least on my system) would be for mpv to recognize that the layout "na-na-na-na-na-na-na-na-na-na-fl-fr" is stereo 2 channel on channels 11 and 12 and act accordingly. It doesnt seem to know how to handle nonstandard patching.
Attached is an example of this on my system. Left and Right are channels 11 and 12 on the audio interface, so mpv "parses" stereo as "sr-tc", has no idea what to do with this, and falls back to mono.
I realize that this may also be a symptom of a small bug in OS X but we can definitely work around this.
The text was updated successfully, but these errors were encountered: