mpv-player / mpv-player/mpv

Cached progress disappears on subtitle change

Open
#7,780 4 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core:option-param-conf core:stream core:subtitle
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information
  • mpv version 0.32.0
  • Linux Distribution and Version Linux manjaro 5.6.12-1-MANJARO
  • Source of the mpv binary [Arch repository] (https://www.archlinux.org/packages/community/x86_64/mpv/)
  • If known which version of mpv introduced the problem n/a
  • Window Manager and version dwm-6.2
  • GPU driver and version Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
  • Possible screenshot or video of visual glitches n/a
Reproduction steps
  • command: mpv 'http://example.com/file.mkv' --no-config --log-file=output.txt
  • The file is an HTTP link of type MKV
  • When the file opens, the subtitle track is set to none. When I enable the embedded subtitle, the cached progress evaporates and the video starts loading the once cached part.
  • applicable with a --playlist=file --prefetch-playlist
Expected behavior

Subs get enabled; cached progress remains.

Actual behavior

Subs get enabled; cached progress disappears.

Log file

https://0x0.st/if3M.txt

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 HTTP MKV case with mpv --no-config --log-file=output.txt, including --playlist=file --prefetch-playlist, and review the linked log. Trace what happens to cached progress when the embedded subtitle track changes from none to enabled; done means subtitles can be enabled without discarding already cached data.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.