Nvidia hardware decoding not working on some files

Indeed the shipped mpv build includes a commit that has not been merged upstream.

However, if you like you can use my mpv build, as it includes the commit. =>


Thanks for the mediainfo output.

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 19 min
Bit rate : 19.0 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.095
Stream size : 18.5 GiB (96%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 740 cd/m2
Maximum Frame-Average Light Level : 106 cd/m2

The file is nothing special and should be decoded just fine. (as you already tested with mpv)

Do you have some special settings made in the Plex HTPC settings section? It sounds like you have Experimental HDR passthrough enabled. On my system, I noticed many dropped frames with d3d11. Have a look at this thread.