Class FFmpegProgress
java.lang.Object
com.github.kokorin.jaffree.ffmpeg.FFmpegProgress
FFmpegProgress contains information about ffmpeg encoding progress.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FFmpegProgress
public FFmpegProgress(Long frame, Double fps, Double q, Long size, Long timeMicros, Long dup, Long drop, Double bitrate, Double speed) CreatesFFmpegProgress.- Parameters:
frame- number of framesfps- frames encoded per secondq- quality of coded frames (between 1 (good) and FF_LAMBDA_MAX (bad))size- current size in bytestimeMicros- encoded duration in microsecondsdup- number of duplicate framesdrop- number of dropped framesbitrate- estimated bitrate in kbits/sspeed- encoding speed
-
-
Method Details
-
getFrame
- Returns:
- number of frames encoded so far
-
getFps
- Returns:
- frames encoded per second
-
getQ
Quality (between 1 (good) and FF_LAMBDA_MAX (bad)).- Returns:
- quality of coded frames
-
getSize
- Returns:
- size in bytes
-
getTimeMillis
- Returns:
- encoded time in milliseconds
-
getTimeMicros
- Returns:
- encoded time in microseconds
-
getTime
- Parameters:
timeUnit- time unit of the result- Returns:
- encoded time in specified
TimeUnit
-
getDup
- Returns:
- number of duplicate frames
-
getDrop
- Returns:
- number of dropped frames
-
getBitrate
- Returns:
- estimated bitrate in kbits/s
-
getSpeed
Encoding speed represents how many seconds ffmpeg spends on producing 1 second of encoded output.- Returns:
- encoding speed
-
toString
-