CHANNEL_VARIABLE_FPS

Description

Set or Get the variable FPS number in the specific channel in the decoder. The decoder will request this FPS number when it connects to the encoder which it is in the constant or variable FPS mode.

There are two FPS modes in the encoder, Constant FPS and Variable FPS.

In Constant FPS mode, the frame rate , the number of frames per second, in the video stream from encoder to decoder is constant. In encoder's MPEG4 streaming, the GOP was set based on this frame rate. Every decoder gets the video stream with the same frame rate which is not able to be changed. For example, one I frame and 29 P frames will be streamed when the frame rate is 30 (GPO is 30).

In Variable FPS mode, the frame rate , the number of frames per second, in the video stream from encoder to decoder is not constant, The GOP is 5 in all WPL Platform encoders and 8CH Multi-Channel Encoders. The GOP is 2 in all EPL, PlatformT and 4CH, 16CH Multi-Channel Encoders. The decoder could change the frame rate at any time and get I frame only in MPEG4 steam in most cases. For example, the host get the 6 I frame in every second if it sets the frame rate to 6 and get 6 I frames and 24 P frames if it set the frame rate to 30 in MPEG4 stream.

Note that the supported variable FPS numbers are different from encoders to encoders. The user should use the VIDEO_FPS_CAP in SYSTEM CGI to get this information before use this URL.

Input Argument

n
where
n  : the channel ID in the decoder, 1~16.

n,m
where
n  : the channel ID in the decoder, 1~16
m : the index of variable FPS number, where
      0: Get the video from encoder which is in the constant FPS mode. The FPS number is decided by the encoder.
      1: Get the video from encoder which is in the Variable FPS mod and the FPS number is 30/25 in NTSC/PAL.
      2: Get the video from encoder which is in the Variable FPS mod and the FPS number is 6/5 in NTSC/PAL.
      3: Get the video from encoder which is in the Variable FPS mod and the FPS number is 3/2 in NTSC/PAL.
      4: Get the video from encoder which is in the Variable FPS mod and the FPS number is 1/1 in NTSC/PAL.

Attribute

Return of Message

CHANNEL_VARIABLE_FPS='1,1'
OK: CHANNEL_VARIABLE_FPS='1,1'
or
ERROR: CHANNEL_VARIABLE_FPS='1,1'

Applicability

Status

Valid

See Also

CHANNEL_CONFIG, CHANNEL_TIME, CHANNEL_INFO, CHANNEL_SWITCH

Example

http://ip:port/cgi-bin/decoder?USER=Admin&PWD=123456&CHANNEL_VARIABLE_FPS=2
or
http://ip:port/cgi-bin/cmd/decoder?CHANNEL_VARIABLE_FPS=2

http://ip:port/cgi-bin/decoder?USER=Admin&PWD=123456&CHANNEL_VARIABLE_FPS (get channel 1's variable FPS number setting)

or
http://ip:port/cgi-bin/cmd/decoder?CHANNEL_VARIABLE_FPS (get channel 1's variable FPS number setting)

http://ip:port/cgi-bin/decoder?USER=Admin&PWD=123456&CHANNEL_VARIABLE_FPS=2,30
or
http://ip:port/cgi-bin/cmd/decoder?CHANNEL_VARIABLE_FPS=2,30

Back to

HOME, URL CGI