Class VideoInfo

java.lang.Object
ws.schild.jave.info.VideoInfo

public class VideoInfo extends Object
Instances of this class report informations about a video stream that can be decoded.
Author:
Carlo Pelliccia
  • Constructor Details

    • VideoInfo

      public VideoInfo()
  • Method Details

    • getDecoder

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

      public VideoInfo setDecoder(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 Map<String,String> getMetadata()
      Returns the video metadata.
      Returns:
      The video metadata.
    • setMetadata

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

      public String toString()
      Overrides:
      toString in class Object