Package org.nuxeo.ecm.platform.video
Class VideoInfo
java.lang.Object
org.nuxeo.ecm.platform.video.VideoInfo
- All Implemented Interfaces:
Serializable
Object containing info about a video file.
- Since:
- 5.5
- Author:
- Thomas Roger
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Pattern
static final String
static final Pattern
static final VideoInfo
static final String
static final Pattern
static final String
static final Pattern
static final String
static final Pattern
static final Pattern
static final Pattern
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic VideoInfo
fromFFmpegOutput
(List<String> output) Build aVideoInfo
from a FFmpeg output.static VideoInfo
fromMap
(Map<String, Serializable> map) Build aVideoInfo
from aMap
of attributes.double
Returns the duration of the video.Returns the format of the video.double
Returns the frame rate of the video.long
Returns the height of the video.Returns all theStream
s of the video.long
getWidth()
Returns the width of the video.toMap()
Returns aMap
of attributes for thisVideoInfo
.
-
Field Details
-
FORMAT_PATTERN
-
DURATION_PATTERN
-
STREAM_PATTERN
-
SIZE_PATTERN
-
FRAME_RATE_PATTERN
-
BIT_RATE_PATTERN
-
METADATA_ROTATE_PATTERN
- Since:
- 11.1
-
EMPTY_INFO
-
DURATION
- See Also:
-
WIDTH
- See Also:
-
HEIGHT
- See Also:
-
FRAME_RATE
- See Also:
-
FORMAT
- See Also:
-
STREAMS
- See Also:
-
-
Method Details
-
fromMap
Build aVideoInfo
from aMap
of attributes.Used when creating a
VideoInfo
from aDocumentModel
property. -
fromFFmpegOutput
Build aVideoInfo
from 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
Returns the format of the video. -
getStreams
Returns all theStream
s of the video. -
getFrameRate
public double getFrameRate()Returns the frame rate of the video. -
toMap
Returns aMap
of attributes for thisVideoInfo
.Used when saving this
Stream
to aDocumentModel
property.
-