Class StreamInformation


  • public class StreamInformation
    extends java.lang.Object
    Stream information class.
    • Constructor Detail

      • StreamInformation

        public StreamInformation​(org.json.JSONObject jsonObject)
    • Method Detail

      • getIndex

        public java.lang.Long getIndex()
        Returns stream index.
        Returns:
        stream index, starting from zero
      • getType

        public java.lang.String getType()
        Returns stream type.
        Returns:
        stream type; audio or video
      • getCodec

        public java.lang.String getCodec()
        Returns stream codec.
        Returns:
        stream codec
      • getCodecLong

        public java.lang.String getCodecLong()
        Returns stream codec in long format.
        Returns:
        stream codec with additional profile and mode information
      • getFormat

        public java.lang.String getFormat()
        Returns stream format.
        Returns:
        stream format
      • getWidth

        public java.lang.Long getWidth()
        Returns width.
        Returns:
        width in pixels
      • getHeight

        public java.lang.Long getHeight()
        Returns height.
        Returns:
        height in pixels
      • getBitrate

        public java.lang.String getBitrate()
        Returns bitrate.
        Returns:
        bitrate in kb/s
      • getSampleRate

        public java.lang.String getSampleRate()
        Returns sample rate.
        Returns:
        sample rate in hz
      • getSampleFormat

        public java.lang.String getSampleFormat()
        Returns sample format.
        Returns:
        sample format
      • getChannelLayout

        public java.lang.String getChannelLayout()
        Returns channel layout.
        Returns:
        channel layout
      • getSampleAspectRatio

        public java.lang.String getSampleAspectRatio()
        Returns sample aspect ratio.
        Returns:
        sample aspect ratio
      • getDisplayAspectRatio

        public java.lang.String getDisplayAspectRatio()
        Returns display aspect ratio.
        Returns:
        display aspect ratio
      • getAverageFrameRate

        public java.lang.String getAverageFrameRate()
        Returns display aspect ratio.
        Returns:
        average frame rate in fps
      • getRealFrameRate

        public java.lang.String getRealFrameRate()
        Returns real frame rate.
        Returns:
        real frame rate in tbr
      • getTimeBase

        public java.lang.String getTimeBase()
        Returns time base.
        Returns:
        time base in tbn
      • getCodecTimeBase

        public java.lang.String getCodecTimeBase()
        Returns codec time base.
        Returns:
        codec time base in tbc
      • getTags

        public org.json.JSONObject getTags()
        Returns all tags.
        Returns:
        tags object
      • getStringProperty

        public java.lang.String getStringProperty​(java.lang.String key)
        Returns the stream property associated with the key.
        Parameters:
        key - property key
        Returns:
        stream property as string or null if the key is not found
      • getNumberProperty

        public java.lang.Long getNumberProperty​(java.lang.String key)
        Returns the stream property associated with the key.
        Parameters:
        key - property key
        Returns:
        stream property as Long or null if the key is not found
      • getProperty

        public org.json.JSONObject getProperty​(java.lang.String key)
        Returns the stream property associated with the key.
        Parameters:
        key - property key
        Returns:
        stream property as a JSONObject or null if the key is not found
      • getAllProperties

        public org.json.JSONObject getAllProperties()
        Returns all stream properties defined.
        Returns:
        all stream properties as a JSONObject or null if no properties are defined