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

MPV's interpolation not working when passthrough audio directly to A/V receiver. #12798

Closed
aaaatheone opened this issue Nov 3, 2023 · 4 comments

Comments

@aaaatheone
Copy link

aaaatheone commented Nov 3, 2023

MPV version: 0.36.0-623-g6e428c26-20231022
Windows: Windows 11 build 10.0.22621.2428
libplacebo version: v6.338.0-40
FFmpeg version: N-112499-ga76b409dd

Today I have found MPV's interpolation system just getting disabled automatically when passthrough(bitstreaming) audio directly to A/V receiver via HDMI.I think that is the only command audio-spdif=ac3,dts,dts-hd,eac3,truehd which is killing or disabling MPV's own build interpolation mechanism during playback of 24fps videos.
bellow is screenshot when not using passthrough rather then directly with windows PCM audio or PCM output to A/V receiver.In this both cases interpolation working fine.
See the green arrow section, it indicating mpv's interpolation working properly when outputting in PCM( see the yellow arrow section) audio to any devices.
Untitled
BUT
Screenshot 2023-11-03 213450
When bitstreaming, the interpolation method just disabled automatically(see the read arrow section) and I don't know how to enable it.
What more extra commands I have to put in mpv.conf file in order to play with interpolation when audio passthrough?and another additional question, why audio Sample Rate always shows 192000hz where audio source is 48000hz when bitstreaming?

@eXmendiC
Copy link

eXmendiC commented Nov 4, 2023

For interpolation you usually use "video-sync=display-resample", take a look at the docs: https://mpv.io/manual/master/#options-video-sync
"Resample audio to match the video. This mode will also try to adjust audio speed to compensate for other drift."
Passthrough makes it impossible to adjust the audio, because it's sent untouched. You could try it with another "display-" method that doesn't need audio adjusting, but that might come with huge disadvantages not worth it. There is usually no reason to passthrough audio in the first place, except PCM conversion can't handle it - which is the case for Dolby Atmos or DTS:X, see: #12703

@aaaatheone
Copy link
Author

@eXmendiC
thank you for pointed out which command have to put for resolve this issue, I have chosen display-tempo and let see any audio sync issue happen or not.Bitscreaming is impotent to me because I want to play my Home theater as pro by not touching Audio output by any conversion rather then directly to AV device.
I had another question about why always 192000hz audio sample rate when passthrough to external device when audio source is 48000hz.any logic behind it?

@eXmendiC
Copy link

eXmendiC commented Nov 4, 2023

PCM or untouched shouldn't really make a difference with a decent audio setup, lossless is lossless. Anyway, about the 192000hz: #6419

@aaaatheone
Copy link
Author

ok got the 192000hz answer. thanks

@sfan5 sfan5 closed this as completed Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants