Class: MpegVideoHeader
March 10, 2023 · View on GitHub
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
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
Implementation of
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
videoWidth
• get videoWidth(): number
Width of the video in pixels represented by the current instance.
Returns
number