-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for native PGS subtitle rendering without transcoding #2404
Conversation
Cloudflare Pages deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, not tested with server yet but I suppose you did. Any reason why this is still listed as draft? Can this go in full review mode?
@ferferga Yes, it is working just fine. |
@ferferga Just noticed there aren't any subtitle settings at the moment. Is it okay to just leave it enabled for now? |
@Arcus92 The subtitle settings are being worked on in #2360 |
It should be fine performance wise. I haven't tested different server architectures yet. Ripping .sup files from the source is an intensive task. Worst case ffmpeg could run out of memory or cache disk space and block playback or crash the server. Currently this is just my unfounded fear. For web, I just wanted to be extra safe because this a brand new feature. |
@Arcus92 It's completely alright for me. I'll fix the conflicts and ship it later today! |
Quality Gate passedIssues Measures |
Changes
This PR allows the client to request and render native PGS subtitle streams without transcoding. PGS is a graphical subtitle format. The subtitles are rendered locally by the client on-top of the video element.
This adds a new dependency libpgs-js. I just created this library for the Jellyfin project. If desired, you can fork it into the https://github.com/jellyfin domain.
Related Pull Request (backend): jellyfin/jellyfin#12056
Related Pull Request (web): jellyfin/jellyfin-web#5688