mpv-player / mpv

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

Secondary subtitles will not automatically adapt to the primary subtitle spacing. #15267

Closed zhouxinghong closed 3 weeks ago

zhouxinghong commented 3 weeks ago

mpv Information

mpv v0.39.0-300-g42ff6f92 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Nov  3 2024 00:06:03
libplacebo version: v7.349.0 (v7.349.0-19-g118d810-dirty)
FFmpeg version: N-117698-gc325f9c61
FFmpeg library versions:
   libavcodec      61.23.100
   libavdevice     61.4.100
   libavfilter     10.6.101
   libavformat     61.9.100
   libavutil       59.46.100
   libswresample   5.4.100
   libswscale      8.9.101

Other Information

- Windows version: 10 19044
- GPU model, driver and version:
- Source of mpv: 
  [MPV](https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20241103/mpv-x86_64-20241103-git-42ff6f9.7z)
- Introduced in version:

Reproduction Steps

  1. Start playing the video;

  2. Add two subtitles to the video, one as the primary subtitle and the other as the secondary subtitle;

Expected Behavior

The secondary subtitle should be able to automatically calculate and adapt to the spacing of the primary subtitle without a huge outer space between the two subtitles.

Actual Behavior

Secondary subtitles cannot automatically calculate and fit the spacing of primary subtitles, and a huge external space will appear between the two subtitles.

Log File

mpv --no-config 'https://ed198uy.cloudatacdn.com/u5kjvzfb5hf3sdgge4os4yspim4o7pxiydmdn3srdfseygh74ryxgx5sepaa/itnlis26tq~oPgARJ074D?token==tjsyfjmfpskihmx=13568932'

Sample Files

Normal external spacing: 2024-11-06_113448

image Huge external spacing: 2024-11-06_113715

2024-11-06_114435

2024-11-06_114246

I carefully read all instruction and confirm that I did the following:

llyyr commented 3 weeks ago

The secondary subtitle should be able to automatically calculate and adapt to the spacing of the primary subtitle without a huge outer space between the two subtitles.

Wrong, the expected behavior is secondary subs are at the top. You didn't provide a log file and your sample is an ephemeral URL from a piracy site, so it's impossible to do anything about this issue