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. It is equivalent to adjusting parameters in the Live Stream settings of the Output menu of the UI Switcher panel.
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
url – RTMP url
key – Stream key
bitrate_min – Minimum bitrate
bitrate_max – Maximum bitrate
- class pyatem.command.StreamingStatusSetCommand(streaming)
Implementation of the StrR command. This starts and stops the live stream. It is equivalent to pressing ON AIR in the Live Stream settings of the Output menu of the UI Switcher panel.
Offset
Size
Type
Description
0
1
bool
Stream enable
1
3
?
unknown
- __init__(streaming)
- Parameters:
streaming – True starts streaming; False stops
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. It is equivalent to adjusting parameters in the Record settings of the Output menu of the UI Switcher panel.
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
disk1 – ID for disk 1
disk2 – ID for disk 2
record_in_camera – Trigger recording on attached cameras
- class pyatem.command.RecorderStatusCommand(recording)
Implementation of the RcTM command. This starts and stops the stream recorder. It is equivalent to pressing REC in the Record area of the Output menu of the UI Switcher panel.
Offset
Size
Type
Description
0
1
bool
Recording state
1
3
?
unknown
- __init__(recording)
- Parameters:
recording – Whether the hardware should be recording