public class VideoFileInfo extends java.lang.Object implements IVideoFileInfo
Constructor and Description |
---|
VideoFileInfo(java.io.File mediaFile,
VideoInfoParser parser)
The constructor
|
Modifier and Type | Method and Description |
---|---|
AspectRatio |
getAspectRatio()
Used to get the display aspect ratio of the video
|
java.lang.Long |
getAudioBitRate()
Used to get the audio bit rate (Kbs) or null if one can't be found
|
java.lang.String |
getAudioFormatProfile()
Used to get the audio format profile or null if one can't be found
|
long |
getFileSize()
Used to get the size of the media file
|
java.lang.Float |
getFrameRate()
Used to get the frame rate of the video in frams per second (fps)
|
int |
getHeight()
Used to get the height in pixels of the video
|
ResolutionFormat |
getResolutionFormat()
Used to get the video resolution format if it's know.
|
int |
getWidth()
Used to get the width in pixels of the video
|
boolean |
isHighDef()
Used to find out if the video is high definition
|
boolean |
isInterlaced()
Used to find out if the video scan type is interlaced or progressive
|
boolean |
isWideScreen()
Used to find out if the video is wide screen
|
public VideoFileInfo(java.io.File mediaFile, VideoInfoParser parser) throws XMLParserException
mediaFile
- The file information is been retrieved onparser
- The parse of the media informationXMLParserException
- Thrown if their their is a XML parser problempublic long getFileSize()
getFileSize
in interface IMediaFileInfo
public int getWidth()
getWidth
in interface IVideoFileInfo
public int getHeight()
getHeight
in interface IVideoFileInfo
public java.lang.Float getFrameRate()
getFrameRate
in interface IVideoFileInfo
public AspectRatio getAspectRatio()
getAspectRatio
in interface IVideoFileInfo
public boolean isWideScreen()
isWideScreen
in interface IVideoFileInfo
public boolean isHighDef()
isHighDef
in interface IVideoFileInfo
public ResolutionFormat getResolutionFormat()
getResolutionFormat
in interface IVideoFileInfo
public boolean isInterlaced()
isInterlaced
in interface IVideoFileInfo
public java.lang.String getAudioFormatProfile()
getAudioFormatProfile
in interface IVideoFileInfo
public java.lang.Long getAudioBitRate()
getAudioBitRate
in interface IVideoFileInfo