Class FFmpegProgress

java.lang.Object
com.github.kokorin.jaffree.ffmpeg.FFmpegProgress

public class FFmpegProgress extends Object
FFmpegProgress contains information about ffmpeg encoding progress.
  • Constructor Details

    • FFmpegProgress

      public FFmpegProgress(Long frame, Double fps, Double q, Long size, Long timeMicros, Long dup, Long drop, Double bitrate, Double speed)
      Parameters:
      frame - number of frames
      fps - frames encoded per second
      q - quality of coded frames (between 1 (good) and FF_LAMBDA_MAX (bad))
      size - current size in bytes
      timeMicros - encoded duration in microseconds
      dup - number of duplicate frames
      drop - number of dropped frames
      bitrate - estimated bitrate in kbits/s
      speed - encoding speed
  • Method Details

    • getFrame

      public Long getFrame()
      Returns:
      number of frames encoded so far
    • getFps

      public Double getFps()
      Returns:
      frames encoded per second
    • getQ

      public Double getQ()
      Quality (between 1 (good) and FF_LAMBDA_MAX (bad)).
      Returns:
      quality of coded frames
    • getSize

      public Long getSize()
      Returns:
      size in bytes
    • getTimeMillis

      public Long getTimeMillis()
      Returns:
      encoded time in milliseconds
    • getTimeMicros

      public Long getTimeMicros()
      Returns:
      encoded time in microseconds
    • getTime

      public Long getTime(TimeUnit timeUnit)
      Parameters:
      timeUnit - time unit of the result
      Returns:
      encoded time in specified TimeUnit
    • getDup

      public Long getDup()
      Returns:
      number of duplicate frames
    • getDrop

      public Long getDrop()
      Returns:
      number of dropped frames
    • getBitrate

      public Double getBitrate()
      Returns:
      estimated bitrate in kbits/s
    • getSpeed

      public Double getSpeed()
      Encoding speed represents how many seconds ffmpeg spends on producing 1 second of encoded output.
      Returns:
      encoding speed
    • toString

      public String toString()
      Overrides:
      toString in class Object