Class VideoTrackInfo

java.lang.Object
uk.co.caprica.vlcj.media.TrackInfo
uk.co.caprica.vlcj.media.VideoTrackInfo

public final class VideoTrackInfo extends TrackInfo
Video track info.
  • Constructor Details

    • VideoTrackInfo

      public VideoTrackInfo(int codec, int originalCodec, int id, int profile, int level, int bitRate, String language, String description, int width, int height, int sampleAspectRatio, int sampleAspectRatioBase, int frameRate, int frameRateBase, VideoOrientation orientation, VideoProjection projection, float yaw, float pitch, float roll, float fov, Multiview multiview, String codecDescription)
      Create a new video track info.
      Parameters:
      codec - video codec
      originalCodec - original video codec
      id - track id
      profile - profile
      level - level
      bitRate - bit-rate
      language - language
      description - description
      width - width
      height - height
      sampleAspectRatio - sample aspect ratio
      sampleAspectRatioBase - sample aspect ratio base
      frameRate - frame rate
      frameRateBase - frame rate base
      orientation - video orientation
      projection - video projection
      yaw - yaw (degrees)
      pitch - pitch (degrees)
      roll - roll (degrees)
      fov - field of view (degrees)
      multiview - multiview video type
      codecDescription - codec description
  • Method Details

    • width

      public final int width()
      Get the video width.
      Returns:
      width
    • height

      public final int height()
      Get the video height.
      Returns:
      height
    • sampleAspectRatio

      public final int sampleAspectRatio()
      Get the sample aspect ratio.
      Returns:
      sample aspect ratio
    • sampleAspectRatioBase

      public final int sampleAspectRatioBase()
      Get the sample aspect ratio base.
      Returns:
      sample aspect ratio base
    • frameRate

      public final int frameRate()
      Get the frame rate.
      Returns:
      frame rate
    • frameRateBase

      public final int frameRateBase()
      Get the frame rate base.
      Returns:
      frame rate base
    • orientation

      public final VideoOrientation orientation()
      Get the video orientation.
      Returns:
      video orientation
    • projection

      public final VideoProjection projection()
      Get the video projection.
      Returns:
      video projection
    • yaw

      public final float yaw()
      Get the yaw, for spherical video.
      Returns:
      yaw (degrees)
    • pitch

      public final float pitch()
      Get the pitch, for spherical video.
      Returns:
      pitch (degrees)
    • roll

      public final float roll()
      Get the roll, for spherical video.
      Returns:
      roll (degrees)
    • fov

      public final float fov()
      Get the field of view, for spherical video.
      Returns:
      field of view (degrees)
    • multiview

      public final Multiview multiview()
      Get the video multiview type.

      This is currently unused and is a placeholder for future implementation.

      Returns:
      multiview type
    • toString

      public String toString()
      Overrides:
      toString in class TrackInfo