mpv-player / mpv

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

Webvtt subtitiles metadata spill over #15172

Open solomoncyj opened 1 week ago

solomoncyj commented 1 week ago

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:

zhongfly commented 1 week ago

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

llyyr commented 1 week ago

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