Skip to content

Latest commit

 

History

History
149 lines (80 loc) · 2.82 KB

File metadata and controls

149 lines (80 loc) · 2.82 KB

node-taglib-sharp / Exports / MpegVideoHeader

Class: MpegVideoHeader

Provides information about an MPEG video stream.

Implements

Table of contents

Constructors

Accessors

Constructors

constructor

• new MpegVideoHeader(file, position)

Constructs and initializes a new instance of MpegVideoHeader by reading it from a specified location in a specified file.

Parameters

Name Type Description
file File File to read the header from
position number Position in file at which the header begins

Accessors

description

• get description(): string

Gets a text description of the media represented by the current instance.

Returns

string

Implementation of

IVideoCodec.description


durationMilliseconds

• get durationMilliseconds(): number

Duration of the media in milliseconds represented by the current instance.

Remarks

For MPEG, this is always 0

Returns

number

Implementation of

IVideoCodec.durationMilliseconds


mediaTypes

• get mediaTypes(): MediaTypes

Types of media represented by the current instance, bitwise combined.

Returns

MediaTypes

Implementation of

IVideoCodec.mediaTypes


videoBitrate

• get videoBitrate(): number

Inherit Doc

Returns

number


videoFrameRate

• get videoFrameRate(): number

Inherit Doc

Returns

number


videoHeight

• get videoHeight(): number

Height of the video in pixels represented by the current instance.

Returns

number

Implementation of

IVideoCodec.videoHeight


videoWidth

• get videoWidth(): number

Width of the video in pixels represented by the current instance.

Returns

number

Implementation of

IVideoCodec.videoWidth