Dolby TrueHD passthrough - modified mpv build

New TrueHD mpv builds:

mpv with old trueHD logic:

mpv with new and patched trueHD logic:

2 Likes

Could you do a new build? There was an important addition to libplacebo support in mpv a couple of days ago. Or, will the build I run locally automatically pick that up?

Thanks. Vern

His build was updated 2 days ago to the latest 0.37 build.

Your build will feature the latest libplacebo additions. All the changes to libplacebo are pulled from the original source. The only change that needs intervention from my side is ffmpeg and mpv (depending on the mpv version you want to build, if you build the mpv-xtruehd version, then only the ffmpeg code is changed by me.)

Unfortunately, many libplacebo updates require a corresponding update in mpv to make the changes visible to the user.
It would be nice if you could find a way to also fetch the mpv master, but I suppose that may not be possible.
It’s not really that big an issue as long as the frequency of libplacebo changes are kept low.

That is correct.

There is already a way. If you don´t need the additions made to mpv that are required for Plex HTPC with HDR passthrough, simply run mpv-otruehd or mpv-ntruehd. This fetches the latest mpv from the original repository and builds it against the modified ffmpeg code.

Also note: Somehow it is now needed to perform a “git pull origin” inside the mpv-winbuild-cmake directory to get the latest additions to the winbuild build platform. (at least that is for clang builds - I will update the instructions regarding this)

1 Like

OK, thanks. I use mpv-ntruehd exclusively, so I am good with that.

A side note / question: Do you ever think that the actual cause of this issue in ffmpeg will ever be corrected? Certainly, by now they are aware of the problem…

I definitely appreciate all your hard work on this.

Trying to build mpv-ntruehd but failing at Vulkan build.

To be honest, I don´t think it will get fixed somewhere soon. Yeah, the devs know (for years by now!) that there is an issue but FFmpeg is a generalist when it comes to video and audio, audio passthrough is only a very very small part of the program + you need an AVR setup to properly test it. Not many of the devs have such a setup for testing…

However, I´m fine with the state as it is now. We can build it ourselves and maintain it ourselves…

Give it a clean rebuild/start from scratch.

Yeah I am already doing that. New git and everything and I still needed to clear the prefixes again but now it’s got further than before but now it fails at: Performing configure step for ‘mpv-ntruehd’. ERROR: Dependency “sdl2” not found

Is anyone having success at building mpv-ntruehd with Clang at the moment?

Works fine on my end. (Also make sure you are running meson 1.3 or newer)

I’ve got the latest version of meson. Are you building mpv-ntruehd or something else?

I was building mpv-ntruehd and mpv-plex-otruehd. Both ran without issues.

OK so I found the command line causing the issue, looked up what SDL does and it’s not important. So I disabled it and mpv builds.

Mitzsch
Would you please upload the modified build here or Github?
Just like this:Dolby TrueHD passthrough - modified mpv build - #3 by Mitzsch

For some reason, it is always failed when I download form Google Drive. :joy:

I got the sourcecode from Github (GitHub - mitzsch/mpv: 🎥 Command line video player), and try to learn how to use CMake ( mitzsch/mpv-winbuild-cmake ) to bulid mpv-2.dll by myself. But I failed because I almost know nothing about software development.

Could you help me? Thanks a lot. :laughing: :pray:

You can find some builds here. The one you linked from post #3 is way too old and I already removed it from my Google Drive.

Post Dolby TrueHD passthrough - modified mpv build - #190 by Mitzsch has some. You should be able to download them.

When you are a bit familiar with arch linux (= have a working arch install) you should be able to build mpv with the instructions given in the mpv-winbuild-cmake repo…


But I can also make a “new batch” of builds… end of year present…

Maybe if you haven’t made any 0.37 builds then it makes sense. But even then, unless the user is experiencing some major issues, they might as well just download one of your existing builds. My last CLang build was about 3 weeks ago but the last build that made any difference was probably over a month ago.

Thanks for your reply :smiling_face_with_three_hearts:

However, I failed to download “build-17.11.2023……” (Dolby TrueHD passthrough - modified mpv build - #190 by Mitzsch )from Google Drive. In fact, my links to many netdisk (such as Google Drive, Onedrive, Dropbox) are fragile. That’s why I hope it can be download from Github. Wish it will not make you feel inconvenient. :joy:

And…since I know almost nothing about arch linux…… :rofl: