jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
2.88k stars 297 forks source link

WebVTT subtitles display is broken #651

Open kdltr opened 1 month ago

kdltr commented 1 month ago

Describe the bug When using WebVTT subtitles, timestamps are displayed on the screen. It seems like subtitles are loaded as SRT even when they are not that format.

2024-05-19 09:42:01.085 [info] unknown @ 0 - cplayer:  (+) Video --vid=1 (vp9 1920x1080 29.970fps)
2024-05-19 09:42:01.085 [info] unknown @ 0 - cplayer:  (+) Audio --aid=1 --alang=eng (opus 2ch 48000Hz)
2024-05-19 09:42:01.085 [info] unknown @ 0 - cplayer:  (+) Subs  --sid=1 'Stream.srt?api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' (subrip) (external)

The log file then gets spammed with this line: 2024-05-19 09:42:01.134 [warning] unknown @ 0 - ffmpeg: srt: Unrecognized tag c This issue appeared after updating Jellyfin Media Player to 1.10.0 and the Jellyfin server to 10.9.1. The web client doesn’t display this behavior.

To Reproduce Load a video with a WebVTT subtitle. Those can be easily found when using yt-dlp on a youtube video with auto-generated subtitles for example: yt-dlp --write-auto-subs --sub-langs en YOUTUBE-URL

Screenshots Screenshot_2024-05-19_09-37-56

Desktop (please complete the following information):

amalgame21 commented 1 month ago

I can reproduce this issue.

1 Jellyfin Media Player version: 1.10.1 and 1.9.1 Jellyfin server version: 10.9.1 OS: NixOS Install Method: nixpkgs unstable branch

Mrpuppyz commented 1 month ago

I am having the exact same issue. Hopefully this gets fixed soon. I have noticed that I can switch to using a web browser then the subtitles will appear normally. However I would rather used the media player application than a web browser.