VIDEO_ENCODER

 

Description

Get or Set the type of the encoding engine in encoder.

In PlatformT and PlatformK encoders, the MPEG4 and H.264 are mutually exclusive in dual streaming mode. That means the video stream 2 will be not MPEG4 if the video stream 1 is H.264. Set the video stream 2 to MPEG4 will not take effective in this case.
In PlatformT firmware, it does not check if the change of video encoder in a video stream is conflict with the other video stream. Therefore, the OK message was returned. But, the change of video encoder will not take effective if it is conflict with the other stream.
In PlatformK firmware, the ERROR message will be returned when when the video encoder type conflicted between video stream 1 and 2. In single streaming mode, the MJPEG, MPEG4 and H.264 could be set in video stream 1. The video stream 2 will be set to MJPEG with FPS = 1 if video encoder in video stream 1 is conflict with video stream 2.

If the CHANNEL=n was not set with this URL to the multiple channel video encoder, this command is read-only command and the VIDEO_ENCODER in CHANNEL 1 will be returned. If the CHANNEL 1 video server does not connect to the router, the error message will be returned.

Important Note
Note 1
The firmware will disconnected runtime video connections associated with video encoder which its encoder type was changed. This new implementation will be available in the following firmware.

  1. PlatformA encoder firmware : 3.14 and later
  2. PlatformT encoder firmware : 4.09 and later
  3. PlatformK encoder firmware : 5.02 and later
Note 2
In PlatformT and PlatformK firmware design, the H.264 and MPEG4 are exclusive in dual streaming mode. The error message will be returned when the video encoder was set to MPEG4 from H.264 to a stream and the other stream is H.264 or set to H.264 from MPEG4 to a stream and the other stream is MPEG4. That increases NVR integration efforts. To solve that, the firmware have new design and describe below.
The firmware will change the other video stream encoder type to MJPEG automatically when the change of video encoder is conflict with H.264 or MPEG4 in a video stream no matter the video streaming mode is dual streaming mode or not.

For example : Assume the video encoder types in stream 1 and stream 2 is H.264 and H.264.
==> The device will change stream 2 video encoder type to MJPEG automatically when video stream 1 was changed to MPEG4.
This design will be implemented in the PlatformT and PlatformK firmware. The following table lists the available firmware version for this implementation.
Platform Firmware Version
PlatformT 4.11 firmware
PlatformK 5.04 firmware

Input Argument

MJPEG, MPEG4, H264

Attribute

Return of Message

VIDEO_ENCODER='MPEG4'

OK: VIDEO_ENCODER='MPEG4'
or
ERROR: VIDEO_ENCODER='MPEG4'

Applicability

Status

Valid

See Also

VIDEO_BITRATE, VIDEO_MAX_BITRATE, VIDEO_MPEG4_QUALITY, VIDEO_H264_QUALITY, VIDEO_FPS_NUM

Example

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&VIDEO_ENCODER
or
http://ip:port/cgi-bin/cmd/encoder?VIDEO_ENCODER

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&VIDEO_ENCODER=MPEG4
or
http://ip:port/cgi-bin/cmd/encoder?VIDEO_ENCODER=MPEG4

Back to

HOME, ENCODER CGI