Package net.bramp.ffmpeg.progress
Class Progress
- java.lang.Object
-
- net.bramp.ffmpeg.progress.Progress
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProgress.Status
-
Field Summary
Fields Modifier and Type Field Description longbitrateCurrent bitratelongdrop_framesNumber of frames droppedlongdup_framesFractionfpsThe current frames per secondlongframeThe frame number being processedlongout_time_nsOutput time (in nanoseconds)floatspeedSpeed of transcoding.Progress.StatusstatusCurrent status, can be one of "continue", or "end"longtotal_sizeOutput file size (in bytes)
-
Constructor Summary
Constructors Constructor Description Progress()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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()booleanisEnd()protected booleanparseLine(String line)Parses values from the line, into this object.StringtoString()
-
-
-
Field Detail
-
frame
public long frame
The frame number being processed
-
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
public Progress.Status status
Current status, can be one of "continue", or "end"
-
-
Constructor Detail
-
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 Detail
-
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()
-
-