mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-22 11:19:25 +01:00
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.
21 lines
616 B
C#
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();
|
|
}
|
|
}
|
|
}
|