arabcoders / watchstate

Self-hosted service to sync your plex, jellyfin and emby play state. without relying on 3rd-party external services.
MIT License
481 stars 9 forks source link

Improving burning text subtitles into the stream. #532

Closed arabcoders closed 3 months ago

arabcoders commented 3 months ago

This update brings changes to how we handle internal subtitle streams, if the file is big or large or the stream is rather large, the streaming will stale as we try to burn the subtitle into the stream piece by piece.

However, With this new changes we are able to extract the internal subtitle and store it into the cache, thereby reducing the time it takes to burn subtitle and segmenting the file by more then 1000% for large files and 100% for regular normal 23min episode files.

However this change has single drawback, the initial segment 0 will be little slower as we extract the subtitle on this initial stage if burning subtitle is required. However, we still recommend using the player built-in subtitles for text based subs.