类 VideoInfo

  • 所有已实现的接口:
    Cloneable

    public final class VideoInfo
    extends MediaInfo
    从视频文件中解析出的视频的信息类
    作者:
    Li Junchao
    • 字段详细资料

      • sar

        public float sar
        Sample Aspect Ratio
      • width

        public int width
        video track 分辨率 width
      • height

        public int height
        video track 分辨率 height
      • frameRate

        public int frameRate
        帧率
      • rotation

        public int rotation
        原 旋转到自然方向的 degree
      • frameCount

        public int frameCount
        video track 总帧数,没有此信息则为0
    • 构造器详细资料

      • VideoInfo

        public VideoInfo()
      • VideoInfo

        public VideoInfo​(String mime,
                         int width,
                         int height,
                         int maxInputSize,
                         long duration,
                         int bitRate,
                         int frameRate,
                         int rotation,
                         int profile,
                         int level)
    • 方法详细资料

      • getCorrectResolution

        public final Pair<Integer,​Integer> getCorrectResolution()
        根据旋转角度获取校正后的width和height
        返回:
        Pair - first:width second:height
      • getDisplayAspectRatio

        public final float getDisplayAspectRatio()
        获取显示比率
        返回:
        float - 显示比率