mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:28:23 +00:00
Use subtitle cache when burning-in subs
This commit is contained in:
parent
c67b78bc68
commit
7c3c0aa940
3 changed files with 21 additions and 4 deletions
|
|
@ -1652,13 +1652,15 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
setPtsParam);
|
||||
}
|
||||
|
||||
var mediaPath = state.MediaPath ?? string.Empty;
|
||||
var subtitlePath = _subtitleEncoder.GetSubtitleFilePath(
|
||||
state.SubtitleStream,
|
||||
state.MediaSource,
|
||||
CancellationToken.None).GetAwaiter().GetResult();
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"subtitles=f='{0}':si={1}{2}{3}{4}{5}",
|
||||
_mediaEncoder.EscapeSubtitleFilterPath(mediaPath),
|
||||
state.InternalSubtitleStreamOffset.ToString(CultureInfo.InvariantCulture),
|
||||
"subtitles=f='{0}'{1}{2}{3}{4}",
|
||||
_mediaEncoder.EscapeSubtitleFilterPath(subtitlePath),
|
||||
alphaParam,
|
||||
sub2videoParam,
|
||||
fontParam,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue