diff options
| author | Cody Robibero <cody@robibe.ro> | 2024-09-21 20:01:33 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-21 20:01:33 -0600 |
| commit | c97c2217a59ea17666373460db4f7e53e67dbee8 (patch) | |
| tree | 1e30987ccfe4b3dc3b1edff6c1cef93ce33ee801 /Jellyfin.Api/Helpers/MediaInfoHelper.cs | |
| parent | 38f80edc8011783d6544a9c1bd6401e3fe13ff57 (diff) | |
| parent | 4502024468ecd9a795cd482f4fbda30b35ee58de (diff) | |
Merge pull request #12676 from gnattu/rework-burnin-during-transcoding
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
Diffstat (limited to 'Jellyfin.Api/Helpers/MediaInfoHelper.cs')
| -rw-r--r-- | Jellyfin.Api/Helpers/MediaInfoHelper.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Jellyfin.Api/Helpers/MediaInfoHelper.cs b/Jellyfin.Api/Helpers/MediaInfoHelper.cs index 5050cab41..4adda0b69 100644 --- a/Jellyfin.Api/Helpers/MediaInfoHelper.cs +++ b/Jellyfin.Api/Helpers/MediaInfoHelper.cs @@ -293,6 +293,10 @@ public class MediaInfoHelper mediaSource.TranscodingUrl += "&allowAudioStreamCopy=false"; mediaSource.TranscodingContainer = streamInfo.Container; mediaSource.TranscodingSubProtocol = streamInfo.SubProtocol; + if (streamInfo.AlwaysBurnInSubtitleWhenTranscoding) + { + mediaSource.TranscodingUrl += "&alwaysBurnInSubtitleWhenTranscoding=true"; + } } else { @@ -310,6 +314,11 @@ public class MediaInfoHelper { mediaSource.TranscodingUrl += "&allowAudioStreamCopy=false"; } + + if (streamInfo.AlwaysBurnInSubtitleWhenTranscoding) + { + mediaSource.TranscodingUrl += "&alwaysBurnInSubtitleWhenTranscoding=true"; + } } } |
