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

audio-spdif doesn't passthrough aac or flac #14844

Open
Snuffpig opened this issue Sep 13, 2024 · 3 comments
Open

audio-spdif doesn't passthrough aac or flac #14844

Snuffpig opened this issue Sep 13, 2024 · 3 comments

Comments

@Snuffpig
Copy link

Expected behavior of the wanted feature

Wouldn't it be wonderful if mpv also could passthrough AAC and FLAC encoded audio straight to a users' AVR, soundbar or TV?

What's stopping us from expanding the functionality of audio-spdif to include this for the people who'd like this?

Alternative behavior of the wanted feature

No response

Log File

No response

Sample Files

No response

@mitzsch
Copy link
Contributor

mitzsch commented Sep 17, 2024

AAC and FLAC are no valid passthrough formats. Your AVR may only show them as supported, as the internal player component can decode those formats. (via e.g. DLNA/USB/SMB Share)

Edit:
If you want lossless audio playback of those formats specify the audio output. This will decode the audio to PCM and is sent unaltered.
For Windows for example run: "mpv.com music.flac -audio-exclusive -audio-channels=auto"

@Snuffpig
Copy link
Author

But could they be valid passthrough formats though? My AVR and soundbars can natively decode AAC and FLAC and would prefer them to do it rather than mpv; when I'm using hdmi (which I understand is mediated by audio-spdif) that mpv just passes them through.

Why can't it be that way for AAC and FLAC?

@mitzsch
Copy link
Contributor

mitzsch commented Sep 18, 2024

But could they be valid passthrough formats though?
Why can't it be that way for AAC and FLAC?

No, because it's simply not specified for HDMI/Toslink/DP.
So there is nothing we can do about it - passthrough of those formats would be out of specs...

Only DD/DD+/TrueHD/Atmos/DTS/DTS-HD HRA/DTS-HD MA/DTSX are valid and working.

Your best bet is to decode them to PCM and send it that way.

My AVR and soundbars can natively decode AAC and FLAC

That is for the internal player, not for audio over HDMI (again, not specified, out of specs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants