Package: jellyfin-mpv-shim
Jellyfin MPV ShimJellyfin MPV Shim is a cross-platform cast client for Jellyfin.
It has support for all your advanced media files without transcoding, as well as tons of
features which set it apart from other multimedia clients:Direct play most media using MPV.Watch videos with friends using SyncPlay.Offers a shim mode which runs in the background.The Jellyfin mobile apps can fully control the client.Reconfigure subtitlesfor an entire season at once.Supports all of theMPV keyboard shortcuts.Enhance your video withShader PacksandSVP Integration.Optionally share your media activity with friends using Discord Rich Presence.Most features, as well as MPV itself,can be extensively configured.You can configure the player to use anexternal MPV playerof your choice.Enable a chromecast-like experience withDisplay Mirroring.You cantrigger commands to runwhen certain events happen.To learn more, keep reading. This README explains everything, includingconfiguration,tips & tricks, anddevelopment information.Getting StartedIf you are on Windows, simplydownload the binary.
If you are using Linux, you caninstall via flathuborinstall via pip. If you are on macOS, see themacOS Installationsection below.To use the client, simply launch it and log into your Jellyfin server. You’ll need to enter the
URL to your server, for examplehttp://server_ip:8096orhttps://secure_domain. Make sure to
include the subdirectory and port number if applicable. You can then cast your media
from another Jellyfin application.The application runs with a notification icon by default. You can use this to edit the server settings,
view the application log, open the config folder, and open the application menu. Unlike Plex MPV Shim,
authorization tokens for your server are stored on your device, but you are able to cast to the player
regardless of location.Note: Due to the huge number of questions and issues that have been submitted about URLs, I now tolerate
bare IP addresses and not specifying the port by default. If you want to connect to port 80 instead of
8096, you must add the:80to the URL because:8096is now the default.LimitationsMusic playback and Live TV are not supported.The client can’t be shared seamlessly between multiple users on the same server. (Link to issue.)Known IssuesPlease also note that the on-screen controller for MPV (if available) cannot change the
audio and subtitle track configurations for transcoded media. It also cannot load external
subtitles. You must eitheruse the menuor the application you casted from.Please note the following issues with controlling SyncPlay:If you attempt to join a SyncPlay group when casting to MPV Shim, it will play the media but it will not activate SyncPlay.You can, however, proceed to activate SyncPlayusing the menu within MPV.If you would like to create a group or join a group for currently playing media,use menu within MPV.SyncPlay as of 10.7.0 is new and kind of fragile. You may need to rejoin or even restart the client. Please report any issues you find.Music playback sort-of works, but repeat, shuffle, and gapless playback have not been implemented and
would require major changes to the application to properly support, as it was built for video.The shader packs feature is sensitive to graphics hardware. It may simply just not work on your computer.
You may be able to use the log files to get some more diagnostic information. If you're really unlucky,
you'll have to disable the feature by pressingkto restore basic functionality.
If you find the solution for your case,pleasesend me any information you can provide, as every test case helps.Advanced FeaturesMenuTo open the menu, presscon your computer or use the navigation controls
in the mobile/web app.The menu enables you to:Adjust video transcoding quality.Change the default transcoder settings.Change subtitles or audio, while knowing the track names.Change subtitles or audio for an entire series at once.Mark the media as unwatched and quit.Enable and disable SyncPlay.Configure shader packs and SVP profiles.Take screenshots.On your computer, use the mouse or arrow keys, enter, and escape to navigate.
On your phone, use the arrow buttons, ok, back, and home to navigate.Shader PacksShader packs are a recent feature addition that allows you to easily use advanced video
shaders and video quality settings. These usually require a lot of configuration to use,
but MPV Shim's default shader pack comes withFSRCNNXandAnime4Kpreconfigured. Try experimenting with video
profiles! It may greatly improve your experience.Shader Packs are ready to use as of the most recent MPV Shim version. To use, simply
navigate to theVideo Playback Profilesoption and select a profile.For details on the shader settings, please seedefault-shader-pack.
If you would like to customize the shader pack, there are details in the configuration section.SVP IntegrationSVP integration allows you to easily configure SVP support, change profiles, and enable/disable
SVP without having to exit the player. It is not enabled by default, please see the configuration
instructions for instructions on how to enable it.Display MirroringThis feature allows media previews to show on your display before you cast the media,
similar to Chromecast. It is not enabled by default. To enable it, do one of the following:Using the systray icon, click "Application Menu". Go to preferences and enable display mirroring.Use the arrow keys, escape, and enter to navigate the menu.Cast media to the player and pressc. Go to preferences and enable display mirroring.In the config file (see below), changedisplay_mirroringtotrue.Then restart the application for the change to take effect. To quit the application on Windows with
display mirroring enabled, press Alt+F4.Keyboard ShortcutsThis program supports most of thekeyboard shortcuts from MPV. The custom keyboard shortcuts are:< > to skip episodesq to close playerw to mark watched and skipu to mark unwatched and quitc to open the menuk disable shader packsHere are the notable MPV keyboard shortcuts:space - Pause/Playleft/right - Seek by 5 secondsup/down - Seek by 1 minutes - Take a screenshotS - Take a screenshot without subtitlesf - Toggle fullscreen,/. - Seek by individual frames[/] - Change video speed by 10%{/} - Change video speed by 50%backspace - Reset speedm - Muted - Enable/disable deinterlaceCtrl+Shift+Left/Right - Adjust subtitle delay.ConfigurationThe configuration file is located in different places depending on your platform. You can also open the
configuration folder using the systray icon if you are using the shim version. When you launch the program
on Linux or macOS from the terminal, the location of the config file will be printed. The locations are:Windows -%appdata%\jellyfin-mpv-shim\conf.jsonLinux -~/.config/jellyfin-mpv-shim/conf.jsonLinux (Flatpak) -~/.var/app/com.github.iwalton3.jellyfin-mpv-shim/config/jellyfin-mpv-shim/conf.jsonmacOS -~/Library/Application Support/jellyfin-mpv-shim/conf.jsonCygWin -~/.config/jellyfin-mpv-shim/conf.jsonYou can specify a custom configuration folder with the--configoption.TranscodingYou can adjust the basic transcoder settings via the menu.always_transcode- This will tell the client to always transcode. Default:falseThis may be useful if you are using limited hardware that cannot handle advanced codecs.Please note that Jellyfin may still direct play files that meet the transcode profile
requirements. There is nothing I can do on my end to disable this, but you can reduce
the bandwidth setting to force a transcode.transcode_hdr- Force transcode HDR videos to SDR. Default:falsetranscode_dolby_vision- Force transcode Dolby Vision videos to SDR. Default:trueIf your computer can handle it, you can get tone mapping to work for this usingvo=gpu-next.Note thatvo=gpu-nextis considered experimental by MPV at this time.transcode_hi10p- Force transcode 10 bit color videos to 8 bit color. Default:falseremote_kbps- Bandwidth to permit for remote streaming. Default:10000local_kbps- Bandwidth to permit for local streaming. Default:2147483direct_paths- Play media files directly from the SMB or NFS source. Default:falseremote_direct_paths- Apply this even when the server is detected as remote. Default:falseallow_transcode_to_h265- Allow the server to transcode mediatohevc. Default:falseIf you enable this, it'll allow remuxing to HEVC but it'll also break force transcoding of Dolby Vision and HDR content if those settings are used. (Seethis bug.)prefer_transcode_to_h265- Requests the server to transcode mediatohevcas the default. Default:falsetranscode_warning- Display a warning the first time media transcodes in a session. Default:trueforce_video_codec- Force a specified video codec to be played. Default:nullThis can be used in tandem withalways_transcodeto force the client to transcode into
the specified format.This may have the same limitations asalways_transcode.This will overridetranscode_to_h265,transcode_h265andtranscode_hi10p.force_audio_codec- Force a specified audio codec to be played. Default:nullThis can be used in tandeom withalways_transcodeto force the client to transcode into
the specified format.This may have the same limitations asalways_transcode.FeaturesYou can use the config file to enable and disable features.fullscreen- Fullscreen the player when starting playback. Default:trueenable_gui- Enable the system tray icon and GUI features. Default:trueenable_osc- Enable the MPV on-screen controller. Default:trueIt may be useful to disable this if you are using an external player that already provides a user interface.media_key_seek- Use the media next/prev keys to seek instead of skip episodes. Default:falseuse_web_seek- Use the seek times set in Jellyfin web for arrow key seek. Default:falsedisplay_mirroring- Enable webview-based display mirroring (content preview). Default:falsescreenshot_menu- Allow taking screenshots from menu. Default:truecheck_updates- Check for updates via GitHub. Default:trueThis requests the GitHub releases page and checks for a new version.Update checks are performed when playing media, once per day.notify_updates- Display update notification when playing media. Default:trueNotification will only display once until the application is restarted.discord_presence- Enable Discord rich presence support. Default:falsemenu_mouse- Enable mouse support in the menu. Default:trueThis requires MPV to be compiled with lua support.Shell Command TriggersYou can execute shell commands on media state using the config file:media_ended_cmd- When all media has played.pre_media_cmd- Before the player displays. (Will wait for finish.)stop_cmd- After stopping the player.idle_cmd- After no activity foridle_cmd_delayseconds.idle_when_paused- Consider the player idle when paused. Default:falsestop_idle- Stop the player when idle. (Requiresidle_when_paused.) Default:falseplay_cmd- After playback starts.idle_ended_cmd- After player stops being idle.Subtitle Visual SettingsThese settings may not works for some subtitle codecs or if subtitles are being burned in
during a transcode. You can configure custom styled subtitle settings through the MPV config file.subtitle_size- The size of the subtitles, in percent. Default:100subtitle_color- The color of the subtitles, in hex. Default:#FFFFFFFFsubtitle_position- The position (top, bottom, middle). Default:bottomExternal MPVThe client now supports using an external copy of MPV, including one that is running prior to starting
the client. This may be useful if your distribution only provides MPV as a binary executable (instead
of as a shared library), or to connect to MPV-based GUI players. Please note that SMPlayer exhibits
strange behaviour when controlled in this manner. External MPV is currently the only working backend
for media playback on macOS.mpv_ext- Enable usage of the external player by default. Default:falseThe external player may still be used by default iflibmpv1is not available.mpv_ext_path- The path to thempvbinary to use. By default it uses the one in the PATH. Default:nullIf you are using Windows, make sure to use two backslashes. Example:C:\\path\\to\\mpv.exempv_ext_ipc- The path to the socket to control MPV. Default:nullIf unset, the socket is a randomly selected temp file.On Windows, this is just a name for the socket, not a path like on Linux.mpv_ext_start- Start a managed copy of MPV with the client. Default:trueIf not specified, the user must start MPV prior to launching the client.MPV must be launched with--input-ipc-server=[value of mpv_ext_ipc].mpv_ext_no_ovr- Disable built-in mpv configuration files and use user defaults.Please note that some scripts and settings, such as ones to keep MPV open, may break
functionality in MPV Shim.Keyboard ShortcutsYou can reconfigure the custom keyboard shortcuts. You can also set them tonullto disable the shortcut. Please note that disabling keyboard shortcuts may make some features unusable. Additionally, if you remapq, using the default shortcut will crash the player.kb_stop- Stop playback and close MPV. (Default:q)kb_prev- Go to the previous video. (Default:<)kb_next- Go to the next video. (Default:>)kb_watched- Mark the video as watched and skip. (Default:w)kb_unwatched- Mark the video as unwatched and quit. (Default:u)kb_menu- Open the configuration menu. (Default:c)kb_menu_esc- Leave the menu. Exits fullscreen otherwise. (Default:esc)kb_menu_ok- "ok" for menu. (Default:enter)kb_menu_left- "left" for menu. Seeks otherwise. (Default:left)kb_menu_right- "right" for menu. Seeks otherwise. (Default:right)kb_menu_up- "up" for menu. Seeks otherwise. (Default:up)kb_menu_down- "down" for menu. Seeks otherwise. (Default:down)kb_pause- Pause. Also "ok" for menu. (Default:space)kb_fullscreen- Toggle fullscreen. (Default:f)kb_debug- Triggerpdbdebugger. (Default:~)kb_kill_shader- Disable shader packs. (Default:k)seek_up- Time to seek for "up" key. (Default:60)seek_down- Time to seek for "down" key. (Default:-60)seek_right- Time to seek for "right" key. (Default:5)seek_left- Time to seek for "left" key. (Default:-5)media_keys- Enable binding of MPV to media keys. Default:trueseek_v_exact- Use exact seek for up/down keys. Default:falseseek_h_exact- Use exact seek for left/right keys. Default:falseShader PacksShader packs allow you to import MPV config and shader presets into MPV Shim and easily switch
between them at runtime through the built-in menu. This enables easy usage and switching of
advanced MPV video playback options, such as video upscaling, while being easy to use.If you select one of the presets from the shader pack, it will override some MPV configurations
and any shaders manually specified inmpv.conf. If you would like to customize the shader pack,
useshader_pack_custom.shader_pack_enable- Enable shader pack. (Default:true)shader_pack_custom- Enable to use a custom shader pack. (Default:false)If you enable this, it will copy the default shader pack to theshader_packconfig folder.This initial copy will only happen if theshader_packfolder didn't exist.This shader pack will then be used instead of the built-in one from then on.shader_pack_remember- Automatically remember the last used shader profile. (Default:true)shader_pack_profile- The default profile to use. (Default:null)If you useshader_pack_remember, this will be updated when you set a profile through the UI.shader_pack_subtype- The profile group to use. The default pack containslqandhqgroups. Usehqif you have a fancy graphics card.Trickplay ThumbnailsMPV will automatically display thumbnail previews. By default it uses the Jellyfin chapter images
but it can also use JellyScrub as the source. Please note that this feature will download and
uncompress all of the chapter images before it becomes available for a video. For a 4 hour movie this
causes disk usage of about 250 MB, but for the average TV episode it is around 40 MB. It also requires
overriding the default MPV OSC, which may conflict with some custom user script. Trickplay is compatible
with any OSC that usesthumbfast, as I have added acompatibility layer.thumbnail_enable- Enable thumbnail feature. (Default:true)thumbnail_jellyscrub- Use JellyScrub as the thumbnail source instead of chapter images. (Default:false)thumbnail_osc_builtin- Disable this setting if you want to use your own custom osc but leave trickplay enabled. (Default:true)thumbnail_preferred_size- The ideal size for thumbnails. (Default:320)SVP IntegrationTo enable SVP integration, setsvp_enabletotrueand enable "External control via HTTP" within SVP
under Settings > Control options. Adjust thesvp_urlandsvp_socketsettings if needed.svp_enable- Enable SVP integration. (Default:false)svp_url- URL for SVP web API. (Default:http://127.0.0.1:9901/)svp_socket- Custom MPV socket to use for SVP.Default on Windows:mpvpipeDefault on other platforms:/tmp/mpvsocketCurrently on Windows the built-in MPV does not work with SVP. You must download MPV yourself.Download the latest MPV buildfrom here.Follow thevapoursynth instructions.Make sure to use the latest Python, not Python 3.7.In the config file, setmpv_exttotrueandmpv_ext_pathto the path tompv.exe.Make sure to use two backslashes per each backslash in the path.SyncPlayYou probably don't need to change these, but they are defined here in case you
need to.sync_max_delay_speed- Delay in ms before changing video speed to sync playback. Default:50sync_max_delay_skip- Delay in ms before skipping through the video to sync playback. Default:300sync_method_thresh- Delay in ms before switching sync method. Default:2000sync_speed_time- Duration in ms to change playback speed. Default:1000sync_speed_attempts- Number of attempts before speed changes are disabled. Default:3sync_attempts- Number of attempts before disabling sync play. Default:5sync_revert_seek- Attempt to revert seek via MPV OSC. Default:trueThis could break if you use revert-seek markers or scripts that use it.sync_osd_message- Write syncplay status messages to OSD. Default:trueDebuggingThese settings assist with debugging. You will often be asked to configure them when reporting an issue.log_decisions- Log the full media decisions and playback URLs. Default:falsempv_log_level- Log level to use for mpv. Default:infoOptions: fatal, error, warn, info, v, debug, tracesanitize_output- Prevent the writing of server auth tokens to logs. Default:truewrite_logs- Write logs to the config directory for debugging. Default:falseOther Configuration OptionsOther miscellaneous configuration options. You probably won't have to change these.player_name- The name of the player that appears in the cast menu. Initially set from your hostname.client_uuid- The identifier for the client. Set to a random value on first run.audio_output- Currently has no effect. Default:hdmiplayback_timeout- Timeout to wait for MPV to start loading video in seconds. Default:30If you're hitting this, it means files on your server probably got corrupted or deleted.It could also happen if you try to play an unsupported video format. These are rare.lang- Allows overriding system locale. (Enter a language code.) Default:nullMPV Shim should use your OS language by default.ignore_ssl_cert- Ignore SSL certificates. Default:falsePlease consider getting a certificate from Let's Encrypt instead of using this.connect_retry_mins- Number of minutes to retry connecting before showing login window. Default:0This only applies for when you first launch the program.lang_filter- Limit track selection to desired languages. Default:und,eng,jpn,mis,mul,zxxNote that you need to turn on the options below for this to actually do something.If you removeundfrom the list, it will ignore untagged items.Languages are typically inISO 639-2/B,
but if you have strange files this may not be the case.lang_filter_sub- Apply the language filter to subtitle selection. Default:Falselang_filter_audio- Apply the language filter to audio selection. Default:Falsescreenshot_dir- Sets where screenshots go.Default is the desktop on Windows and unset (current directory) on other platforms.force_set_played- This forcibly sets items as played when MPV playback finished.If you have files with malformed timestamps that don't get marked as played, enable this.raise_mpv- Windows only. Disable this if you are fine with MPV sometimes appearing behind other windows when playing.health_check_interval- The number of seconds between each client health check. Null disables it. Default:300Skip Intro SupportThis functionality is considered experimental and requires the third-partySkipIntro server plugin. It works the same ways as it did on MPV Shim for Plex.skip_intro_always- Always skip intros, without asking. Default:falseskip_intro_prompt- Prompt to skip intro via seeking. Default:falseMPV ConfigurationYou can configure mpv directly using thempv.confandinput.conffiles. (It is in the same folder asconf.json.)
This may be useful for customizing video upscaling, keyboard shortcuts, or controlling the application
via the mpv IPC server.AuthorizationThecred.jsonfile contains the authorization information. If you are having problems with the client,
such as the Now Playing not appearing or want to delete a server, you can delete this file and add the
servers again.Tips and TricksVarious tips have been found that allow the media player to support special
functionality, albeit with more configuration required.Open on Specific Monitor (#19)Please note: Edits to thempv.confwill not take effect until you restart the application. You can open the config directory by using the menu option in the system tray icon.Option 1: Select fullscreen output screen through MPV.
Determine which screen you would like MPV to show up on.If you are on Windows, right click the desktop and select "Display Settings". Take the monitor number and subtract one.If you are on Linux, runxrandr. The screen number is the number you want. If there is only one proceed toOption 2.Add the following to yourmpv.confin theconfig directory, replacing0with the number from the previous step:fs=yes
fs-screen=0Option 2: (Linux Only) If option 1 does not work, both of your monitors are likely configured as a single "screen".Runxrandr. It should look something like this:Screen 0: minimum 8 x 8, current 3520 x 1080, maximum 16384 x 16384
VGA-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   640x480       75.00    59.94  
LVDS-0 connected 1600x900+1920+180 (normal left inverted right x axis y axis) 309mm x 174mm
   1600x900      59.98*+If you want MPV to open on VGA-0 for instance, add the following to yourmpv.confin theconfig directory:fs=yes
geometry=1920x1080+0+0Option 3: (Linux Only) If your window manager supports it, you can tell the window manager to always open on a specific screen.For OpenBox:https://forums.bunsenlabs.org/viewtopic.php?id=1199For i3:https://unix.stackexchange.com/questions/96798/i3wm-start-applications-on-specific-workspaces-when-i3-starts/363848#363848Control Volume with Mouse Wheel (#48)Add the following toinput.conf:WHEEL_UP add volume 5
WHEEL_DOWN add volume -5MPRIS Plugin (#54)Setmpv_exttotruein the config. Addscript=/path/to/mpris.sotompv.conf.Run Multiple Instances (#45)You can pass--config /path/to/folderto run another copy of the player. Please
note that running multiple copies of the desktop client is currently not supported.Audio PassthroughYou can editmpv.confto support audio passthrough. Auser on Reddithad luck with this config:audio-spdif=ac3,dts,eac3 # (to use the passthrough to receiver over hdmi)
audio-channels=2 # (not sure this is necessary, but i keep it in because it works)
af=scaletempo,lavcac3enc=yes:640:3 # (for aac 5.1 tracks to the receiver)MPV Crashes with "The sub-scale option must be a floating point number or a ratio"Run the jellyfin-mpv-shim program with LC_NUMERIC=C.Use with gnome-mpv/celluloid (#61)You can usegnome-mpvwith MPV Shim, but you must launchgnome-mpvseparately before MPV Shim. (gnome-mpvdoesn't support the MPV command options directly.)Configure MPV Shim with the following options (leave the other ones):{"mpv_ext":true,"mpv_ext_ipc":"/tmp/gmpv-socket","mpv_ext_path":null,"mpv_ext_start":false,"enable_osc":false}Then withingnome-mpv, click the application icon (top left) > Preferences. Configure the following Extra MPV Options:--idle --input-ipc-server=/tmp/gmpv-socketHeavy Memory UsageA problem has been identified where MPV can use a ton of RAM after media has been played,
and this RAM is not always freed when the player goes into idle mode. Some users have
found that using external MPV lessens the memory leak. To enable external MPV on Windows:Download a copy of MPVUnzip it with 7zip.Configurempv_exttotrue. (See the config section.)Configurempv_ext_pathtoC:\\replace\\with\\path\\to\\mpv.exe. (Note usage of two\\.)Run the program and wait. (You'll probably have to use it for a while.)Let me know if the high memory usage is withmpv.exeor the shim itself.On Linux, the process is similar, except that you don't need to set thempv_ext_pathvariable.
On macOS, external MPV is already the default and is the only supported player mode.In the long term, I may look into a method of terminating MPV when not in use. This will require
a lot of changes to the software.Player Sizing (#91)MPV by default may force the window size to match the video aspect ratio, instead of allowing
resizing and centering the video accordingly. Add the following tompv.confto enable resizing
of the window freely, if desired:no-keepaspect-windowDevelopmentIf you'd like to run the application without installing it, run./run.py.
The project is written entirely in Python 3. There are no closed-source
components in this project. It is fully hackable.The project is dependent onpython-mpv,python-mpv-jsonipc, andjellyfin-apiclient-python. If you are
using Windows and would like mpv to be maximize properly,pywin32is also needed. The GUI
component usespystrayandtkinter, but there is a fallback cli mode. The mirroring dependencies
areJinja2andpywebview, along with platform-specific dependencies. (See the installation and building
guides for details on platform-specific dependencies for display mirroring.)This project is based Plex MPV Shim, which is based onhttps://github.com/wnielson/omplex, which
is available under the terms of the MIT License. The project was ported to python3, modified to
use mpv as the player, and updated to allow all features of the remote control api for video playback.The Jellyfin API client comes fromJellyfin for Kodi.
The API client was originally forked for this project and is now aseparate package.The css file for desktop mirroring is fromjellyfin-chromecastand is subject to GPL v2.0.The shaders included in the shader pack are also available under verious open source licenses,which you can read about here.Local Dev InstallationIf you are on Windows there are additional dependencies. Please see the Windows Build Instructions.Install the dependencies:sudo pip3 install --upgrade python-mpv jellyfin-apiclient-python pystray Jinja2 pywebview python-mpv-jsonipc pypresence.If you run./gen_pkg.sh --install, it will also fetch these for you.Clone this repository:git clone https://github.com/jellyfin/jellyfin-mpv-shimYou can also download a zip build.cdto the repository:cd jellyfin-mpv-shimRun prepare script:./gen_pkg.shTo do this manually, download the web client, shader pack, and build the language files.Ensure you have a copy oflibmpv1ormpvavailable.Install any platform-specific dependencies from the respective install tutorials.You should now be able to run the program with./run.py. Installation is possible withsudo pip3 install ..You can also install the package with./gen_pkg.sh --install.TranslationThis project uses gettext for translation. The current template language file isbase.potinjellyfin_mpv_shim/messages/.To regeneratebase.potand update an existing translation with new strings:./regen_pot.shTo compile all*.pofiles to*.mo:./gen_pkg.sh--skip-buildLinux InstallationYou caninstall the software from flathub. The pip installation is less integrated but takes up less space if you're not already using flatpak.If you are on Linux, you can install via pip. You'll needlibmpv1ormpvinstalled.sudopip3install--upgradejellyfin-mpv-shimIf you would like the GUI and systray features, also installpystrayandtkinter:sudopip3installpystray
sudoaptinstallpython3-tkIf you would like display mirroring support, install the mirroring dependencies:sudoaptinstallpython3-jinja2python3-webview# -- OR --sudopip3installjellyfin-mpv-shim[mirror]sudoaptinstallgir1.2-webkit2-4.0Discord rich presence support:sudopip3installjellyfin-mpv-shim[discord]You can build mpv from source to get better codec support. Execute the following:sudopip3install--upgradepython-mpv
sudoaptinstallautoconfautomakelibtoollibharfbuzz-devlibfreetype6-devlibfontconfig1-devlibx11-devlibxrandr-devlibvdpau-devlibva-devmesa-common-devlibegl1-mesa-devyasmlibasound2-devlibpulse-devlibuchardet-devzlib1g-devlibfribidi-devgitlibgnutls28-devlibgl1-mesa-devlibsdl2-devcmakewgetpythong++libluajit-5.1-dev
gitclonehttps://github.com/mpv-player/mpv-build.gitcdmpv-buildecho--enable-libmpv-shared>mpv_options
./rebuild-j4
sudo./install
sudoldconfigmacOS InstallationCurrently on macOS only the external MPV backend seems to be working. I cannot test on macOS, so please report any issues you find.To install the CLI version:Install brew. (Instructions)Install python3 and mpv.brew install python mpvInstall jellyfin-mpv-shim.pip3 install --upgrade jellyfin-mpv-shimRunjellyfin-mpv-shim.If you'd like to install the GUI version, you need a working copy of tkinter.Install pyenv. (Instructions)Install TK and mpv.brew install tcl-tk mpvInstall python3 with TK support.FLAGS="-I$(brew --prefix tcl-tk)/include" pyenv install 3.8.1Set this python3 as the default.pyenv global 3.8.1Install jellyfin-mpv-shim and pystray.pip3 install --upgrade 'jellyfin-mpv-shim[gui]'Runjellyfin-mpv-shim.Display mirroring is not tested on macOS, but may be installable with 'pip3 install --upgrade 'jellyfin-mpv-shim[mirror]'`.Building on WindowsThere is a prebuilt version for Windows in the releases section. When
following these directions, please take care to ensure both the python
and libmpv libraries are either 64 or 32 bit. (Don't mismatch them.)If you'd like to build the installer, please installInno Setupto build
the installer. If you'd like to build a 32 bit version, download the 32 bit version of mpv-1.dll and
copy it into a new folder called mpv32. You'll also needWebBrowserInterop.x86.dll.
You may also need to edit the batch file for 32 bit builds to point to the right python executable.Install Git for Windows. Open Git Bash and rungit clone https://github.com/jellyfin/jellyfin-mpv-shim; cd jellyfin-mpv-shim.You can update the project later withgit pull.InstallPython3with PATH enabled. Install7zip.After installing python3, opencmdas admin and runpip install --upgrade pyinstaller python-mpv jellyfin-apiclient-python pywin32 pystray Jinja2 pywebview python-mpv-jsonipc pypresence.Details:https://github.com/pyinstaller/pyinstaller/issues/4346Downloadlibmpv.Extract thempv-2.dllfrom the file and move it to thejellyfin-mpv-shimfolder.Open a regularcmdprompt. Navigate to thejellyfin-mpv-shimfolder.Runget_pywebview_natives.py.Run./gen_pkg.sh --skip-buildusing the Git for Windows console.This builds the translation files and downloads the shader packs.Runbuild-win.bat.