Class ConversionOutputAnalyzer


  • public class ConversionOutputAnalyzer
    extends java.lang.Object
    • Field Detail

      • LOG

        private static final org.slf4j.Logger LOG
      • PROGRESS_INFO_PATTERN

        private static final java.util.regex.Pattern PROGRESS_INFO_PATTERN
        This regexp is used to parse the ffmpeg output about the ongoing encoding process.
      • duration

        private final long duration
      • step

        private int step
      • lineNR

        private int lineNR
      • lastWarning

        private java.lang.String lastWarning
      • unhandledMessages

        private final java.util.List<java.lang.String> unhandledMessages
    • Constructor Detail

    • Method Detail

      • getLastWarning

        public java.lang.String getLastWarning()
      • parseProgressInfoLine

        private java.util.HashMap<java.lang.String,​java.lang.String> parseProgressInfoLine​(java.lang.String line)
        Private utility. Parse a line and try to match its contents against the Encoder#PROGRESS_INFO_PATTERN pattern. It the line can be parsed, it returns a hashtable with progress informations, otherwise it returns null.
        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

        public java.util.List<java.lang.String> getUnhandledMessages()
        Returns:
        the unhandledMessages