-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
IINA plays audio only in mono #4983
Comments
On this:
The "now" makes it sound like it used to work? Did this happen after an IINA upgrade? For audio/video playback support IINA is using a library from the mpv project. IINA is involved with video, but audio is almost entirely handled by A problem with mono audio was reported in IINA issue #4874. For that problem I searched mpv issues and found issue mpv-player/mpv#3065. This part was interesting:
It appears that when What are you using for the audio device? Currenting IINA (through mpv) is using the Core Audio framework. In the latest release of mpv support for the AVFoundation framework has been added. Unless problems are encountered IINA will be switching to the new audio driver when upgrading mpv. That work is in progress now and will be included in the beta release of the long planned feature release. As we don't know what the problem you are encountering I can't say if the new audio driver will fix the problem or not. In scanning mpv commits there are lots of fixes in the audio area. If you can provide a mpv log file I should be able to say more about what is going on. To enable logging follow these instructions:
Once IINA has restarted, try and play the video to reproduce the problem. Then:
The The log files can also be accessed using Terminal as shown here: low-batt@gag com.colliderli.iina$ pwd
/Users/low-batt/Library/Logs/com.colliderli.iina
low-batt@gag com.colliderli.iina$ ls
2022-10-04-17-57-15_jVrbWy
low-batt@gag com.colliderli.iina$ cd 2022-10-04-17-57-15_jVrbWy
low-batt@gag 2022-10-04-17-57-15_jVrbWy$ ls
iina.log mpv.log
low-batt@gag 2022-10-04-17-57-15_jVrbWy$ With logging enabled IINA creates a new log directory each time it is started. If accessing the logs using DO NOT FORGET to disable logging once you have obtained log files for the problem being investigated. IINA does not restrict the size of log files or delete old logs. If you leave logging enabled the logs will continue to accumulate. |
Wow, thank you so much for the detailed answer! The outputs aren't 1-2 however (channel 17-18 is the standard output 1-2), so this may be what is causing this issue, as stereo works just fine when using the internal macbook speakers. This is strange since I changed the output settings to default to channel 17-18 in the audio midi settings for this interface. I attached the log. Thanks again! |
This line from the mpv log is key:
Searching the mpv project I found issue mpv-player/mpv#5042 "mpv does not map channels correctly on devices with more than 16 outputs". That issue was closed by PR mpv-player/mpv#11174 "audio/chmap: support up to 64 channels" which was merged Sept 29, 2023. The I think it is likely the above mpv issue is responsible for the fallback to mono. Can't say for sure, but the change mpv has made may allow IINA to work in the case at hand. To know for sure you would have to test the mpv player. Normally I would investigate the current mpv player behavior, but I don't have the required audio hardware. IINA may release another small bug fix release, but the main focus at the moment is on the long planned feature release. We are right at this moment working on upgrading to mpv 0.38.0. As for why this used to work… I can't explain that. Could it be that in the past you had fewer outputs and were under the mpv limit? The relevant messages in the mpv log: mpv log::
|
Hey there, so I checked if changing the spdif monitoring path from 17-18 to 15-16 would change but it's the same- still only mono sound. This may be caused by changing it from 1-2 to 15-16 but due to my setup I cannot send digital audio out to 1-2 anymore. This is very unfortunate since I grew to like IINA alot. Thank you anyway for your help. At least we know what is causing this issue |
For some reason IINA only plays back audio in mono now. I tried multiple commands but none work.
VLC, the system audio and other audio applications like Tidal work just fine.
Is this a bug? Cause I found some older threads complaining about this issue. I like IINA but I can't use it like this unfortunately :(
The text was updated successfully, but these errors were encountered: