FF-1069 - fixing issue extracting dvd_subtitle

This commit is contained in:
John Andrews
2023-08-15 09:33:09 +12:00
parent 2662043207
commit a8463e289c
2 changed files with 2 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ internal class SubtitleHelper
/// <param name="codec">the subtitle codec</param>
/// <returns>true if the subtitle is an image based subtitle</returns>
internal static bool IsImageSubtitle(string codec)
=> Regex.IsMatch((codec ?? string.Empty).Replace("_", ""), "dvbsub|pgs|xsub|vobsub", RegexOptions.IgnoreCase);
=> Regex.IsMatch((codec ?? string.Empty).Replace("_", ""), "dvbsub|pgs|xsub|vobsub|dvdsub", RegexOptions.IgnoreCase);
/// <summary>
/// Determines the appropriate subtitle codec for conversion based on the container type and current subtitle codec.

View File

@@ -117,6 +117,7 @@ public class SubtitleExtractor : EncodingNode
OutputFile = OutputFile[0..^4];
OutputFile += "." + extension;
args.Logger?.ILog($"Extracting subtitle codec '{subTrack.Codec}' to '{OutputFile}'");
var extracted = ExtractSubtitle(args, FFMPEG, "0:s:" + subTrack.TypeIndex, OutputFile);
if(extracted)