AMX MAX-CSEStreaming Send_Commands Cont, NetLinx Programming, Description, Set Url, Set Video

Models: MAX-CSD 10 MAX-CSE

1 110
Download 110 pages 20.97 Kb
Page 88
Image 88
SET URL

NetLinx Programming

MAX-CSE Streaming Send_Commands (Cont.)

Command

Description

 

 

SET URL

The communication parameters must include: communication protocol,

Set the URL parameters for

IP Address, and port used.

 

the current audio/video

Syntax:

stream.

SEND_COMMAND <DEV>,"'SET URL <protocol> <addr> <port>

 

 

[<audio port>]'"

 

Variables:

 

protocol = RTP or UDP.

 

address = Address of stream in IPv4 dot notation (ex: X.X.X.X).

 

port = Primary port for audio/video transport.

 

audio port = Port for audio stream (RTP only).

 

Example:

 

SEND_COMMAND ENCODER,"'SET URL UDP 239.168.42.10 5000'"

 

Sets the URL to a multicast session (UDP) where it will use port 5000 at an

 

IP Address of 239.168.42.10. Since the protocol is UDP, a second audio port is

 

not needed.

 

Example 2:

 

SEND_COMMAND ENCODER,"'SET URL RTP 239.168.42.10 5000

 

5002'"

 

Sets the URL to an IP Address of 239.168.42.10. Since the protocol is RTP,

 

two ports are needed; port 5000 is used for the video stream and port 5002 is

 

used for the audio stream.

 

 

SET VIDEO

The configuration parameters include: codec, resolution, and bit rate.

Set the configuration

Note: Setting the video configuration during 'play' state has undefined results.

parameters for the video

Syntax:

codec.

SEND_COMMAND <DEV>,"'SET VIDEO <codec> <res> <rate>

 

 

<mode>'"

 

Variables:

 

codec = Off, MPEG2, or MPEG4.

 

res = D1, or SIF, or <width>X<height> (up to a D1 resolution).

 

rate = Bit rate specified in Kbps (kilobits per second).

 

- range of 2000 - 6000 used for an MPEG2 stream

 

- range of 500 - 3000 used for an MPEG4 stream

 

mode = CBR (constant Bit rate) or VBR (variable Bit rate).

 

Example:

 

SEND_COMMAND ENCODER,"'SET VIDEO MPEG2 D1 6000 CBR'"

 

Sets the video configuration to use a very high quality video stream set at

 

MPEG2, with a D1 resolution at constant bit rate of 6000 Kbps.

 

 

82

MAX-CSE/MAX-CSD10 Operation/Reference Guide

Page 88
Image 88
AMX MAX-CSD 10 manual MAX-CSEStreaming Send_Commands Cont, NetLinx Programming, Description, Set Url, Set Video