import { File } from "../file"; import { IVideoCodec, MediaTypes } from "../properties"; /** * Provides information about an MPEG video stream. */ export default class MpegVideoHeader implements IVideoCodec { private static readonly FRAME_RATES; private readonly _frameRateIndex; private readonly _videoBitrate; private readonly _videoHeight; private readonly _videoWidth; /** * Constructs and initializes a new instance of {@link MpegVideoHeader} by reading it from a * specified location in a specified file. * @param file File to read the header from * @param position Position in `file` at which the header begins */ constructor(file: File, position: number); /** @inheritDoc */ get description(): string; /** * @inheritDoc * @remarks For MPEG, this is always 0 */ get durationMilliseconds(): number; /** @inheritDoc */ get mediaTypes(): MediaTypes; /** @inheritDoc */ get videoBitrate(): number; /** @inheritDoc */ get videoFrameRate(): number; /** @inheritDoc */ get videoHeight(): number; /** @inheritDoc */ get videoWidth(): number; }