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
FieldsModifier and TypeFieldDescriptionstatic final Patternstatic final Stringstatic final Patternstatic final VideoInfostatic final Stringstatic final Patternstatic final Stringstatic final Patternstatic final Stringstatic final PatternFor FFmpeg 4 and lower.static final PatternFor FFmpeg 5 and higher.static final Patternstatic final Patternstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoInfofromFFmpegOutput(List<String> output) Build aVideoInfofrom a FFmpeg output.static VideoInfofromMap(Map<String, Serializable> map) Build aVideoInfofrom aMapof attributes.doubleReturns the duration of the video.Returns the format of the video.doubleReturns the frame rate of the video.longReturns the height of the video.Returns all theStreams of the video.longgetWidth()Returns the width of the video.toMap()Returns aMapof attributes for thisVideoInfo.
-
Field Details
-
FORMAT_PATTERN
-
DURATION_PATTERN
-
STREAM_PATTERN
-
SIZE_PATTERN
-
FRAME_RATE_PATTERN
-
BIT_RATE_PATTERN
-
METADATA_ROTATE_PATTERN
For FFmpeg 4 and lower.- Since:
- 11.1
-
METADATA_ROTATION_PATTERN
For FFmpeg 5 and higher.- Since:
- 2025.8
-
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 aVideoInfofrom aMapof attributes.Used when creating a
VideoInfofrom aDocumentModelproperty. -
fromFFmpegOutput
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
Returns the format of the video. -
getStreams
Returns all theStreams of the video. -
getFrameRate
public double getFrameRate()Returns the frame rate of the video. -
toMap
Returns aMapof attributes for thisVideoInfo.Used when saving this
Streamto aDocumentModelproperty.
-