Class Progress

java.lang.Object
net.bramp.ffmpeg.progress.Progress

public class Progress extends Object
  • Field Details

    • frame

      public long frame
      The frame number being processed
    • fps

      public Fraction fps
      The current frames per second
    • bitrate

      public long bitrate
      Current bitrate
    • total_size

      public long total_size
      Output file size (in bytes)
    • out_time_ns

      public long out_time_ns
      Output time (in nanoseconds)
    • dup_frames

      public long dup_frames
    • drop_frames

      public long drop_frames
      Number of frames dropped
    • speed

      public float speed
      Speed of transcoding. 1 means realtime, 2 means twice realtime.
    • status

      Current status, can be one of "continue", or "end"
  • Constructor Details

    • Progress

      public Progress()
    • Progress

      public Progress(long frame, float fps, long bitrate, long total_size, long out_time_ns, long dup_frames, long drop_frames, float speed, Progress.Status status)
  • Method Details

    • parseLine

      protected boolean parseLine(String line)
      Parses values from the line, into this object.

      The value options are defined in ffmpeg.c's print_report function https://github.com/FFmpeg/FFmpeg/blob/master/ffmpeg.c

      Parameters:
      line - A single line of output from ffmpeg
      Returns:
      true if the record is finished
    • isEnd

      @CheckReturnValue public boolean isEnd()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object