Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cached progress disappears on subtitle change #7780

Open
smhmd opened this issue May 30, 2020 · 2 comments
Open

Cached progress disappears on subtitle change #7780

smhmd opened this issue May 30, 2020 · 2 comments
Labels
core:option-param-conf config, parameters, properties, options, shortcuts core:stream core:subtitle

Comments

@smhmd
Copy link

smhmd commented May 30, 2020

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

@smhmd smhmd added the os:linux label May 30, 2020
@ghost
Copy link

ghost commented May 30, 2020

That is normal and expected. If a track is not selected, the cache won't contain any data for that track. So the file needs to be read again if the track is selected later.

In your case you could just get the subtitle selected by default, with --sid=1 or --slang=eng.

In theory we could always demux and subtitle tracks, and just pretend they're selected/deselected when the user does so. But not sure if that wouldn't conflict with certain use-cases.

@smhmd
Copy link
Author

smhmd commented May 30, 2020

Thanks for the workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core:option-param-conf config, parameters, properties, options, shortcuts core:stream core:subtitle
Projects
None yet
Development

No branches or pull requests

2 participants