Class VideoInfo

    • Method Detail

      • 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.