Class ConversionOutputAnalyzer

java.lang.Object
ws.schild.jave.ConversionOutputAnalyzer

public class ConversionOutputAnalyzer extends Object
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • PROGRESS_INFO_PATTERN

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

      private final EncoderProgressListener listener
    • duration

      private final long duration
    • step

      private int step
    • lineNR

      private int lineNR
    • lastWarning

      private String lastWarning
    • unhandledMessages

      private final List<String> unhandledMessages
  • Constructor Details

  • Method Details

    • analyzeNewLine

      public void analyzeNewLine(String line) throws EncoderException
      Throws:
      EncoderException
    • getLastWarning

      public String getLastWarning()
    • parseProgressInfoLine

      private HashMap<String,String> parseProgressInfoLine(String line)
      Private utility. Parse a line and try to match its contents against the
      invalid reference
      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 List<String> getUnhandledMessages()
      Returns:
      the unhandledMessages