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=<codec> passthrough not working with spdif #15524

Open
6 tasks done
joskezelensky opened this issue Dec 16, 2024 · 3 comments
Open
6 tasks done

--audio-spdif=<codec> passthrough not working with spdif #15524

joskezelensky opened this issue Dec 16, 2024 · 3 comments
Labels

Comments

@joskezelensky
Copy link

mpv Information

mpv v0.39.0-502-ge52f9758 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Dec 14 2024 00:11:14
libplacebo version: v7.350.0 (v7.349.0-30-g056b852-dirty)
FFmpeg version: N-118070-g17e474668
FFmpeg library versions:
   libavcodec      61.27.101
   libavdevice     61.4.100
   libavfilter     10.6.101
   libavformat     61.9.101
   libavutil       59.51.100
   libswresample   5.4.100
   libswscale      8.12.100

Other Information

- Windows version:
Microsoft Windows [Version 10.0.19045.5247]
- GPU model, driver and version:
	Intel(R) HD Graphics 5500

	Driver version:	20.19.15.4531
	Driver date:	29/09/2016
	DirectX version:	12 (FL 11.1)
- Source of mpv:
https://github.com/shinchiro/mpv-winbuild-cmake/releases
- Latest known working version:
/
- Issue started after the following happened:
/

Reproduction Steps

mpv --no-config --audio-spdif=truehd Triangle.of.Sadness.2022.BluRay.TrueHD.7.1.Atmos.outro.mka

Expected Behavior

atmos data gets passed through correctly

Actual Behavior

popping sound on the speakers, spdif doesn't get passed through correctly
using a Marantz ki pearl & a marantz network audio player na7004

Log File

output.txt

Sample Files

No response

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.
@joskezelensky
Copy link
Author

important to note is that the s/pdif is actually usb (digital in usb on the marantz NA7004 dac; and spdif interface (usb) on the windows machine

@jeeb
Copy link
Member

jeeb commented Dec 16, 2024

Relevant bits

[   0.094][v][ao] Trying audio driver 'wasapi'
[   0.094][v][ao/wasapi] requested format: 192000 Hz, 7.1 channels, spdif-truehd
[   0.094][d][ao/wasapi] Init wasapi
[   0.094][d][ao/wasapi] Find device ''
[   0.094][v][autoload] Prepending PXL_20241216_193854327.jpg
[   0.094][v][autoload] Prepending fabien-troncal-120.jpg
[   0.096][d][dyn_menu] update menu: Chapters
[   0.096][d][dyn_menu] commit menu items: user-data/menu/items
[   0.096][v][ao/wasapi] No device specified. Selecting default.
[   0.098][v][ao/wasapi] Selecting device '{4bfec8e1-3bae-413b-8165-b37fb63635bb}' (SPDIF Interface (NA7004 Digital In USB))
[   0.098][v][ao/wasapi] Monitoring changes in device {0.0.0.00000000}.{4bfec8e1-3bae-413b-8165-b37fb63635bb}
[   0.098][d][ao/wasapi] Init wasapi thread
[   0.099][d][ao/wasapi] Activating pAudioClient interface
[   0.102][d][ao/wasapi] Probing formats
[   0.105][v][ao/wasapi] Trying 7.1 spdif-truehd (16/16 bits) @ 192000hz (exclusive) -> unsupported
[   0.105][v][ao/wasapi] Retrying as AC3.
[   0.106][v][ao/wasapi] Trying 7.1 spdif-ac3 (16/16 bits) @ 192000hz (exclusive) -> unsupported
[   0.106][d][ao/wasapi] Uninit wasapi
[   0.106][d][ao/wasapi] Thread shutdown
[   0.106][d][ao/wasapi] Thread uninit done
[   0.106][d][ao/wasapi] Thread return
[   0.106][d][ao/wasapi] Uninit wasapi done

So the WASAPI output device is trying to get exclusive lock on the device and configure it for TrueHD (KSDATAFORMAT_SUBTYPE_IEC61937_DOLBY_MLP), and then that fails with AUDCLNT_E_UNSUPPORTED_FORMAT (since you see the "unsupported" text).

Are you sure this interface can take in TrueHD and not just E-AC-3? Could be worth getting a listing of what it says it supports if it can be queried somehow.

edit: there seem to be some additional identifiers nowadays, But KSDATAFORMAT_SUBTYPE_IEC61937_DOLBY_MLP is still the base one. So yea, querying would make sense since that hopefully would give a listing of things it might accept.

Note: none of the active developers of mpv have bitstreaming capable hardware, so in case of non-obvious issues users have to check a lot of stuff on their side.

@joskezelensky
Copy link
Author

from the dac's features list
• USB Type B digital input accepts high bit rate audio files from personal computers
and it states that opt/coax only takes pcm and no dts/dolby as input so i'm guessing that usb does support dts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants