Class VideoInfo


  • public class VideoInfo
    extends java.lang.Object
    Instances of this class report informations about a video stream that can be decoded.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bitRate
      The video stream (average) bit rate.
      private java.lang.String decoder
      The video stream decoder name.
      private float frameRate
      The video frame rate.
      private java.util.Map<java.lang.String,​java.lang.String> metadata
      The video metadata.
      private VideoSize size
      The video size.
    • Constructor Summary

      Constructors 
      Constructor Description
      VideoInfo()  
    • Field Detail

      • decoder

        private java.lang.String decoder
        The video stream decoder name.
      • size

        private VideoSize size
        The video size. If null this information is not available.
      • bitRate

        private int bitRate
        The video stream (average) bit rate. If less than 0, this information is not available.
      • frameRate

        private float frameRate
        The video frame rate. If less than 0 this information is not available.
      • metadata

        private java.util.Map<java.lang.String,​java.lang.String> metadata
        The video metadata.
    • Constructor Detail

      • VideoInfo

        public VideoInfo()
    • Method Detail

      • getDecoder

        public java.lang.String getDecoder()
        Returns the video stream decoder name.
        Returns:
        The video stream decoder name.
      • setDecoder

        public VideoInfo setDecoder​(java.lang.String codec)
        Sets the video stream decoder name.
        Parameters:
        codec - The video stream decoder name.
        Returns:
        this instance
      • getSize

        public VideoSize getSize()
        Returns the video size. If null this information is not available.
        Returns:
        the size The video size.
      • setSize

        public VideoInfo setSize​(VideoSize size)
        Sets the video size.
        Parameters:
        size - The video size.
        Returns:
        this instance
      • getFrameRate

        public float getFrameRate()
        Returns the video frame rate. If less than 0 this information is not available.
        Returns:
        The video frame rate.
      • setFrameRate

        public VideoInfo setFrameRate​(float frameRate)
        Sets the video frame rate.
        Parameters:
        frameRate - The video frame rate.
        Returns:
        this instance
      • getBitRate

        public int getBitRate()
        Returns the video stream (average) bit rate. If less than 0, this information is not available.
        Returns:
        The video stream (average) bit rate.
      • setBitRate

        public VideoInfo setBitRate​(int bitRate)
        Sets the video stream (average) bit rate.
        Parameters:
        bitRate - The video stream (average) bit rate.
        Returns:
        this instance
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Returns the video metadata.
        Returns:
        The video metadata.
      • setMetadata

        public VideoInfo setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Sets the video metadata.
        Parameters:
        metadata - The video metadata.
        Returns:
        this instance
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object