Package ws.schild.jave.info
Class VideoInfo
- java.lang.Object
-
- ws.schild.jave.info.VideoInfo
-
public class VideoInfo extends java.lang.ObjectInstances of this class report informations about a video stream that can be decoded.
-
-
Field Summary
Fields Modifier and Type Field Description private intbitRateThe video stream (average) bit rate.private java.lang.StringdecoderThe video stream decoder name.private floatframeRateThe video frame rate.private java.util.Map<java.lang.String,java.lang.String>metadataThe video metadata.private VideoSizesizeThe video size.
-
Constructor Summary
Constructors Constructor Description VideoInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitRate()Returns the video stream (average) bit rate.java.lang.StringgetDecoder()Returns the video stream decoder name.floatgetFrameRate()Returns the video frame rate.java.util.Map<java.lang.String,java.lang.String>getMetadata()Returns the video metadata.VideoSizegetSize()Returns the video size.VideoInfosetBitRate(int bitRate)Sets the video stream (average) bit rate.VideoInfosetDecoder(java.lang.String codec)Sets the video stream decoder name.VideoInfosetFrameRate(float frameRate)Sets the video frame rate.VideoInfosetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Sets the video metadata.VideoInfosetSize(VideoSize size)Sets the video size.java.lang.StringtoString()
-
-
-
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.
-
-
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:
toStringin classjava.lang.Object
-
-