Package ws.schild.jave.info
Class VideoInfo
java.lang.Object
ws.schild.jave.info.VideoInfo
Instances of this class report informations about a video stream that can be decoded.
- Author:
- Carlo Pelliccia
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the video stream (average) bit rate.Returns the video stream decoder name.floatReturns the video frame rate.Returns the video metadata.getSize()Returns the video size.setBitRate(int bitRate) Sets the video stream (average) bit rate.setDecoder(String codec) Sets the video stream decoder name.setFrameRate(float frameRate) Sets the video frame rate.setMetadata(Map<String, String> metadata) Sets the video metadata.Sets the video size.toString()
-
Constructor Details
-
VideoInfo
public VideoInfo()
-
-
Method Details
-
getDecoder
Returns the video stream decoder name.- Returns:
- The video stream decoder name.
-
setDecoder
Sets the video stream decoder name.- Parameters:
codec- The video stream decoder name.- Returns:
- this instance
-
getSize
Returns the video size. If null this information is not available.- Returns:
- the size The video size.
-
setSize
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
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
Sets the video stream (average) bit rate.- Parameters:
bitRate- The video stream (average) bit rate.- Returns:
- this instance
-
getMetadata
Returns the video metadata.- Returns:
- The video metadata.
-
setMetadata
Sets the video metadata.- Parameters:
metadata- The video metadata.- Returns:
- this instance
-
toString
-