Get the video FPS number capabilities by giving some video settings.
Because the FPS number is very with several video settings like streaming mode, encoder type, video resolution and sensor type, it is vary difficult to have a mapping table to give the correlation among these settings. In remote site, it is difficult to present correct FPS number when other video parameters were changed. This URL gives the correct FPS capabilities for this purpose.
If the CHANNEL=n was not set in the Multi-Channel device, the CHANNLE 1 video server's FPS capabilities will be returned. If the CHANNEL 1 video server does not connect to the router, the error message will be returned.
Important Note
This URL will NOT set the encoder to the specific streaming mode, encoder type and the video resolution which they are the input arguments of this URL. These arguments provide device the parameter to calculate the FPS number listings for reference.
stream,encoder1,resolution1,encoder2,resolution2
where
stream: video streaming mode. It could be SINGLE, DUAL or QUAD (for ACD2000Q only). Please refer to VIDEO_STREAM URL in ENCOODER CGI.
encoder1: encoder type in stream 1. It could be MJPEG, MPEG4 or H264. Please refer to VIDEO_ENCODER URL in ENCODER CGI.
resolution1: video resolution in stream 1. The format of this argument is the same as it in VIDEO_RESOLUTION URL in ENCODER CGI
encoder2: encoder type in stream 2. It is similar to encoder1 here and only valid in the PlatformT encoders with DUAL streaming mode.
resolution2: video resolution in stream 2. It is similar to resolution1 and only valid in the PlatformT encoders with DUAL streaming mode.PlatformW and PlatformA encoders
Because the encoders in platformW and platformA are single stream devices, the encoder2 and resolution2 are ignored or could be any values followed the format of encoder type and video resolution. The format of input argument could be
stream,encoder1,resolution1
or
stream,encoder1,resolution1,encoder2,resolution2PlatformT encoders
When the first input argument stream is SINGLE, the encoder2 and resolution2 are ignored or could be any values followed the format of encoder type and video resolution. In this case, the format of the input argument could be
stream,encoder1,resolution1
or
stream,encoder1,resolution1,encoder2,resolution2When the stream is DUAL, the stream1, resolution, stream2, resolution2 are needed to conduct the FPS number listings for two video streams. The format of the input argument has to be
stream,encoder1,resolution1,encoder2,resolution2
The format of the return is S1M1FPS-S1M2FPS;S2M1FPS-S2M2FPS
where
S1M1FPS is the FPS number listing in FPS Mode=MODE1 (Constant FPS Mode) for stream 1
S1M2FPS is the FPS number listing in FPS Mode=MODE2 (Variable FPS Mode) for stream 1
S2M1FPS is the FPS number listing in FPS Mode=MODE1 (Constant FPS Mode) for stream 2
S2M2FPS is the FPS number listing in FPS Mode=MODE2 (Variable FPS Mode) for stream 2
The format of these four return messages are the listing of the FPS number in ascent order. For example, it could be 1,2,3,4,5,7,19,15,30.
The - is used to separate these two FPS modes and the ; is used to separate two streams' FPS number listings.In PlatformW and PlatformA encoders, they are single stream devices. Therefore, the FPS number listing in stream 2 will not be in the return message. The format of the return message in these devices should be
S1M1FPS-S1M2FPS
In PlatformT encoders, they are dual stream devices. They could be configured to be a single stream devices or dual stream devices. The format of return message depends on the first input argument of this URL.
- stream is SINGLE
The format of the return message should be S1M1FPS only.
- stream in DUAL
The format of the return message should be S1M1FPS;S2M1FPS
Example
In the PlatformA D1 NTSC camera, the return of this URL could be FPS_CAP_QUERY_ALL='1,2,3,4,5,6,7,10,15,30-1,2,3,5,7,15,30'
In the PlatformT camera, the return of this URL could be
FPS_CAP_QUERY_ALL='1,2,3,4,5,6,7,10,15,30' (stream is SINGLE in the first input argument)
or
FPS_CAP_QUERY_ALL='1,2,3,4,5,6,7,10,15,30;1,2,3,4,5,6,7,10,15,30' (stream is DUAL in the first input argument)The return message will be returned if there is no input argument or invalid input arguments. The return message is
ERROR: invalid parameters
Valid
VIDEO_RESOLUTION_CAP, VIDEO_FPS_CAP
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&FPS_CAP_QUERY_ALL=SINGLE,MPEG4,N720x480
or
http://ip:port/cgi-bin/cmd/encoder?FPS_CAP_QUERY_ALL=SINGLE,MPEG4,N720x480
http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&CHANNEL=n&FPS_CAP_QUERY_ALL=DUAL,MPEG4,N1280x1024,MJPEG,N640x480
or
http://ip:port/cgi-bin/cmd/encoder?CHANNEL=n&FPS_CAP_QUERY_ALL=DUAL,MPEG4,N1280x1024,MJPEG,N640x480
where
n: it could be 1 or 2 but without any meaning in this URL.
HOME, ENCODER CGI