mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Webvtt subtitiles metadata spill over

Open solomoncyj opened this issue 1 year ago • 3 comments

mpv Information

mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0
FFmpeg version: 7.0.2
FFmpeg library versions:
   libavcodec      61.3.100
   libavdevice     61.1.100
   libavfilter     10.1.100
   libavformat     61.1.100
   libavutil       59.8.100
   libswresample   5.1.100
   libswscale      8.1.100

Important Information

- Platform version:Fedora Linux 41
- GPU model, driver and version: intel mesa 4400
- Source: dnf
- Introduced in version:

Reproduction Steps

run yt-dlp 'https://www.youtube.com/watch?v=Wjkc-q4rEGI&pp=ygUPc2F2ZSBvdXIgaGVhcnRz' --sub-lang all --embed-subs play the file play around with the subtitile tracks, switching between them

Expected Behavior

meta data to be truncated or, styling data to be applied to subtitles

Actual Behavior

image

Log File

output.txt

Sample Files

No response

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

  • [X] I tested with the latest mpv version to validate that the issue is not already fixed.
  • [X] I provided all required information including system and mpv version.
  • [X] 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.
  • [X] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • [X] I attached the full, untruncated log file.
  • [X] I attached the backtrace in the case of a crash.

solomoncyj avatar Oct 25 '24 06:10 solomoncyj

~~Since ffmpeg doesn't support webvtt, mpv doesn't support it either~~ ~~https://github.com/mpv-player/mpv/issues/7214~~

zhongfly avatar Oct 25 '24 07:10 zhongfly

Since ffmpeg doesn't support webvtt, mpv doesn't support it either

The issue is that when you switch around the tracks, the metadata isn't properly stripped. Not relevant to ffmpeg not supporting webvtt styling -> ass styling conversion

llyyr avatar Oct 25 '24 07:10 llyyr

  • this doesn't happens when using external subs, apparently (--write-subs instead of --embed-subs)
  • if you download in srt and convert to vtt, you strip the metadata and avoid this issue (add --sub-format srt --convert-sub vtt) but run into a new line between the 2 sub lines when cycling

leoperegrino avatar Dec 05 '25 18:12 leoperegrino