Video encoder commands

These are the commands related to the built in video encoder in the ATEM Mini series of video switchers. This controls both the live stream and stream recorder component.

Live streaming

class pyatem.command.StreamingServiceSetCommand(name=None, url=None, key=None, bitrate_min=None, bitrate_max=None)

Implementation of the CRSS command. This sets the parameters for the live stream output.

Offset

Size

Type

Description

0

1

u8

Mask

1

64

str

Service name

65

512

str

Url

577

512

str

Streaming key

1089

3

?

padding bytes

1092

4

u32

Minimum bitrate (Bps)

1096

4

u32

Maximum bitrate (Bps)

Bit

Mask value

0

Service name

1

Url

2

Key

3

Min/Max bitrate

__init__(name=None, url=None, key=None, bitrate_min=None, bitrate_max=None)
Parameters:
  • name – New streaming service name, or None

  • url – RTMP url, or None

  • key – Stream key, or None

  • bitrate_min – Minimum bitrate, or None

  • bitrate_max – Maximum bitrate, or None

class pyatem.command.StreamingStatusSetCommand(streaming)

Implementation of the StrR command. This starts and stops the live stream

Offset

Size

Type

Description

0

1

bool

Stream enable

1

3

?

unknown

__init__(streaming)
Parameters:

streaming – True to start streaming, False to stop streaming

Recording

class pyatem.command.RecordingSettingsSetCommand(filename=None, disk1=None, disk2=None, record_in_camera=None)

Implementation of the CRMS command. This sets the parameters for the stream recorder.

Offset

Size

Type

Description

0

1

u8

Mask

1

128

str

Filename

132

4

u32

Disk 1 id

136

4

i32

Disk 2 id

140

1

bool

Record in all cameras

__init__(filename=None, disk1=None, disk2=None, record_in_camera=None)
Parameters:
  • filename – Filename for recording, or None

  • disk1 – ID for disk 1, or None

  • disk2 – ID for disk 2, or None

  • record_in_camera – Trigger recording on attached cameras, or None

class pyatem.command.RecorderStatusCommand(recording)

Implementation of the RcTM command. This starts and stops the stream recorder.

Offset

Size

Type

Description

0

1

bool

Recording state

1

3

?

unknown

__init__(recording)
Parameters:

recording – Whether the hardware should be recording