Constructors

Properties

file: Buffer

Methods

  • Returns {
        duration: number;
        height: number;
        width: number;
    }

    • duration: number
    • height: number
    • width: number
  • Returns Buffer[]

  • Gets duration in ms, width and height info for a video in the mp4 container

    Parameters

    • buffer: Buffer

      Buffer, containing the video-file

    Returns {
        duration: number;
        height: number;
        width: number;
    }

    duration in ms, width and height in px

    • duration: number
    • height: number
    • width: number
  • Reads the duration in ms from any MP4 file with at least one stream (a/v)

    Parameters

    • buffer: Buffer

    Returns number