Class ConversionOutputAnalyzer
java.lang.Object
ws.schild.jave.ConversionOutputAnalyzer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate Stringprivate intprivate final EncoderProgressListenerprivate static final org.slf4j.Loggerprivate static final PatternThis regexp is used to parse the ffmpeg output about the ongoing encoding process.private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanalyzeNewLine(String line) parseProgressInfoLine(String line) Private utility.
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
PROGRESS_INFO_PATTERN
This regexp is used to parse the ffmpeg output about the ongoing encoding process. -
listener
-
duration
private final long duration -
step
private int step -
lineNR
private int lineNR -
lastWarning
-
unhandledMessages
-
-
Constructor Details
-
ConversionOutputAnalyzer
-
-
Method Details
-
analyzeNewLine
- Throws:
EncoderException
-
getLastWarning
-
parseProgressInfoLine
Private utility. Parse a line and try to match its contents against thepattern. It the line can be parsed, it returns a hashtable with progress informations, otherwise it returns null.invalid reference
Encoder#PROGRESS_INFO_PATTERN- Parameters:
line- The line from the ffmpeg output.- Returns:
- A hashtable with the value reported in the line, or null if the given line can not be parsed.
-
getUnhandledMessages
-