You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- macOS version: macOS 15.2 (24C101)
- Source of mpv: My own build of master using mpv-build
- Latest known working version: Unknown
- Issue started after the following happened: Audio MIDI Setup used to reverse channels
Reproduction Steps
The problem is sensitive to the type of audio device. See more discussion about that in the Actual Behavior section below.
The --ao=coreaudio channel layout matches the --ao=avfoundation channel layout.
Actual Behavior
The coreaudio channel layout does not reflect the configuration applied by Audio MIDI Setup.
This was reported against IINA in issue iina/iina#5322. I initially tried to reproduce it using two Braven 770 Bluetooth speakers. The stereo layout was selected and the problem did not reproduce.
With the speakers in the LG display the fr-fl layout was selected and the problem reproduced. The LG display is the one that was done in partnership with Apple, so the speakers contained in it should be fully compatible with macOS and yet one of the layouts is reported as unknown2. That doesn't seem right?
low-batt@urp youtube-dl$ mediainfo Stereo\ Test\ -\ Left⧸Right\ Audio\ Test\ for\ Headphones⧸Speakers\ \[YwNs1Z0qRY0\].mp4
General
Complete name : Stereo Test - Left⧸Right Audio Test for Headphones⧸Speakers [YwNs1Z0qRY0].mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 1.24 MiB
Duration : 20 s 852 ms
Overall bit rate : 499 kb/s
Frame rate : 30.000 FPS
Writing application : Lavf61.7.100
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 20 s 800 ms
Bit rate : 364 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.006
Stream size : 923 KiB (73%)
Title : ISO Media file produced by Google Inc.
Writing library : x264 core 155 r2901 7d0ff22
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 20 s 852 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 326 KiB (26%)
Title : ISO Media file produced by Google Inc.
Language : English
Default : Yes
Alternate group : 1
I carefully read all instruction and confirm that I did the following:
I tested with the latest mpv version to validate that the issue is not already fixed.
I provided all required information including system and mpv version.
I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
I attached the full, untruncated log file.
I attached the backtrace in the case of a crash.
The text was updated successfully, but these errors were encountered:
mpv Information
Other Information
Reproduction Steps
The problem is sensitive to the type of audio device. See more discussion about that in the Actual Behavior section below.
Download the YouTube video Stereo Test - Left/Right Audio Test for Headphones/Speakers using yt-dlp with the option
-f 137+140
to obtain a format compatible with QuickTime PlayerAttach an Apple/LG UltraFine™ 27MD5KL-B monitor to a compatible Mac
Open the Audio MIDI Setup app found in
/Applications/Utilities
Select
LG UltraFind Display Audio 2
(the speakers) and click onConfigure Speakers…
Swap the left and right channels as shown here:
Play the above video with QuickTime Player and VLC and note the left and right channels are reversed as expected
Play the video with mpv and note that the left and right channels are not swapped
Play the video again with mpv adding
--ao=avfoundation
and note that the channels are reversed as expectedWhen reproducing the problem I ran mpv with these options:
Expected Behavior
The
--ao=coreaudio
channel layout matches the--ao=avfoundation
channel layout.Actual Behavior
The
coreaudio
channel layout does not reflect the configuration applied by Audio MIDI Setup.This was reported against IINA in issue iina/iina#5322. I initially tried to reproduce it using two Braven 770 Bluetooth speakers. The
stereo
layout was selected and the problem did not reproduce.Working using BRAVEN 770 speakers:
With the speakers in the LG display the
fr-fl
layout was selected and the problem reproduced. The LG display is the one that was done in partnership with Apple, so the speakers contained in it should be fully compatible with macOS and yet one of the layouts is reported asunknown2
. That doesn't seem right?Not working using LG display speakers:
Running mpv with
--ao=avfoundation
the behavior is as expected and matches QuickTime Player and VLC.This may be related to issue #11590.
Log File
coreaudio-output.txt
avfoundation-output.txt
Sample Files
I downloaded the YouTube video Stereo Test - Left/Right Audio Test for Headphones/Speakers like so:
yt-dlp -f 137+140 https://www.youtube.com/watch?v=YwNs1Z0qRY0
mediainfo:
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: