STREAM

 

Description

This URL is used only in the TCD-2000Q QUAD Video Encoder to indicate the stream ID (1 or 2) in the QUAD mode.
In TCD-2000Q, the CHANNEL command is used to identify the video source ID (1, 2, 3, 4). For example, the URL
http://ip:port/cgi-bin/cmd/encoder?CHANNEL=1&VIDEO_BRIGHTNESS queries the video brightness setting of video channel 1.
In QUAD mode, the dual video streams, stream 1 and stream 2, are available. Some configurations like video bitrate, resolution could be different in streams. To give the stream ID in the QUAD mode, the STREAM command is used then. For example, the URL
http://ip:port/cgi-bin/cmd/encoder?STREAM=2&VIDEO_RESOLUTION queries the video resolution setting in the stream 2.

Like VIDEO_STATUS URL, the TCD-2000Q has difficulty to return the video configurations because the terms of return message include video channel settings and video streaming settings. For example, the return of URL http://ip:port/cgi-bin/cmd/encoder?CHANNEL=1&VIDEO_STATUS is

VIDEO_BRIGHTNESS='25'
VIDEO_CONTRAST='15'
VIDEO_SATURATION='67'
VIDEO_HUE='50'
VIDEO_RESOLUTION='N720x480'
VIDEO_BITRATE='1.2M'
VIDEO_FPS='MODE1'
VIDEO_FPS_NUM='30'
VIDEO_CAMERA_NAME='Camera-1'

The VIDEO_BRIGHTNESS, VIDEO_CONTRAST, VIDEO_SATURATION and VIDEO_HUE are the video channel settings and the rest of them are video streaming settings. The TCD-2000Q replied the video channel 1 settings because the CHANNEL=1 was in the URL command. It is confusing that the rest of video streaming settings like VIDEO_RESOLUTION, VIDEO_BITRATE,..., are stream 1 or stream 2 settings here. The STREAM command helps on that. To query stream 2 video streaming settings in VIDEO_STATUS URL should be like this : http://ip:port/cgi-bin/cmd/encoder?CHANNEL=1&STREAM=2&VIDEO_STATUS
The CHANNEL=1 indicates the video settings in video source 1 are requested and STREAM=2 indicates the stream 2 settings are requested in above URL.

The STREAM command should be right after the CHANNEL command if there is CHANNEL command in the URL. If the STREAM command is not included in the URL, the TCD-2000Q uses steam 1 as the target video stream to response the URL.
If the CHANNEL command is not included in the URL, the TCD-2000Q uses the video source 1 is the target channel to response the URL.
Note that the STREAM command will be ignored in SINGLE and SEQUENTIAL modes in TCD-2000Q.

Input Argument

n
where
n could be 1 for stream 1 or 2 for stream 2

Attribute

Return of Message

None

Applicability

Platform Devices Supported Firmware Version
PlatformT TCD-2000Q A4Q-310-V4.00 and later

Statue

Valid

See also

None

Example

http://ip:port/cgi-bin/encoder?USER=admin&PWD=123456&STREAM=1&CMD
or
http://ip:port/cgi-bin/cmd/encoder?STREAM=1&CMD

http://ip:port/cgi-bin/encoder?USER=admin&PWD=123456&STREAM=1&CMD=Value
or
http://ip:port/cgi-bin/cmd/encoder?STREAM=1&CMD=Value

Back To

HOME, ENCODER CGI