MPV Shim for Plex (Cast to MPV on Linux/Windows)

Yes I can select it but I get: “An error has occurred, please try again later”

Does it work on the web client?

It does! :slight_smile:

I guess it is broken from the mobile app? Are you using Android? Some users have reported it was broken in the past.

yes, I am running Android 10 on my Essential Phone, you are on to something with Android as it works fine from my iPad mini. Will try it on my old LG G5 and see what I get.

Works from the LG G5 which is on 8.0.0

Unfortunately I don’t have any android devices, so someone else would probably have to look at this.

Ok, thank you for helping out with troubleshooting.

The latest Plex Media Server breaks playback to this client through the web player. There are workarounds, but none are ideal and no fix is currently planned on my end.

I want to thank you. This is really the best Plex experience I ever had.

I don’t like the UI of Plex desktop clients. They often cover the subtitles on pause, have this giant play icon in the middle on pause which interferes with the screenshots, they are usually slow at navigation, buffering and other things. I wanted to use my old (but core i5) laptop as HTPC, but even if I select everything with my iPad and just cast to any official PC client, the video lags as hell there! But plays in vanilla mpv just fine, so I had to give up on library and just launched files from the network folder when I wanted the big screen experience. I dunno why I didn’t google “plex cast to mpv” immediately back then last christmas, and discovered your client only a few month ago. But you are a life saver. Before I was even thinking of buying an expensive Apple TV cause I’ve heard their Plex is the best TV experience (I already have an Android TV, but the Plex there is just not good either, and unlike on Apple products it’s not mpv-based, so no fancy subs support etc).

I’m really used to Plex, so I hope they won’t ruin the thing completely. But will try Jellyfin anyway.

I also wanted to ask a few things. Is an external mpv mode compatible with mpv.net? And is it not possible with Plex to get the real filenames to be displayed (on top when start playing and at the bottom on hover)?

Another thing - after having this experience, I’ve started dreaming of casting Youtube from mobile to mpv. First I just tried the Youtube app casting with the useragent hack for desktop Chrome, but it works there only with Youtube TV UI and requires linking. And the UI is bad, and missing functions like the playback speed. So I started to think of other possible ways to cast straight from Youtube app to the minimalist mpv UI. mpv is capable of playing youtube videos by link via youtube-dl, so if it’s possible to share the link to mpv, even if we won’t have controls synced, we can still have some sort of cast. I’m not sure how your mpv shim is working, but I immediately thought about having a background web server on PC, waiting for a request containing a url sent to it. And it looks like it possible to share the url from Youtube app to the Siri Shortcuts and then make a request.

Do you think that youtube-mpv-shim idea is viable at all? And are you interested in trying to implement it? I have considerably less experience in implementing such things, but what comes to mind is https://github.com/Kayomani/PlexExternalPlayer and https://add0n.com/send-to.html?from=mpv. Both using the extension+daemon paradigm, and can be researched for ideas to adapt for mobile cast use.

Is an external mpv mode compatible with mpv.net?

I haven’t tested it, but if you can specify the IPC socket it will often work. It depends on the application. I know for instance that Celluloid works.

And is it not possible with Plex to get the real filenames to be displayed (on top when start playing and at the bottom on hover)?

It should be possible but would need a code change.

Do you think that youtube-mpv-shim idea is viable at all? And are you interested in trying to implement it?

I’ve thought about it. If they ever break running YouTube on TV with a spoofed user agent on a PC, I’ll really gain an interest, but it would probably take a huge amount of reverse engineering and upkeep.

1 Like

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