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:
  • Field Details

  • Method Details

    • fromMap

      public static VideoInfo fromMap(Map<String,Serializable> map)
      Build a VideoInfo from a Map of attributes.

      Used when creating a VideoInfo from a DocumentModel property.

    • fromFFmpegOutput

      public static VideoInfo fromFFmpegOutput(List<String> output)
      Build a VideoInfo 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

      public String getFormat()
      Returns the format of the video.
    • getStreams

      public List<Stream> getStreams()
      Returns all the Streams of the video.
    • getFrameRate

      public double getFrameRate()
      Returns the frame rate of the video.
    • toMap

      public Map<String,Serializable> toMap()
      Returns a Map of attributes for this VideoInfo.

      Used when saving this Stream to a DocumentModel property.