SVO_ENCODING_PRESET Class Reference

Lists available encoding presets for SVO recording. More...

Static Functions

def from_string (str, name)
 Converts a string to the corresponding SVO_ENCODING_PRESET enum value. More...
 

Detailed Description

Lists available encoding presets for SVO recording.

The preset controls the speed/quality tradeoff of the hardware encoder.

Enumerator
ULTRAFAST Fastest encoding, lowest quality.
Maps to NVENC P1 / V4L2 ULTRAFAST.
FAST Fast encoding.
Maps to NVENC P2 / V4L2 FAST.
MEDIUM Balanced speed/quality.
Maps to NVENC P3 / V4L2 MEDIUM.
SLOW Slow encoding, higher quality.
Maps to NVENC P5 / V4L2 SLOW.
DEFAULT Encoder default.
Maps to NVENC P4 / V4L2 default.

Functions

◆ from_string()

def from_string (   str,
  name 
)
static

Converts a string to the corresponding SVO_ENCODING_PRESET enum value.

Parameters
name: The string representation of the SVO_ENCODING_PRESET enum value.
Returns
The corresponding SVO_ENCODING_PRESET enum value. If the string does not match any SVO_ENCODING_PRESET, SVO_ENCODING_PRESET.LAST is returned.