mpv-player / mpv-player/mpv

OSC title gets cropped in bottombar layout

Open
#16,258 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:win
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

mpv Information
mpv v0.40.0-30-g5ba7ee513 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Mar 29 2025 00:11:11
libplacebo version: v7.350.0 (v7.349.0-62-g563ea4a-dirty)
FFmpeg version: N-119073-g2657e1679
FFmpeg library versions:
   libavcodec      62.0.100
   libavdevice     62.0.100
   libavfilter     11.0.100
   libavformat     62.0.100
   libavutil       60.0.100
   libswresample   6.0.100
   libswscale      9.0.100
Other Information
- Windows version: Microsoft Windows [Version 10.0.19045.5247]
- GPU model, driver and version: AMD Radeon RX 580 2048SP, Driver Version
23.19.21.01-240819a-407052C-AMD-Software-Adrenalin-Edition
- Source of mpv: https://mpv.io/
- Latest known working version: n/a
- Issue started after the following happened: n/a
Reproduction Steps

If I have something long in the osc title, for example, osc-title="${playlist-pos-1} of ${playlist-count} | ${percent-pos}% of ${duration} | ${file-size} | ${width}x${height} | ${audio-codec-name}/${audio-params/hr-channels} / ${audio-bitrate} | ${video-format} / ${container-fps} fps / ${video-bitrate}", then some of its length gets cropped.

It can be fixed in the box layout through the "boxmaxchars" option but not in the bottombar layout as there is no such option for it.

Expected Behavior

The length of the osc title to expand to the length of the window.

Actual Behavior

The title gets cropped at some percent of the window's length, around 66-75%.

Screenshot: https://imgur.com/a/4I4ldD5.

Log File

output.txt

Sample Files

No response

I carefully read all instruction and confirm that I did the following:
  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied osc-title in mpv's OSC bottombar layout and compare it with the box layout using boxmaxchars. Trace how the bottombar computes the title width; done means the title can expand to the window width without cropping while preserving the existing layout behavior.

Written by the indexing model from the issue text.

Assessment

Domain
desktop-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.