Programming
Encoding Command (Cont.)
?AUDSTRM_CODEC
Requests the audio codec
currently used by the input
port.
?AUDSTRM_MUTE
Requests the audio mute
status.
AUDSTRM_MUTE
Sets the audio muting on the
stream.
?AUDSTRM_RATE
Requests the audio bit rate
for the input port.
AUDSTRM_RATE
Sets the audio bit rate for the
input port.
?VIDIN_FORMAT
Requests the input format of
the video port.
VIDIN_FORMAT
Sets the input format of the
video port.
34
Syntax:
SEND_COMMAND <DEV>, "'?AUDSTRM_CODEC'"
Example:
SEND_COMMAND AUDIO_1, "'?AUDSTRM_CODEC'"
Returns a COMMAND string of the form: AUDIN_FORMAT-<codec>.
Request the encoder if the audio stream is muted.
Syntax:
SEND_COMMAND <DEV>, "'?AUDSTRM_MUTE'"
Example:
SEND_COMMAND AUDIO_1, "'?AUDSTRM_MUTE'"
Returns a COMMAND string of the form: AUDSTRM_MUTE-<enable|disable>.
Enable or disable audio muting on the stream.
Syntax:
SEND_COMMAND <DEV>,"'AUDSTRM_MUTE-<setting>'"
Variables:
setting = desired mute state, either ENABLE or DISABLE
Example:
SEND_COMMAND AUDIO_1,"'AUDSTRM_MUTE-DISABLE'"
Requests current audio bit rate that is being streamed out by the input port.
Syntax:
SEND_COMMAND <DEV>, "'?AUDSTRM_RATE'"
Example:
SEND_COMMAND AUDIO_1, "'?AUDSTRM_RATE'"
Returns a COMMAND string of the form: AUDIN_FORMAT-<rate>.
Specifies the audio stream bit rate for port addressed by the D:P:S.
Syntax:
SEND_COMMAND <DEV>, "'AUDSTRM_RATE-<rate>'"
Variable:
Rate = 64, 96, 128, 192 (all rates in kbps)
Example:
SEND_COMMAND AUDIO_1, "'AUDSTRM_RATE-192'"
Sets audio rate for output port (#1 based on the D:P:S) to 192kb per second.
Requests the input format of the video port addressed by the D:P:S.
Note: Queries sent to port 2 will not receive a response from the encoder. All
queries should be sent to port 1.
Syntax:
SEND_COMMAND <DEV>, "'?VIDIN_FORMAT'"
Example:
SEND_COMMAND VIDEO_INPUT_1,"'?VIDIN_FORMAT'"
Returns a COMMAND string of the form: VIDIN_FORMAT-<format>.
Sets the input format of the video port addressed by the D:P:S to <format>.
Syntax:
SEND_COMMAND <DEV>, "'VIDIN_FORMAT-<format>'"
Variables:
format = SDI, HDMI, DVI, S-VIDEO, COMPONENT, COMPOSITE, VGA for
Multi-Format inputs.
Example:
SEND_COMMAND VIDEO_INPUT_1,"'VIDIN_FORMAT-COMPONENT'"
Sets the format of video input port (#1 based on D:P:S) to COMPONENT.
Instruction Manual - NMX-ENC H.264 Encoder