mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
26.74k stars 2.84k forks source link

Incorrect subtitle rendering after jumping when playing with an external PGS subtitle #14021

Open dyphire opened 2 months ago

dyphire commented 2 months ago

Important Information

Provide following Information:

Reproduction steps

Try using --no-config to play a video with external PGS subtitles and perform a seek or jump operation after displaying the subtitle content.

Expected behavior

Normal playback after the seek or jump, subtitle events are rendered normally.

Actual behavior

The subtitle content of PGS subtitles displayed before the seek or jump will still be displayed after the seek or jump and will continue until the correct subtitle content appears after the seek or jump.

https://github.com/mpv-player/mpv/assets/61936050/ac55f8bf-d90c-4823-9bd8-2c065c105ef0

This issue only appears on external PGS subtitles.

Log file

mpv.log

Sample files

Considering that external PGS subtitles are not common, I upload a sample subtitle, extracted from an mkv file. This is not a good example file, and it has dense subtitle events making the issue less obvious.

[Beatrice-Raws] Evangelion 3.333 You Can (Not) Redo [BDRip 3840x1632 HEVC TrueHD]_rev.Jpn.sup.zip

cubicibo commented 2 months ago

The sample in #12760 exacerbates the issue and makes it easier for debugging.