Files
flowframes/Code/Data/SubtitleTrack.cs
N00MKRAD 55d71d6328 Output streams: Support missing stream files, skip instead of erroring
If for some reason an audio or sub track failed to extract, it will now simply ommit it in the output file instead of failing to mux the video entirely.
2021-02-24 09:59:18 +01:00

21 lines
616 B
C#

using System.Globalization;
namespace Flowframes.Data
{
class SubtitleTrack
{
public int streamIndex;
public string lang;
public string langFriendly;
public string encoding;
public SubtitleTrack(int streamNum, string langStr, string encodingStr)
{
streamIndex = streamNum;
lang = langStr.Trim().Replace("_", ".").Replace(" ", ".");
langFriendly = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(langStr.ToLower().Trim().Replace("_", ".").Replace(" ", "."));
encoding = encodingStr.Trim();
}
}
}