fixes #175 - Subtitle Encoding
This commit is contained in:
parent
58c77529d2
commit
aa622d7632
|
@ -541,7 +541,7 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
UseShellExecute = false,
|
UseShellExecute = false,
|
||||||
FileName = FFMpegPath,
|
FileName = FFMpegPath,
|
||||||
Arguments = string.Format("-i \"{0}\" \"{1}\"", inputPath, outputPath),
|
Arguments = string.Format("-sub_charenc Windows-1256 -i \"{0}\" \"{1}\"", inputPath, outputPath),
|
||||||
WindowStyle = ProcessWindowStyle.Hidden,
|
WindowStyle = ProcessWindowStyle.Hidden,
|
||||||
ErrorDialog = false
|
ErrorDialog = false
|
||||||
}
|
}
|
||||||
|
@ -646,7 +646,7 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
||||||
CreateNoWindow = true,
|
CreateNoWindow = true,
|
||||||
UseShellExecute = false,
|
UseShellExecute = false,
|
||||||
FileName = FFMpegPath,
|
FileName = FFMpegPath,
|
||||||
Arguments = string.Format("-i {0} -map 0:{1} -an -vn -c:s ass \"{2}\"", inputPath, subtitleStreamIndex, outputPath),
|
Arguments = string.Format("-sub_charenc Windows-1256 -i {0} -map 0:{1} -an -vn -c:s ass \"{2}\"", inputPath, subtitleStreamIndex, outputPath),
|
||||||
WindowStyle = ProcessWindowStyle.Hidden,
|
WindowStyle = ProcessWindowStyle.Hidden,
|
||||||
ErrorDialog = false
|
ErrorDialog = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user