|
@ -60,7 +60,10 @@ namespace UsmToolkit |
|
|
public string InputPath { get; set; } |
|
|
public string InputPath { get; set; } |
|
|
|
|
|
|
|
|
[Option(CommandOptionType.NoValue, Description = "Join files after extraction.", ShortName = "j", LongName = "join")] |
|
|
[Option(CommandOptionType.NoValue, Description = "Join files after extraction.", ShortName = "j", LongName = "join")] |
|
|
public bool JoinOutput { get; set; } |
|
|
public bool Join { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Option(CommandOptionType.SingleValue, Description = "Specify output directory.", ShortName = "o", LongName = "output-dir")] |
|
|
|
|
|
public string OutputDir { get; set; } |
|
|
|
|
|
|
|
|
[Option(CommandOptionType.NoValue, Description = "Remove temporary m2v and audio after joining.", ShortName = "c", LongName = "clean")] |
|
|
[Option(CommandOptionType.NoValue, Description = "Remove temporary m2v and audio after joining.", ShortName = "c", LongName = "clean")] |
|
|
public bool CleanTempFiles { get; set; } |
|
|
public bool CleanTempFiles { get; set; } |
|
@ -95,7 +98,7 @@ namespace UsmToolkit |
|
|
SplitAudioStreams = false |
|
|
SplitAudioStreams = false |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (JoinOutput) |
|
|
if (Join) |
|
|
{ |
|
|
{ |
|
|
JoinOutputFile(usmStream); |
|
|
JoinOutputFile(usmStream); |
|
|
} |
|
|
} |
|
@ -152,7 +155,7 @@ namespace UsmToolkit |
|
|
if (usmStream.HasAudio) |
|
|
if (usmStream.HasAudio) |
|
|
sb.Append($"{conf.AudioParameter} "); |
|
|
sb.Append($"{conf.AudioParameter} "); |
|
|
|
|
|
|
|
|
sb.Append($"{pureFileName}.{conf.OutputFormat}"); |
|
|
sb.Append($"\"{Path.Combine(OutputDir ?? string.Empty, $"{pureFileName}.{conf.OutputFormat}")}\""); |
|
|
|
|
|
|
|
|
return sb.ToString(); |
|
|
return sb.ToString(); |
|
|
} |
|
|
} |
|
|