jellyfin/MediaBrowser.Controller/MediaEncoding
Piotr Niełacny 2a689f268b 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
2026-05-19 13:03:07 +02:00
..
BaseEncodingJobOptions.cs Check videoRotation in video stream copy 2026-05-09 15:20:29 +08:00
BitStreamFilterOptionType.cs Improve dynamic HDR metadata handling (#13277) 2025-04-02 18:06:02 -06:00
DownMixAlgorithmsHelper.cs Add comments for Dave750/NightmodeDialogue 7.1 downmix 2024-08-01 07:45:16 +08:00
EncodingHelper.cs Embed external subtitles into MKV when transcoding 2026-05-19 13:03:07 +02:00
EncodingJobInfo.cs Check videoRotation in video stream copy 2026-05-09 15:20:29 +08:00
FilterOptionType.cs Fix the transparency issue of ASS subtitle rendering in HWA (#14024) 2025-05-03 08:21:08 -06:00
IAttachmentExtractor.cs Cleanup extracted files (#13760) 2025-04-03 09:17:14 -06:00
IMediaEncoder.cs Improve dynamic HDR metadata handling (#13277) 2025-04-02 18:06:02 -06:00
ISubtitleEncoder.cs Expose ExtractAllExtractableSubtitles (#14876) 2025-09-26 13:45:01 -06:00
ITranscodeManager.cs
JobLogger.cs Fix nullable annotation 2026-01-14 18:55:47 +01:00
MediaInfoRequest.cs
TranscodingJob.cs move to new System.Threading.Lock type for better performance 2024-12-12 18:10:06 +05:00
TranscodingJobType.cs Remove BOM from UTF-8 files 2024-08-30 15:29:48 +02:00
TranscodingSegmentCleaner.cs
TranscodingThrottler.cs Remove BOM from UTF-8 files 2024-08-30 15:29:48 +02:00