类 Statistics


  • public class Statistics
    extends Object

    Statistics entry for an FFmpeg execute session.

    • 构造器详细资料

      • Statistics

        public Statistics​(long sessionId,
                          int videoFrameNumber,
                          float videoFps,
                          float videoQuality,
                          long size,
                          int time,
                          double bitrate,
                          double speed)
    • 方法详细资料

      • getSessionId

        public long getSessionId()
      • setSessionId

        public void setSessionId​(long sessionId)
      • getVideoFrameNumber

        public int getVideoFrameNumber()
      • setVideoFrameNumber

        public void setVideoFrameNumber​(int videoFrameNumber)
      • getVideoFps

        public float getVideoFps()
      • setVideoFps

        public void setVideoFps​(float videoFps)
      • getVideoQuality

        public float getVideoQuality()
      • setVideoQuality

        public void setVideoQuality​(float videoQuality)
      • getSize

        public long getSize()
      • setSize

        public void setSize​(long size)
      • getTime

        public int getTime()
      • setTime

        public void setTime​(int time)
      • getBitrate

        public double getBitrate()
      • setBitrate

        public void setBitrate​(double bitrate)
      • getSpeed

        public double getSpeed()
      • setSpeed

        public void setSpeed​(double speed)
      • progressFormat

        public String progressFormat​(@FloatRange(from=0.0)
                                     double durationMs)
        格式化进度为百分比形式
        参数:
        durationMs - 总时长
        返回:
        String - 0.00% ~ 100.0%
      • getProgress

        public double getProgress​(@FloatRange(from=0.0)
                                  double durationMs)
        当前处理进度,由于
        参数:
        durationMs - 总时长
        返回:
        double - 进度的 double 表示