[GH-ISSUE #2838] mpv: no-cache causes slow OSD #1774

Closed
opened 2026-05-05 08:26:42 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @Artefact2 on GitHub (Jul 7, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2838

The no-cache in mpv.profile causes the OSD to load slowly the first time it is used (a couple of seconds), freezing video playback. mpv -v gives:

[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.5.3 (COMPLEX)
[osd/libass] Setting up fonts... <-- this is where it hangs
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/noto/NotoSans-Medium.ttf, 0, NotoSans-Medium
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular

Removing private-cache works as expected (libass can access fontconfig cache and the fonts load instantly, no OSD slowdown).

Originally created by @Artefact2 on GitHub (Jul 7, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2838 The `no-cache` in `mpv.profile` causes the OSD to load slowly the first time it is used (a couple of seconds), freezing video playback. `mpv -v` gives: ~~~ [osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.5.3 (COMPLEX) [osd/libass] Setting up fonts... <-- this is where it hangs [osd/libass] Using font provider fontconfig [osd/libass] Done. [osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/noto/NotoSans-Medium.ttf, 0, NotoSans-Medium [osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular ~~~ Removing `private-cache` works as expected (libass can access fontconfig cache and the fonts load instantly, no OSD slowdown).
Author
Owner

@ghost commented on GitHub (Jul 7, 2019):

@Artefact2 Should be fixed in git master. Thanks for reporting this!

<!-- gh-comment-id:508979642 --> @ghost commented on GitHub (Jul 7, 2019): @Artefact2 Should be fixed in git master. Thanks for reporting this!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1774
No description provided.