mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-21 16:22:15 +00:00
Backport pull request #16440 from jellyfin/release-10.11.z
Remove -copyts and add -flush_packets 1 to subtitle extraction
Original-merge: ec33c74ec4
Merged-by: Bond-009 <bond.009@outlook.com>
Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
parent
7825fa4e43
commit
42e8a780ca
1 changed files with 4 additions and 4 deletions
|
|
@ -577,7 +577,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||
var outputPaths = new List<string>();
|
||||
var args = string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"-i {0} -copyts",
|
||||
"-i {0}",
|
||||
inputPath);
|
||||
|
||||
foreach (var subtitleStream in subtitleStreams)
|
||||
|
|
@ -602,7 +602,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||
outputPaths.Add(outputPath);
|
||||
args += string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
" -map 0:{0} -an -vn -c:s {1} \"{2}\"",
|
||||
" -map 0:{0} -an -vn -c:s {1} -flush_packets 1 \"{2}\"",
|
||||
streamIndex,
|
||||
outputCodec,
|
||||
outputPath);
|
||||
|
|
@ -621,7 +621,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||
var outputPaths = new List<string>();
|
||||
var args = string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"-i {0} -copyts",
|
||||
"-i {0}",
|
||||
inputPath);
|
||||
|
||||
foreach (var subtitleStream in subtitleStreams)
|
||||
|
|
@ -647,7 +647,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|||
outputPaths.Add(outputPath);
|
||||
args += string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
" -map 0:{0} -an -vn -c:s {1} \"{2}\"",
|
||||
" -map 0:{0} -an -vn -c:s {1} -flush_packets 1 \"{2}\"",
|
||||
streamIndex,
|
||||
outputCodec,
|
||||
outputPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue