diff options
| author | Piotr Niełacny <piotr.nielacny@gmail.com> | 2026-03-21 21:57:58 +0100 |
|---|---|---|
| committer | Piotr Niełacny <piotr.nielacny@gmail.com> | 2026-05-19 13:03:07 +0200 |
| commit | 2a689f268bc88ee7ab7e25121a6d43f71c1f8a5f (patch) | |
| tree | 2a41965b8cc2a88de16f9f0e54a5f83917ed8db6 /tests/Jellyfin.Controller.Tests/MediaEncoding/EncodingHelperTests.cs | |
| parent | 2c66447f08f740193c4dd4f340691d2cdb07ea49 (diff) | |
Embed external subtitles into MKV when transcoding
Allow external subtitle files (SRT, ASS, PGS, etc.) to be muxed into
MKV output containers when the device profile requests Embed delivery.
Previously, the IsExternal guard in GetSubtitleProfile excluded external
subtitles from Embed consideration entirely, forcing them to be served
as separate sidecar files even when the output container supports
embedding.
Changes:
- Extract CanConsiderEmbedSubtitle in StreamBuilder to allow external
subs through when transcoding to MKV
- Add external subtitle file as FFmpeg input (-i) for Embed delivery
- Map external embedded subs from the correct FFmpeg input index
- Fix external audio map index to account for the new subtitle input
- Extract NeedsExternalSubtitleMuxing in EncodingHelper to deduplicate
the external subtitle input check
Fixes #16403
Diffstat (limited to 'tests/Jellyfin.Controller.Tests/MediaEncoding/EncodingHelperTests.cs')
0 files changed, 0 insertions, 0 deletions
