Adds ability to force-select specific audio and subtitle streams for the anime converter
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good
This commit is contained in:
@ -21,6 +21,7 @@ public final class FFMpegHelper {
|
||||
private static final String PROBE_SPLIT_CHARACTER = "øæåÆØå";
|
||||
|
||||
private FFMpegHelper() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -429,4 +430,5 @@ public final class FFMpegHelper {
|
||||
}
|
||||
return new SubtitleStream(codecName, absoluteIndex, relativeIndex, language, title, file);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import java.io.InputStreamReader;
|
||||
public final class FileUtil {
|
||||
|
||||
private FileUtil() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -11,6 +11,7 @@ import java.util.function.Predicate;
|
||||
public final class ListUtil {
|
||||
|
||||
private ListUtil() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -77,4 +78,5 @@ public final class ListUtil {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,10 +8,12 @@ import java.io.OutputStreamWriter;
|
||||
* A class which helps with outputting information
|
||||
*/
|
||||
public final class OutputUtil {
|
||||
|
||||
private static final BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
|
||||
private static boolean debug;
|
||||
|
||||
private OutputUtil() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -78,4 +80,5 @@ public final class OutputUtil {
|
||||
print(message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -13,11 +13,13 @@ import java.util.Map;
|
||||
public final class Parser {
|
||||
|
||||
private Parser() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This function parses the input to understandable converter instructions
|
||||
* @param input <p>The input string to parse.</p>
|
||||
*
|
||||
* @param input <p>The input string to parse.</p>
|
||||
* @param validArguments <p>All arguments which are considered valid.</p>
|
||||
* @return <p>A map with all parsed arguments.</p>
|
||||
*/
|
||||
@ -28,7 +30,7 @@ public final class Parser {
|
||||
/**
|
||||
* This function parses command inputs into understandable converter instructions
|
||||
*
|
||||
* @param tokens <p>A list of tokens containing all arguments</p>
|
||||
* @param tokens <p>A list of tokens containing all arguments</p>
|
||||
* @param validArguments <p>A list of arguments which are considered valid.</p>
|
||||
* @return <p>A map with all parsed arguments.</p>
|
||||
*/
|
||||
@ -193,4 +195,5 @@ public final class Parser {
|
||||
private static boolean isNotEmpty(StringBuilder builder) {
|
||||
return !builder.toString().trim().equals("");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ package net.knarcraft.ffmpegconverter.utility;
|
||||
final class StringUtil {
|
||||
|
||||
private StringUtil() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -29,4 +30,5 @@ final class StringUtil {
|
||||
//Add other occurrences recursively
|
||||
return ListUtil.concatenate(new String[]{outString}, stringBetween(nextString, start, end));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user