node-taglib-sharp / Exports / AviStream
Base class representing a stream in an AVI file. Provides basic support for parsing a raw AVI stream list.
- bottom
- codec
- flags
- handler
- initialFrames
- language
- left
- length
- priority
- quality
- rate
- right
- sampleSize
- scale
- start
- suggestedSampleSize
- top
- type
• new AviStream(list)
Constructs and initializes a new instance with a specified stream header.
| Name | Type | Description |
|---|---|---|
list |
RiffList |
RiffList containing the stream headers |
▪ Static Readonly FORMAT_CHUNK_ID: "strf"
ID of a format chunk.
▪ Static Readonly HEADER_CHUNK_ID: "strh"
ID of a header chunk.
▪ Static Readonly LIST_TYPE: "strl"
ID of a list chunk.
• get bottom(): number
Gets the offset from the bottom of the main movie rectangle where this stream should be positioned.
number
• get codec(): ICodec
Gets the codec information for this stream.
• get flags(): number
Gets any flags for the data stream.
number
• get handler(): number
Gets an optional FOURCC that identifies a specific data handler. The data handler is the preferred handler for the stream. For audio/video streams, this specifies the codec for decoding the stream.
number
• get initialFrames(): number
Gets how far audio data is skewed ahead of the video frames in an interleaved file. This value generally 0 for non-interleaved files.
number
• get language(): number
Gets the language tag for the stream.
number
• get left(): number
Gets the offset from the left of the main movie rectangle where this stream should be positioned.
number
• get length(): number
Gets the length of the stream. The units are defined by rate and scale in the main file
header.
number
• get priority(): number
Gets the priority of a stream type. For example, in a file with multiple audio streams, the one with the highest priority might be the default stream.
number
• get quality(): number
Gets an indicator of the quality of the data in the stream. Quality is represented as a
number between 0 and 10000. -1 indicates the default quality values should be used.
Remarks
For compressed data, this typically represents the value of the quality parameter passed to the compression software.
number
• get rate(): number
Used with scale to specify the timescale that this stream will use.
Remarks
Dividing rate by this gives the number of samples per second. For video streams, this is the frame rate. For audio streams, this rate corresponds to the time needed to play blockAlign bytes of audio. For PCM audio this is just the sample rate.
number
• get right(): number
Gets the offset from the right of the main movie rectangle where this stream should be positioned.
number
• get sampleSize(): number
Gets the size of a single sample of data. If the sample size varies, this will be 0.
number
• get scale(): number
Used with rate to specify the timescale that this stream will use.
Remarks
Dividing rate by this gives the number of samples per second. For video
streams, this is the frame rate. For audio streams, this rate corresponds to the time
needed to play nBlockAlign bytes of audio. For PCM audio is just the sample rate.
number
• get start(): number
Gets the starting time for this stream. The units are defined by rate and scale in the
main file header.
Remarks
Usually this is zero, but it can specify a delay time for a stream that does not start concurrently with the file.
number
• get suggestedSampleSize(): number
Gets how large of a buffer should be used to read this stream.
Remarks
Typically, this contains a value corresponding to the largest chunk present in the stream.
number
• get top(): number
Gets the offset from the top of the main movie rectangle where this stream should be positioned.
number
• get type(): AviStreamType
Gets a FOURCC that species the type of data contained in the stream.