Package org.nuxeo.ecm.platform.video
Class VideoInfo
- java.lang.Object
-
- org.nuxeo.ecm.platform.video.VideoInfo
-
- All Implemented Interfaces:
Serializable
public final class VideoInfo extends Object implements Serializable
Object containing info about a video file.- Since:
- 5.5
- Author:
- Thomas Roger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PatternBIT_RATE_PATTERNstatic StringDURATIONstatic PatternDURATION_PATTERNstatic VideoInfoEMPTY_INFOstatic StringFORMATstatic PatternFORMAT_PATTERNstatic StringFRAME_RATEstatic PatternFRAME_RATE_PATTERNstatic StringHEIGHTstatic PatternMETADATA_ROTATE_PATTERNstatic PatternSIZE_PATTERNstatic PatternSTREAM_PATTERNstatic StringSTREAMSstatic StringWIDTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VideoInfofromFFmpegOutput(List<String> output)Build aVideoInfofrom a FFmpeg output.static VideoInfofromMap(Map<String,Serializable> map)Build aVideoInfofrom aMapof attributes.doublegetDuration()Returns the duration of the video.StringgetFormat()Returns the format of the video.doublegetFrameRate()Returns the frame rate of the video.longgetHeight()Returns the height of the video.List<Stream>getStreams()Returns all theStreams of the video.longgetWidth()Returns the width of the video.Map<String,Serializable>toMap()Returns aMapof attributes for thisVideoInfo.
-
-
-
Field Detail
-
FORMAT_PATTERN
public static final Pattern FORMAT_PATTERN
-
DURATION_PATTERN
public static final Pattern DURATION_PATTERN
-
STREAM_PATTERN
public static final Pattern STREAM_PATTERN
-
SIZE_PATTERN
public static final Pattern SIZE_PATTERN
-
FRAME_RATE_PATTERN
public static final Pattern FRAME_RATE_PATTERN
-
BIT_RATE_PATTERN
public static final Pattern BIT_RATE_PATTERN
-
METADATA_ROTATE_PATTERN
public static final Pattern METADATA_ROTATE_PATTERN
- Since:
- 11.1
-
EMPTY_INFO
public static final VideoInfo EMPTY_INFO
-
DURATION
public static final String DURATION
- See Also:
- Constant Field Values
-
WIDTH
public static final String WIDTH
- See Also:
- Constant Field Values
-
HEIGHT
public static final String HEIGHT
- See Also:
- Constant Field Values
-
FRAME_RATE
public static final String FRAME_RATE
- See Also:
- Constant Field Values
-
FORMAT
public static final String FORMAT
- See Also:
- Constant Field Values
-
STREAMS
public static final String STREAMS
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromMap
public static VideoInfo fromMap(Map<String,Serializable> map)
Build aVideoInfofrom aMapof attributes.Used when creating a
VideoInfofrom aDocumentModelproperty.
-
fromFFmpegOutput
public static VideoInfo fromFFmpegOutput(List<String> output)
Build aVideoInfofrom a FFmpeg output.
-
getDuration
public double getDuration()
Returns the duration of the video.
-
getWidth
public long getWidth()
Returns the width of the video.
-
getHeight
public long getHeight()
Returns the height of the video.
-
getFormat
public String getFormat()
Returns the format of the video.
-
getFrameRate
public double getFrameRate()
Returns the frame rate of the video.
-
toMap
public Map<String,Serializable> toMap()
Returns aMapof attributes for thisVideoInfo.Used when saving this
Streamto aDocumentModelproperty.
-
-