Skip to content

External MPV - No OSC when launching with mpv-shim #471

@Asinin3

Description

@Asinin3

Describe the bug
Whenever I launch MPV with MPV-Shim it opens with the OSC hidden, I can bring it back by opening console and running "cycle osc", but its not clear why its doing this as my external mpv profile doesn't have anything set in the config that hides it. I even tried launching mpv externally with no configs/scripts and it would do the same thing.. Even if you change your mpv.conf file to set the OSC on (osc=yes), or set its visibility to auto (already default behavior)

MPV-Shim conf:
conf.json
(But same issues with defaults and external mpv)

To Reproduce
Steps to reproduce the behavior:

  1. Setup MPV-Shim to launch MPV Externally
  2. Disable MPV-Shim internal OSC so MPV uses its own GUI
  3. Cast from Jellyfin, mpv-shim opens with OSC cycled off

The only way to bring OSC back is by running cycle osc in the MPV console, and even if you cycle it.. As soon as you close mpv-shim or stop via jellyfin.. the next video you play will cause it to open with no OSC again.

Expected behavior
mpv-shim shouldn't change OSC visibility when launching MPV externally compared to launching the same MPV instance normally (without mpv-shim)

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: 2.9.0

Error Messages
I cant see any errors or anything interesting in the logs or mpv-shim console, but here:
log.txt

Discovered Work-Arounds (Temporary only, this is still a major issue)

When MPV-Shim is unable to display the OSC, and you run "cycle OSC".. There is a way to save the OSC state so it doesn't reset. Simply enable "Display Mirroring" in Jellyfin cast options while mpv-shim is running. This works 100% of the time for me, but it also seems to lead to crashes when trying to launch a new file sometimes so you will be doing this over and over again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions