![background image](http://html1.mh-extra.com/html/amx/nmx-prs-n7142/nmx-prs-n7142_instruction-manual_2939079067.webp)
Appendix B: NetLinx Control
67
N7142 User Manual
Network Video Recorder Commands
The following section provides information on native and string commands for the N-Series Network Video Recorder (NVR) as
related to NetLinx management.
Native Commands Port 1
Command
Description
MODE <mode>
Set the recording and playback mode.
IMPORTANT:
This command must be sent to D:P:S port 1.
Syntax:
SEND_COMMAND <DEV>, ’MODE <mode>’
Variables:
<mode> = the desired recording/playback mode. Modes include:
1 = N1000 mode
2 = N2000 mode
3 = N3000 mode
Examples:
SEND_COMMAND 5002:1:0, ’MODE 2’
Command Response:
’MODE-2’
Command the NVR to N2000 mode.
MPEG_MODE <mode>
Set the conversion mode.
IMPORTANT:
This command must be sent to D:P:S port 1.
Syntax:
SEND_COMMAND <DEV>, ’MPEG_MODE <mode>’
Variables:
<mode> = The desired conversion mode.
mp4 = Convert to mp4 format.
mov = Convert to mov format.
Examples:
SEND_COMMAND 5002:1:0, ’MPEG_MODE mp4’
Command Response:
’MPEG_MODE-mp4’
Command the NVR to convert to mp4 format.
PLAY
Play a recorded stream.
IMPORTANT:
This command must be sent to D:P:S port 1.
Syntax:
SEND_COMMAND <DEV>, ’PLAY <channel>,<recording>, <loop>[, <single> [,
<start>[, <end>]]]’
Variables:
<channel> = Number of the NVR channel to use for playback.
<recording> = Filename of recording in “f.########.index” format, or zero-
based index number in list.
<loop> = 1 for looping, 0 to play once.
<single> = 1 for first stream only (for dual recordings only), 0 to play all streams.
(default). <start> = Number of seconds from start to start playing.
<end> = Number of seconds from start to end playing.
Examples:
SEND_COMMAND 5002:1:0, ’PLAY 0,0,1’
Command Response:
’PLAY-1000000000’
Indicates NVR is playing on channel 1.
PLAY_STOP
Stop the current playback.
IMPORTANT:
This command must be sent to D:P:S port 1.
Syntax:
SEND_COMMAND <DEV>, ’PLAY_STOP [<channel>]’
Variables:
<channel> = Number of the NVR channel to use for playback. Use -1 or leave
blank for all playing.
Examples:
SEND_COMMAND 5002:1:0, ’PLAY_STOP’
Command Response:
’PLAY-0000000000’
Indicates NVR is not playing on any channel. Stops playback on all channels.