jellyfin / jellyfin-mpv-shim

MPV Cast Client for Jellyfin
Other
1.5k stars 88 forks source link

Getting started: so HOW do you WATCH something? #369

Open tdbe opened 4 months ago

tdbe commented 4 months ago

Hey, terribly sorry but just was checking this out and I feel stupid. Was looking for a client that can do hdr. I read the description, installed it, configured it to a server, I have a tray icon, now um.... HOW do you browse and WATCH something? 🙃

To clarify the clarification request: is this shim thing, supposed to automatically find and open your mpv player from your pc its own mpv player, when you cast from ANOTHER jellyfin client that you already have on your PC? Is that what it does?

So it's a "Cast Receiver" or a "Cast Router" or "Cast Bridge", not a "Client for Jellyfin"? (I'm guessing that's what this is, I just looked up what "shim" means)

[This is not a bug in the classic sense, it's a doc request]

ahmed2m commented 3 months ago

That's correct -I think- the client for it would be jellyfin-media-player which afaik use mpv as a backend but I have no idea if it plays HDR content or not.

dominoto commented 3 months ago

@tdbe You can use the Jellyfin Media Player like @ahmed2m said, or you can use your Jellyfin's server web UI that you can find on your.server.IP:8096. In both cases, don't forget to find Cast to Device button in top right corner and choose the Shim. You'll maybe need to refresh the page or restart the Shim if it doesn't pick it up on first try.

Cappellohack commented 1 month ago

I'm in the same boat, kinda. I know, that you have to "cast to jellyfin-mpv-shim", but the option isn't there. I'm on Fedora 40 and installed jellyfin-mpv-shim as flatpak.

When starting it through the terminal, I get this:

2024-05-28 19:43:20,639 [    INFO] player: Using libmpv1 playback backend.
Tk_Init error: no display name and no $DISPLAY environment variable
Process PreferencesWindowProcess-2:
Traceback (most recent call last):
  File "/usr/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/app/lib/python3.11/site-packages/jellyfin_mpv_shim/gui_mgr.py", line 279, in run
    root = tk.Tk()
           ^^^^^^^
  File "/app/lib/python3.11/site-packages/tkinter/__init__.py", line 2270, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: no display name and no $DISPLAY environment variable

(jellyfin-mpv-shim:21): Gtk-CRITICAL **: 19:43:21.145: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
2024-05-28 19:48:20,387 [    INFO] clients: Performing client health check...

I can see, that the program is running in the background, but it seems to do nothing. Also: As far as I understand, you should have settings when right-clicking the tray icon? Doesn't work either.

EDIT: Works with Linux Mint 21.3, more or less...