public final class VideoInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
BIT_RATE_PATTERN |
static String |
DURATION |
static Pattern |
DURATION_PATTERN |
static VideoInfo |
EMPTY_INFO |
static String |
FORMAT |
static Pattern |
FORMAT_PATTERN |
static String |
FRAME_RATE |
static Pattern |
FRAME_RATE_PATTERN |
static String |
HEIGHT |
static Pattern |
SIZE_PATTERN |
static Pattern |
STREAM_PATTERN |
static String |
STREAMS |
static String |
WIDTH |
| Modifier and Type | Method and Description |
|---|---|
static VideoInfo |
fromFFmpegOutput(List<String> output)
Build a
VideoInfo from a FFmpeg output. |
static VideoInfo |
fromMap(Map<String,Serializable> map)
Build a
VideoInfo from a Map of attributes. |
double |
getDuration()
Returns the duration of the video.
|
String |
getFormat()
Returns the format of the video.
|
double |
getFrameRate()
Returns the frame rate of the video.
|
long |
getHeight()
Returns the height of the video.
|
List<Stream> |
getStreams()
Returns all the
Streams of the video. |
long |
getWidth()
Returns the width of the video.
|
Map<String,Serializable> |
toMap()
Returns a
Map of attributes for this VideoInfo. |
public static final Pattern FORMAT_PATTERN
public static final Pattern DURATION_PATTERN
public static final Pattern STREAM_PATTERN
public static final Pattern SIZE_PATTERN
public static final Pattern FRAME_RATE_PATTERN
public static final Pattern BIT_RATE_PATTERN
public static final VideoInfo EMPTY_INFO
public static final String DURATION
public static final String WIDTH
public static final String HEIGHT
public static final String FRAME_RATE
public static final String FORMAT
public static final String STREAMS
public static VideoInfo fromMap(Map<String,Serializable> map)
VideoInfo from a Map of attributes.
Used when creating a VideoInfo from a DocumentModel property.
public static VideoInfo fromFFmpegOutput(List<String> output)
VideoInfo from a FFmpeg output.public double getDuration()
public long getWidth()
public long getHeight()
public List<Stream> getStreams()
Streams of the video.public double getFrameRate()
public Map<String,Serializable> toMap()
Map of attributes for this VideoInfo.
Used when saving this Stream to a DocumentModel property.
Copyright © 2019 Nuxeo. All rights reserved.