VideoEncodeRung interface

A single rung in a video encode ladder see: NorskTransform.videoEncode()

Signature:

export interface VideoEncodeRung

Properties

Property Type Description

codec

X264Codec | X265Codec | NvidiaH264 | NvidiaHevc | LoganH264 | LoganHevc | QuadraH264 | QuadraHevc | QuadraAv1 | AmdU30H264 | AmdU30Hevc | AmdMA35DH264 | AmdMA35DHevc | AmdMA35DAv1

The codec (and detailed configuration) to use for the encoding operation.

Note: Nvidia, Logan/Quadra, AmdU30, AmdMA35D require the appropriate hardware to be set up and made available to Norsk

A ladder can use several different codecs across its various rungs and the VideoEncode node will attempt to build a pipeline that uses the hardware efficently

frameRate?

FrameRate

(Optional) Optionally change the frameRate for this rendition This can be useful if the input is 50FPS for example and some lower rungs need to be 25fps

Note: If you wish to apply the same frame rate across all rungs, it is more efficient to use a single VideoTransformNode before the ladder created with NorskTransform.videoTransform() and leave this value undefined

height

number

The height of the outgoing video resolution

name

string

The name of this rung, this should be unique across the ladder and will end up in the renditionName of the outgoing StreamKey

sar?

SampleAspectRatio

(Optional) Specifies the input video’s Sample Aspect Ratio (SAR) to be used by the encoder in width:height

width

number

The width of the outgoing video resolution