Class Progress

    • Field Detail

      • 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)
      • drop_frames

        public long drop_frames
        Number of frames dropped
      • speed

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

      • 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