NorskTransform interface

Methods that allow you to manipulate your media streams

Signature:

export interface NorskTransform

Methods

Method Description

audioBuildMultichannel(settings)

Aggregate many single-channel audio streams into a stream with the specified channel layout. The streams must all have the same sample format and sample rate. The order of the streams provided for the channels is important.

audioEncode(settings)

Encode an audio stream.

audioGain(settings)

Apply gain to an audio stream

audioMix(settings)

Mix multiple audio streams together into a single output, with optional gain control on each input.

audioMixMatrix(settings)

Given an audio stream of N channels, mix it down to M channels through a matrix of NxM gains.

audioSplitMultichannel(settings)

Split a multichannel audio stream into its individual channels. The first channel receives the specified stream key, and each subsequent channel increments the stream id on the stream key.

audioTranscribeAws(settings)

Create a Media Node performing transcription into subtitles using the Amazon Transcribe AWS service.

streamChaosMonkey(settings)

Interferes with a stream by dropping frames Why would you want this? Stick one of these after a decoder and before anything else in order to simulate what the world is going to look like if you have network problems (packet drops for example) in your ingest

Just don’t forget to remove it again when you’ve finished testing!

streamKeyOverride(settings)

Provide a new stream key for a single stream. Cannot be subscribed to multiple streams at once.

The stream key is used for identifying streams within multiplexed sources and also is translated into URIs for HLS playlists and other resources.

This can be useful if changing sources and wanting to maintain a consistent streamkey going into an output

streamMetadataOverride(settings)

Override bitrate and language metadata on streams.

Audio and video bitrate metadata is required for playlists for both NorskOutput.cmafMaster() and NorskOutput.hlsMasterPush() nodes. It is automatically configured for some sources (like RTMP) and in cases where re-encoding is done, but is unset for other sources (like SRT).

streamSync(settings)

Sync multiple streams together by timestamps, queuing frames from streams that are behind the others. This is already included in most nodes, especially outputs.

streamTimestampNudge(settings)

A node to nudge the timestamps on a stream, which affects how it syncs with other streams. Useful for correcting for drift between different sources.

Subsequent nudges, via the nudge method, are applied gradually.

This functionality is also provided by a nudge method on many sources.

videoCompose(settings)

Compose multiple video streams together into a single output

videoEncode(settings)

Encode a video stream to one or more renditions using either software or appropriate hardware if available

videoTransform(settings)

Transform a single video stream (rescale, frame rate, etc)