# Nvidia hardware decoding not working on some files

**URL:** https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474
**Category:** Plex Players
**Tags:** plex-htpc
**Created:** [January 4, 2023, 7:55am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474 "2023-01-04T07:55:31Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![grimacexl](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@grimacexl](https://forums.plex.tv/u/grimacexl)
#### Post date: [January 4, 2023, 7:55am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/1 "2023-01-04T07:55:31Z")

</div>

Server Version#: 1.30.0.648\_12.0.8  
Player Version#: 1.31.1.3412-f3195b0d

When using a nvidia gt1030 in windows 10, some 4k hdr rips (typically those with lower bitrates around 20ish mbps) do not use hardware acceleration to decode and thus play slowly and desync from audio (0 percent ‘video decode’ in task manager proves this). Disabling hardware acceleration fixes the issue, but hammers my cpu obviously. Here is an example log attached. Please lemme know if you need any more info, and thanks so much in advance!

---

<div class="post-metadata">

### Author: ![Mitzsch](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mitzsch/32/308163_2.png) [@Mitzsch](https://forums.plex.tv/u/Mitzsch)
#### Post date: [January 4, 2023, 7:12pm UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/2 "2023-01-04T19:12:02Z")

</div>

Unfortunately, there is no log attached. Can you please upload your log? If possible also a mediainfo output of a file that falls back to sw decoding?

You can also try to play those files with the standalone mpv player. If decoding is also not working there, your files are probably encoded in a weird codec or encoding setting.

Download a build here =\> [Releases · shinchiro/mpv-winbuild-cmake · GitHub](https://github.com/shinchiro/mpv-winbuild-cmake/releases)

And run  
` mpv.com your-file.mkv -vo=gpu-next -hwdec=d3d11va -v` - hit i and see if it says `(hwdec: d3d11)` next to the video codec

You can also try nvdec, a decoding API that supports more codecs (for example hevc 4:4:4)  
` mpv.com your-file.mkv -vo=gpu-next -hwdec=nvdec -gpu-context=vulkan -v` - hit i and see if it says `(hwdec: nvdec)` next to the video codec.

---

<div class="post-metadata">

### Author: ![grimacexl](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@grimacexl](https://forums.plex.tv/u/grimacexl)
#### Post date: [January 5, 2023, 2:19am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/3 "2023-01-05T02:19:42Z")

</div>

Thanks for replying and so sorry about that! It ended up being too long to paste in the body of the post, so here’s a pastebin

> **[grimacexlplexhtpclog - Pastebin.com](https://pastebin.com/NmvK517n)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

turns out another potential bug or issue with plexhtpc is that it gives a verbose log no matter what you set the settings to (this log is huge and I set it to INFO only)

I have tried it in [mpv.com](http://mpv.com) and it did play well, but I didn’t use the command line arguments to insist on a decoder like you’ve shown, and I’ll do that now. In the meantime there’s my log.

---

<div class="post-metadata">

### Author: ![kd6icz](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/kd6icz/32/18712_2.png) [@kd6icz](https://forums.plex.tv/u/kd6icz)
#### Post date: [January 5, 2023, 3:02am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/4 "2023-01-05T03:02:12Z")

</div>

I believe there are a couple of other threads about this. I too am having issues with transcoding on some Blu Ray MKV files using my Tesla T4. Worked flawlessly prior to the last release.

---

<div class="post-metadata">

### Author: ![grimacexl](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@grimacexl](https://forums.plex.tv/u/grimacexl)
#### Post date: [January 5, 2023, 4:34am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/5 "2023-01-05T04:34:15Z")

</div>

ok thanks for your patience. mpv gives a d3d11va under hw dec when running it in dvd11va  
but the second command gives this error in the command line and fails:

[cplayer] Built with NDEBUG.  
[cplayer] Setting option ‘vo’ = ‘gpu-next’ (flags = 8)  
[cplayer] Setting option ‘hwdec’ = ‘nvdec’ (flags = 8)  
[cplayer] Setting option ‘gpu-context’ = ‘vulkan’ (flags = 8)  
[cplayer] Error parsing option gpu-context (option parameter could not be parsed)  
[cplayer] Setting commandline option --gpu-context=vulkan failed.  
[cplayer] Exiting… (Fatal error)

---

<div class="post-metadata">

### Author: ![grimacexl](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@grimacexl](https://forums.plex.tv/u/grimacexl)
#### Post date: [January 5, 2023, 4:58am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/6 "2023-01-05T04:58:37Z")

</div>

Ok so ive made more progress. Now knowing its an issue with the mpv bundled with this release, I replaced the mpv-2.dll in C:\program files\Plex\Plex HTPC with one from a new build of libmpv (Jan-1st) and it plays with full hw accell! It does however introduce new bugs, as plex team must use a custom version of the dll, I now have no plex UI while playing the video (can’t bring up the bottom plex menu during playback, you know stop play pause skip etc etc) and hitting escape and returning to the plex menu, it wont play any subsequent videos without erroring out and needs to be restarted to play another movie. This is obviously due to using the generic mpv-2.dll file rather than what I assume is a custom one that plex needs. Thanks hopefully this gives someone with the knowhow to fix this the right info to sort it!

---

<div class="post-metadata">

### Author: ![grimacexl](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@grimacexl](https://forums.plex.tv/u/grimacexl)
#### Post date: [January 5, 2023, 7:20am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/7 "2023-01-05T07:20:16Z")

</div>

@Mitzsch also forgot to add the mediainfo for the file you were asking about!  
here it is!

General  
Unique ID : 50896795525907652371843742124272020744 (0x264A5DC3100A7D7FE0EE82B267B06D08)  
Complete name : Y:\Movies\Glass Onion A Knives Out Mystery (2022)\Glass Onion A Knives Out Mystery (2022) WEBDL-2160p.mkv  
Format : Matroska  
Format version : Version 4  
File size : 19.2 GiB  
Duration : 2 h 21 min  
Overall bit rate : 19.5 Mb/s  
Writing application : mkvmerge v67.0.0 (‘Under Stars’) 64-bit  
Writing library : libebml v1.4.2 + libmatroska v1.6.4

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

Audio  
ID : 2  
Format : E-AC-3 JOC  
Format/Info : Enhanced AC-3 with Joint Object Coding  
Commercial name : Dolby Digital Plus with Dolby Atmos  
Codec ID : A\_EAC3  
Duration : 2 h 21 min  
Bit rate mode : Constant  
Bit rate : 768 kb/s  
Channel(s) : 6 channels  
Channel layout : L R C LFE Ls Rs  
Sampling rate : 48.0 kHz  
Frame rate : 31.250 FPS (1536 SPF)  
Compression mode : Lossy  
Stream size : 775 MiB (4%)  
Language : English  
Service kind : Complete Main  
Default : Yes  
Forced : No  
Complexity index : 16  
Number of dynamic objects : 15  
Bed channel count : 1 channel  
Bed channel configuration : LFE

Text #1  
ID : 3  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 13 min  
Bit rate : 86 b/s  
Frame rate : 0.292 FPS  
Count of elements : 2340  
Stream size : 84.2 KiB (0%)  
Title : English [SDH]  
Language : English  
Default : No  
Forced : No

Text #2  
ID : 4  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 115 b/s  
Frame rate : 0.242 FPS  
Count of elements : 2016  
Stream size : 117 KiB (0%)  
Title : Arabic  
Language : Arabic  
Default : No  
Forced : No

Text #3  
ID : 5  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 67 b/s  
Frame rate : 0.234 FPS  
Count of elements : 1945  
Stream size : 68.3 KiB (0%)  
Title : Basque  
Language : Basque  
Default : No  
Forced : No

Text #4  
ID : 6  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 65 b/s  
Frame rate : 0.237 FPS  
Count of elements : 1974  
Stream size : 67.0 KiB (0%)  
Title : Catalan  
Language : Catalan  
Default : No  
Forced : No

Text #5  
ID : 7  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 61 b/s  
Frame rate : 0.240 FPS  
Count of elements : 1997  
Stream size : 62.1 KiB (0%)  
Title : Chinese Simplified  
Language : Chinese  
Default : No  
Forced : No

Text #6  
ID : 8  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 60 b/s  
Frame rate : 0.249 FPS  
Count of elements : 2074  
Stream size : 62.0 KiB (0%)  
Title : Chinese Traditional  
Language : Chinese  
Default : No  
Forced : No

Text #7  
ID : 9  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 61 b/s  
Frame rate : 0.235 FPS  
Count of elements : 1953  
Stream size : 62.0 KiB (0%)  
Title : Croatian  
Language : Croatian  
Default : No  
Forced : No

Text #8  
ID : 10  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 12 min  
Bit rate : 67 b/s  
Frame rate : 0.250 FPS  
Count of elements : 1994  
Stream size : 65.5 KiB (0%)  
Title : Czech  
Language : Czech  
Default : No  
Forced : No

Text #9  
ID : 11  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 13 min  
Bit rate : 75 b/s  
Frame rate : 0.283 FPS  
Count of elements : 2261  
Stream size : 74.2 KiB (0%)  
Title : Czech [SDH]  
Language : Czech  
Default : No  
Forced : No

Text #10  
ID : 12  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 64 b/s  
Frame rate : 0.238 FPS  
Count of elements : 1985  
Stream size : 65.5 KiB (0%)  
Title : Danish  
Language : Danish  
Default : No  
Forced : No

Text #11  
ID : 13  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 61 b/s  
Frame rate : 0.213 FPS  
Count of elements : 1777  
Stream size : 62.2 KiB (0%)  
Title : Dutch  
Language : Dutch  
Default : No  
Forced : No

Text #12  
ID : 14  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 66 b/s  
Frame rate : 0.236 FPS  
Count of elements : 1963  
Stream size : 67.4 KiB (0%)  
Title : European Spanish  
Language : Spanish  
Default : No  
Forced : No

Text #13  
ID : 15  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 13 min  
Bit rate : 83 b/s  
Frame rate : 0.290 FPS  
Count of elements : 2317  
Stream size : 81.1 KiB (0%)  
Title : European Spanish [SDH]  
Language : Spanish  
Default : No  
Forced : No

Text #14  
ID : 16  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 64 b/s  
Frame rate : 0.237 FPS  
Count of elements : 1977  
Stream size : 66.0 KiB (0%)  
Title : Filipino  
Language : fil  
Default : No  
Forced : No

Text #15  
ID : 17  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 64 b/s  
Frame rate : 0.225 FPS  
Count of elements : 1871  
Stream size : 65.2 KiB (0%)  
Title : Finnish  
Language : Finnish  
Default : No  
Forced : No

Text #16  
ID : 18  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 63 b/s  
Frame rate : 0.232 FPS  
Count of elements : 1932  
Stream size : 64.2 KiB (0%)  
Title : French  
Language : French  
Default : No  
Forced : No

Text #17  
ID : 19  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 13 min  
Bit rate : 96 b/s  
Frame rate : 0.291 FPS  
Count of elements : 2322  
Stream size : 94.3 KiB (0%)  
Title : French [SDH]  
Language : French  
Default : No  
Forced : No

Text #18  
ID : 20  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 61 b/s  
Frame rate : 0.236 FPS  
Count of elements : 1963  
Stream size : 62.8 KiB (0%)  
Title : Galician  
Language : Galician  
Default : No  
Forced : No

Text #19  
ID : 21  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 65 b/s  
Frame rate : 0.234 FPS  
Count of elements : 1951  
Stream size : 66.7 KiB (0%)  
Title : German  
Language : German  
Default : No  
Forced : No

Text #20  
ID : 22  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 13 min  
Bit rate : 94 b/s  
Frame rate : 0.298 FPS  
Count of elements : 2381  
Stream size : 92.2 KiB (0%)  
Title : German [SDH]  
Language : German  
Default : No  
Forced : No

Text #21  
ID : 23  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 111 b/s  
Frame rate : 0.239 FPS  
Count of elements : 1986  
Stream size : 113 KiB (0%)  
Title : Greek  
Language : Greek  
Default : No  
Forced : No

Text #22  
ID : 24  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 106 b/s  
Frame rate : 0.239 FPS  
Count of elements : 1992  
Stream size : 108 KiB (0%)  
Title : Hebrew  
Language : Hebrew  
Default : No  
Forced : No

Text #23  
ID : 25  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 67 b/s  
Frame rate : 0.234 FPS  
Count of elements : 1950  
Stream size : 68.3 KiB (0%)  
Title : Hungarian  
Language : Hungarian  
Default : No  
Forced : No

Text #24  
ID : 26  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 13 min  
Bit rate : 87 b/s  
Frame rate : 0.292 FPS  
Count of elements : 2336  
Stream size : 85.2 KiB (0%)  
Title : Hungarian [SDH]  
Language : Hungarian  
Default : No  
Forced : No

Text #25  
ID : 27  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 63 b/s  
Frame rate : 0.239 FPS  
Count of elements : 1990  
Stream size : 64.3 KiB (0%)  
Title : Indonesian  
Language : Indonesian  
Default : No  
Forced : No

Text #26  
ID : 28  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 64 b/s  
Frame rate : 0.236 FPS  
Count of elements : 1964  
Stream size : 65.3 KiB (0%)  
Title : Italian  
Language : Italian  
Default : No  
Forced : No

Text #27  
ID : 29  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 12 min  
Bit rate : 82 b/s  
Frame rate : 0.241 FPS  
Count of elements : 1914  
Stream size : 80.1 KiB (0%)  
Title : Italian [SDH]  
Language : Italian  
Default : No  
Forced : No

Text #28  
ID : 30  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 55 b/s  
Frame rate : 0.215 FPS  
Count of elements : 1786  
Stream size : 56.1 KiB (0%)  
Title : Japanese  
Language : Japanese  
Default : No  
Forced : No

Text #29  
ID : 31  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 68 b/s  
Frame rate : 0.242 FPS  
Count of elements : 2014  
Stream size : 69.1 KiB (0%)  
Title : Korean  
Language : Korean  
Default : No  
Forced : No

Text #30  
ID : 32  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 61 b/s  
Frame rate : 0.239 FPS  
Count of elements : 1987  
Stream size : 63.0 KiB (0%)  
Title : Malay  
Language : Malay  
Default : No  
Forced : No

Text #31  
ID : 33  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 63 b/s  
Frame rate : 0.230 FPS  
Count of elements : 1911  
Stream size : 64.2 KiB (0%)  
Title : Norwegian Bokmål  
Language : Norwegian Bokmal  
Default : No  
Forced : No

Text #32  
ID : 34  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 61 b/s  
Frame rate : 0.234 FPS  
Count of elements : 1951  
Stream size : 62.8 KiB (0%)  
Title : Polish  
Language : Polish  
Default : No  
Forced : No

Text #33  
ID : 35  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 68 b/s  
Frame rate : 0.238 FPS  
Count of elements : 1982  
Stream size : 69.3 KiB (0%)  
Title : Portuguese  
Language : Portuguese  
Default : No  
Forced : No

Text #34  
ID : 36  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 64 b/s  
Frame rate : 0.239 FPS  
Count of elements : 1990  
Stream size : 65.3 KiB (0%)  
Title : Portuguese Brazilian  
Language : Portuguese  
Default : No  
Forced : No

Text #35  
ID : 37  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 82 b/s  
Frame rate : 0.305 FPS  
Count of elements : 2544  
Stream size : 83.7 KiB (0%)  
Title : Portuguese Brazilian [SDH]  
Language : Portuguese  
Default : No  
Forced : No

Text #36  
ID : 38  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 66 b/s  
Frame rate : 0.237 FPS  
Count of elements : 1974  
Stream size : 68.0 KiB (0%)  
Title : Romanian  
Language : Romanian  
Default : No  
Forced : No

Text #37  
ID : 39  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 105 b/s  
Frame rate : 0.238 FPS  
Count of elements : 1984  
Stream size : 108 KiB (0%)  
Title : Russian  
Language : Russian  
Default : No  
Forced : No

Text #38  
ID : 40  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 65 b/s  
Frame rate : 0.236 FPS  
Count of elements : 1969  
Stream size : 66.5 KiB (0%)  
Title : Spanish  
Language : Spanish  
Default : No  
Forced : No

Text #39  
ID : 41  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 13 min  
Bit rate : 84 b/s  
Frame rate : 0.284 FPS  
Count of elements : 2268  
Stream size : 82.6 KiB (0%)  
Title : Spanish [SDH]  
Language : Spanish  
Default : No  
Forced : No

Text #40  
ID : 42  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 66 b/s  
Frame rate : 0.224 FPS  
Count of elements : 1861  
Stream size : 67.3 KiB (0%)  
Title : Swedish  
Language : Swedish  
Default : No  
Forced : No

Text #41  
ID : 43  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 163 b/s  
Frame rate : 0.240 FPS  
Count of elements : 1996  
Stream size : 166 KiB (0%)  
Title : Thai  
Language : Thai  
Default : No  
Forced : No

Text #42  
ID : 44  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 71 b/s  
Frame rate : 0.231 FPS  
Count of elements : 1920  
Stream size : 72.4 KiB (0%)  
Title : Turkish  
Language : Turkish  
Default : No  
Forced : No

Text #43  
ID : 45  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 19 min  
Bit rate : 89 b/s  
Frame rate : 0.275 FPS  
Count of elements : 2296  
Stream size : 91.1 KiB (0%)  
Title : Turkish [SDH]  
Language : Turkish  
Default : No  
Forced : No

Text #44  
ID : 46  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 106 b/s  
Frame rate : 0.239 FPS  
Count of elements : 1994  
Stream size : 108 KiB (0%)  
Title : Ukrainian  
Language : Ukrainian  
Default : No  
Forced : No

Text #45  
ID : 47  
Format : UTF-8  
Codec ID : S\_TEXT/UTF8  
Codec ID/Info : UTF-8 Plain Text  
Duration : 2 h 18 min  
Bit rate : 82 b/s  
Frame rate : 0.237 FPS  
Count of elements : 1972  
Stream size : 84.3 KiB (0%)  
Title : Vietnamese  
Language : Vietnamese  
Default : No  
Forced : No

---

<div class="post-metadata">

### Author: ![Mitzsch](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mitzsch/32/308163_2.png) [@Mitzsch](https://forums.plex.tv/u/Mitzsch)
#### Post date: [January 5, 2023, 8:24am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/8 "2023-01-05T08:24:07Z")

</div>

Okay, so let’s start from the beginning.  
Your log showed it is using hw decoding.

```auto
1. Video:
2. Codec: hevc (HEVC (High Efficiency Video Coding))
3. Size: ? x ?
4. Duration: 8462.75
5. FPS (container): 24.00
6. FPS (filters): 0.00
7. Aspect: 1.78
8. Bitrate: ?
9. Display FPS: 24.00
10. Hardware Decoding: d3d11va ( d3d11va )

```

`1. Jan 04, 2023 02:57:59.476 [3784] DEBUG - [MPVEngine/mpv] vd: Trying hardware decoding via hevc-d3d11va.`

This is weird. Was this the file that played slowly and desync?

> [@grimacexl](#):
>
> cplayer] Error parsing option gpu-context (option parameter could not be parsed)  
> [cplayer] Setting commandline option --gpu-context=vulkan failed.

Sorry, my fault.` gpu-context` needs be `winvk` and `gpu-api` needs be `vulkan` (although the latter is not necessarily needed for testing). Can you please try again? (so see if vulkan/nvdec also works)

`mpv.com your-file.mkv -vo=gpu-next -hwdec=nvdec -gpu-context=winvk -v`

---

<div class="post-metadata">

### Author: ![Mitzsch](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mitzsch/32/308163_2.png) [@Mitzsch](https://forums.plex.tv/u/Mitzsch)
#### Post date: [January 5, 2023, 8:32am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/9 "2023-01-05T08:32:04Z")

</div>

> [@grimacexl](#):
>
> It does however introduce new bugs, as plex team must use a custom version of the dll,

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

> <https://github.com/mpv-player/mpv/pull/10713>
>
> Added display width/height to \`overlay-add\` command to allow overlay to be scale…d on display. Useful when a fullscreen overlay is rendered at a lower resolution than the \`osd-width\`/\`height\` for performance reasons.

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

> [@Dolby TrueHD passthrough - modified mpv build](https://forums.plex.tv/t/dolby-truehd-passthrough-modified-mpv-build/802742/46):
>
> New build, this time its also a testing build including commits that were originally reverted (+ mpv debug and mpv.exe): Name: mpv-dev-x86\_64-v3-20221226-git-cb15bc4-old-truehd-spdifenc+commits.zip Size: 142799680 Bytes (136 MiB) CRC32: EEB3050E CRC64: FEF4F305F416721E SHA256: a0ccc0745180f6b66dc31a8f4d1aaf123bb77da54ca1b0f1f884d7cbe960da32 SHA1: 238887b3958abd4a35082ad74cc02b7642b88a0a BLAKE2sp: d656bbb74d8cf3d9a5224a336990331a22c926d12edc751d5b410c05640660f0 MD5: 341f4bfeae8b8a46f5dffaaf93…

* * *

Thanks for the mediainfo output.

```auto
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.

> [@\[HDR Metadata Passthrough\] - Plex HTPC for Windows](https://forums.plex.tv/t/hdr-metadata-passthrough-plex-htpc-for-windows/794358/70):
>
> I now finally had time to test the build and the new setting. Metadata passthrough works perfectly, every value present in the file is forwarded correctly as it should be and the image looks phenomenal. Awesome! The playback controls/ overlay also behaves fine, it’s fast enough and usable. The resolution difference of the UI is also not visible at a normal viewing distance. The only problem I encountered is the “bad-ish” performance of playback when the HDR metadata passthrough setting is enabl…

---

<div class="post-metadata">

### Author: ![grimacexl](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@grimacexl](https://forums.plex.tv/u/grimacexl)
#### Post date: [January 5, 2023, 9:41am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/10 "2023-01-05T09:41:33Z")

</div>

> [@Mitzsch](#):
>
> This is weird. Was this the file that played slowly and desync?

yes. I deleted the logs, ran plex htpc, selected the problematic movie, played it for one second and noticed the slow playback, exited the app as fast as I could to create as small of a log file as I could. then copy pasted the new log created into pastebin.

> [@Mitzsch](#):
>
> [mpv.com](http://mpv.com) your-file.mkv -vo=gpu-next -hwdec=nvdec -gpu-context=winvk -v

Plays fine in vulkan apart from about 34 dropped frames at the beginning as everything loads.

> [@Mitzsch](#):
>
> However, if you like you can use my mpv build, as it includes the commit. =\>

Hell yeah, and that’ll sort the issue for me. However the root cause of this is unknown though!

> [@Mitzsch](#):
>
> 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.

yeah I’ve enabled and disabled it during testing and the hdr passthrough had no effect on the playbility of this file. Other than that I have it setup for audio passthrough through hdmi and ticked all the options as my avr handles them all nativly (denon 3700h). No other fancy settings enabled. Ill try to revert back to the normal dll and reset the app settings and try again and report back. Thanks again for all your help!!!

---

<div class="post-metadata">

### Author: ![grimacexl](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@grimacexl](https://forums.plex.tv/u/grimacexl)
#### Post date: [January 5, 2023, 10:00am UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/11 "2023-01-05T10:00:20Z")

</div>

ok i reverted to app defaults, replaced the normal mpv.dll included in the install an tried again. Still desyncing and here’s the new log just for posterity’s sake

> **[grimacexlplexhtpcpaste2 - Pastebin.com](https://pastebin.com/LLt31Jyk)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

### Author: ![Mitzsch](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mitzsch/32/308163_2.png) [@Mitzsch](https://forums.plex.tv/u/Mitzsch)
#### Post date: [January 5, 2023, 12:00pm UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/12 "2023-01-05T12:00:34Z")

</div>

Okay, well there is something wrong

```auto
1. Jan 05, 2023 04:47:00.052 [6444] WARN - [MPVEngine/mpv] cplayer:
2. Jan 05, 2023 04:47:00.052 [6444] WARN - [MPVEngine/mpv] cplayer: Audio/Video desynchronisation detected! Possible reasons include too slow
3. Jan 05, 2023 04:47:00.052 [6444] WARN - [MPVEngine/mpv] cplayer: hardware, temporary CPU spikes, broken drivers, and broken files. Audio
4. Jan 05, 2023 04:47:00.052 [6444] WARN - [MPVEngine/mpv] cplayer: position will not match to the video (see A-V status field).
5. Jan 05, 2023 04:47:00.052 [6444] WARN - [MPVEngine/mpv] cplayer:
6. Jan 05, 2023 04:47:11.381 [8188] INFO - Debug info:

7. File:
8. URL: http://192.168.1.237:32400/...
9. Container: mkv
10. Native seeking: yes

* Video:
11. Codec: hevc (HEVC (High Efficiency Video Coding))
12. Size: 3840 x 2160
13. Duration: 8462.75
14. FPS (container): 24.00
15. FPS (filters): 24.00
16. Aspect: 1.78
17. Bitrate: 21,762,217
18. Display FPS: 60.00
19. Hardware Decoding: d3d11va ( d3d11va )

* Audio:
...

* Cache:
...

* Misc:
29. Seekable: true
...
33. Frame drop count: 191
34 Time: 15.50 / 8462.75 ( 0.18 %) 
35. State: playing

```

191 dropped frames within 15 seconds with hw decoding one???.. Thats not normal. How is your CPU and GPU utilization? Can you try to set your Video quality to low in the Plex HTPC settings? (doesnt mean the image will look bad, only some gpu-heavy filters are not applied then)

Please also try to:  
add  
`vo=gpu-next` to the mpv.conf → How does it behave?

Try vulkan instead, as it can be more performant:  
add:

```auto
vo=gpu-next
gpu-api=vulkan
gpu-context=winvk

```

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [April 5, 2023, 12:00pm UTC](https://forums.plex.tv/t/nvidia-hardware-decoding-not-working-on-some-files/825474/13 "2023-04-05T12:00:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
