Latest Plex HTPC Windows Update. "Unexpected Playback Error"

Server Version#:
Player Version#: 1.46.1 (Plex HTPC for Mac, Windows, and Linux - #49 by sLumpy)

After updating my Plex HTPC windows client I see that mpv.conf is no longer being read. I restored the previous version and everything is back to normal. I tried copying mpv.conf from from %localappdata% to %programfiles% but it’s still not being read.

Cannot confirm. On my end its reading the mpv.conf file like before

Aug 25, 2023 07:40:47.954 [19156] DEBUG - [MPVEngine/mpv] cplayer: Reading config file C:/Users/XXXX/AppData/Local/Plex HTPC/mpv.conf
Aug 25, 2023 07:40:47.954 [19156] DEBUG - [MPVEngine/mpv] cplayer: Applying profile 'default'...
Aug 25, 2023 07:40:47.954 [19156] DEBUG - [MPVEngine/mpv] cplayer: Setting option 'vo' = 'gpu-next' (flags = 4)
Aug 25, 2023 07:40:47.954 [19156] DEBUG - [MPVEngine/mpv] cplayer: Setting option 'tls-ca-file' = 'C:\Users\XXXX\AppData\Local\Plex HTPC\cacert.pem' (flags = 4)
Aug 25, 2023 07:40:47.954 [19156] DEBUG - [MPVEngine/mpv] cplayer: Setting option 'msg-level' = 'all=v,ffmpeg/video=status' (flags = 4)

Yeah my logs say the same thing. But my first clue of a problem was when SVP was no longer being used even though the ipc-server is in the config file. Then looking at the mpv detailed info, I can see that my changes to the default config were not being applied. So while the logs say that mpv.conf is being read, the results show that it isn’t being implemented. If you find the opposite then let me know and I will try again.

Seems to work fine on my end, just tried it with the “image-lut=” setting for a quick (and visible) check, and the lut is applied correctly, the log also says so. - tested with the shipped and with my own mpv-2.dll - both respect the mpv.conf file just fine.

Plex HTPC version also says 1.46.1

Aug 25, 2023 10:03:16.993 [15452] INFO - Starting Plex HTPC version: 1.46.1.3959-97cbd9c4
Aug 25, 2023 10:03:16.993 [15452] INFO - Running on: Windows 10 Version 2009 [10.0.22621] x86_64

Update: latest version still doesn’t work after changing mpv-2.dll.

Original reply:
Ahh there it is. The mpv-2.dll was changed wasn’t it. Doh!

New Plex HTPC update today. This time I replaced the mpv-2.dll and I’m still getting the same error. I saw something in the logs mentioning that it should be “network aware”? I that the DNS issue and isn’t that related to ffmpeg, not plex itself?

I will have a look at this later.

Can you please post the logs?

Last night I effectively rolled back to the previous version and playback was working. This morning I allowed the client to update itself again and the same problem occurs. I’ve isolated the relevant part of the logs to where I think the error occurs. Before this section looks like set-up and it’s all successful or info tagged. After this section the cycle repeats itself. Why there is mention of the YouTube capture dll I have no idea. Logs are attached.
plex logs.txt (11.5 KB)

Well, I have tried playback with the newest version on my end - with three different mpv.dll´s and all of them work.

Your log is pretty useless, as some crucial information about the used mpv version and mpv.conf is missing. Please post the full not truncated log… That is the only way we can help you.

But do you have your cacert.pem file configured? I´ve seen youtube-dl messages in the past when this option was missing…

The mpv and ffmpeg build versions were built at the same time on 04/08/2023. Also why would that matter when the previous version of plex htpc works with the same config?

I removed my mpv.conf and re-ran the Plex HTPC. I have only just noticed that the client behaviour has changed. Before I was not able to watch movies from my NAS drive over the network, but I was able to watch them locally from my hard drive. Now it’s the opposite. I can’t watch movies from my local hard drive but I can from the network drive. Very strange. Logs attached.

Thanks, Now I may have a glimpse of what is happening.

I see you are using upsteam mpv and ffmpeg without any further modifications.

  • With the shipped mpv.dll playback is working right?

  • Can you please test a version my mpv builds?
    Dolby TrueHD passthrough - modified mpv build - #149 by Mitzsch
    They also feature a ffmpeg plex network specific patch… Maybe that one is needed now with the newest version of Plex HTPC (the changelog says something about localhost behavior…)

I did see those error messages but:

  1. Nothing has changed except the Plex HTPC client.
  2. I’m using the same ffmpeg as before and it was built from your master-3 git.
  3. My NAS files do play using the same client, mpv and ffmpeg build so that explanation doesn’t make sense.

Also I understand why my NAS is now working so ignore that. The default network settings don’t work with my non-ssl NAS.

The ffmpeg github release tag in your log doesn´t line up with my master-3 repo - so there have been changes made that are not mine and I have no idea what they are… so it’s definitely not a build from me… The network bits are likely missing…

NAS => client connects via ip http://192.168.0.166.... - its also not connecting your server securely…

Local Client => connects via https://127-0-0-1.... - this time it connects securely (this was probably insecurely in the past - the changelog says that localhost connections are now also secure connections (=https))

The next few lines also state that something with your build is broken…

Sep 08, 2023 13:13:54.320 [2704] WARN - [MPVEngine/mpv] ffmpeg: https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.
Sep 08, 2023 13:13:54.320 [2704] ERROR - [MPVEngine/mpv] ffmpeg: Protocol not found. Make sure ffmpeg/Libav is compiled with networking support.

so - question again - please just try a build provided by me and check if they work…

Absolutely nothing has changed and as I said before, If there is an issue with ffmpeg and my mpv b build then why does it only affect files on my local hard drive and not on my NAS. That’s 100% illogical. If there is a problem with my mpv then it would affect ALL files played by the client. Not just some on a local hard drive that still work with the previous version of the HTPC client.

Lucky I kept all the previous mpv builds and I tried your master-3 mpv build from 30/07/2023. Same problem occurs. Logs attached.

Except for the new plex htpc version that uses a secure local host (127.0.0.1) connection…
That also explains why it works with your NAS (see my message above => “http://…”) but not with your local hard drive , as it tries to connect via “https://” = securely… As I said - this behavior is new with version 1.47.1… This does not work because the mpv/ffmpeg build is broken… With versions before 1.47.1 this was not a problem, as every connection to your server was presumably not secure (=http)

It’s just another log with your mpv version - not with mine.

Every non-https = http connection works => plays files back

OK that’s because I changed the mpv.exe but not the mpv-2.dll I suppose?

the mpv.exe is not needed, the only file needed for Plex HTPC is the mpv-2.dll.

Yes I didn’t keep those so I will pick one up from from the thread.

yes, please…

But do understand it now, why your nas works and your local pc does not?

Yes I do thanks. But none of your builds have the mpv-2.dll file that I can see.