Package net.bramp.ffmpeg.progress
Class Progress
java.lang.Object
net.bramp.ffmpeg.progress.Progress
Represents progress data reported by FFmpeg during encoding.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the status of FFmpeg progress updates. -
Field Summary
FieldsModifier and TypeFieldDescriptionlongCurrent bitrate.longNumber of frames dropped.longThe current frames per second.longThe frame number being processed.longOutput time (in nanoseconds).floatSpeed of transcoding. 1 means realtime, 2 means twice realtime.Current status, can be one of "continue", or "end".longOutput file size (in bytes). -
Constructor Summary
ConstructorsConstructorDescriptionProgress()Constructs a default empty progress instance.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) Constructs a progress instance with the specified values. -
Method Summary
-
Field Details
-
frame
The frame number being processed. -
fps
The current frames per second. -
bitrate
Current bitrate. -
total_size
Output file size (in bytes). -
out_time_ns
Output time (in nanoseconds). -
dup_frames
-
drop_frames
Number of frames dropped. -
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()Constructs a default empty progress instance. -
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) Constructs a progress instance with the specified values.
-
-
Method Details
-
parseLine
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
-
equals
-
hashCode
-
toString
-
getFrame
-
getFps
-
getBitrate
-
getTotalSize
-
getOutTimeNs
-
getDupFrames
-
getDropFrames
-
getSpeed
-
getStatus
-