我要评分
获取效率
正确性
完整性
易理解

System Properties of the Video Stream Engine Server

The video stream engine server supports system property configuration. Users can set properties in the Android system settings. If users do not configure the following properties, the default value of each property is used, as shown in Table 1.

Table 1 System property fields of the video stream engine server

Field Name

Description

Value Range

Default Value

ro.vmi.video.capture.format

Sets the format of captured images. (This item cannot be modified during program running.)

  • 1: YUV (The CPU performs RGB-to-YUV conversion, and an external encoder is used for encoding.)
  • 2: YUV (The GPU performs RGB-to-YUV conversion, and an external encoder is used for encoding.)

2

ro.vmi.video.capture.gpu_dev

Sets the GPU device node for capturing images, which must be the same as the GPU device node for rendering images. (This item cannot be modified during program running.)

Format: /dev/dri/renderDxxx

xxx ranges from 128 to 133.

/dev/dri/renderD128

persist.vmi.video.capture.interpolation

Sets the frame interpolation function.

  • 0: Disable the frame interpolation function.
  • 1: Enable the frame interpolation function.

    When the image refresh rate is low (that is, no image is updated within 1/4 seconds), the frame interpolation function is enabled to ensure that the average frame rate of output streams is the same as the frame rate set on the cloud phone.

1

persist.vmi.video.encode.bitrate

Sets the encoding bit rate.

1,000,000 to 10,000,000

Unit: bit/s

5000000: The default encoding bit rate is 5 Mbit/s during H.264 encoding.

3000000: The default encoding bit rate is 3 Mbit/s during H.265 encoding.

persist.vmi.video.encode.gopsize

Sets the encoding GOP size.

30 to 3000

30

persist.vmi.video.encode.profile

Sets the encoding profile. (Only main can be used for H.265 encoding.)

baseline, main, or high

baseline: The default encoding profile is baseline during H.264 encoding.

main: The default encoding profile is main during H.265 encoding.

persist.vmi.video.encode.param_adjusting

Sets whether the modifications of encoding parameters take effect.

The following encoding parameters can be modified during program running:

  • persist.vmi.video.encode.bitrate
  • persist.vmi.video.encode.gopsize
  • persist.vmi.video.encode.profile
  • 0: The modifications of encoding parameters do not take effect at runtime.
  • 1: The modifications of encoding parameters take effect at runtime.

0

persist.vmi.video.encode.keyframe

Sets forced I-frame encoding.

  • 0: Disable forced I-frame encoding.
  • 1: Enable forced I-frame encoding. In the normal encoding phase, after this function is called, the next output frame is an I-frame.

0