hi_venc_vui_h264_time_info

Description

Defines the TimeInfo information in the VUI field of an H.264 encoding channel.

Prototype

hi_venc_vui_h264_time_info = {"timing_info_present_flag": timing_info_present_flag,
                              "fixed_frame_rate_flag": fixed_frame_rate_flag,
                              "num_units_in_tick": num_units_in_tick,
                              "time_scale": time_scale}

Members

Member

Description

timing_info_present_flag

Int, flag that indicates whether the clock tick count information in the VUI field takes effect. The value can be 0 (default) or 1. Other parameters in the table are valid only when this flag is set to 1.

fixed_frame_rate_flag

Int. For details, see the H.264 protocol. The value can be 0 or 1 (default).

num_units_in_tick

Int, number of time units elapsed when the clock tick counter is increased by 1. The value must be larger than 0. The default value is 1.

time_scale

Int, number of time units elapsed within one second. The value must be larger than 0. The default value is 60.

Precautions

  • The clock tick count is used to mark video frame signals. In this H.264 encoder, the video display frame rate can be calculated according to the following formula: display_rate = time_scale/num_units_in_tick/2.
  • Since the display frame rate is only related to the ratio of time_scale to num_units_in_tick, you are advised to retain the value of num_units_in_tick to 1 during setting, and adjust the display frame rate through the time_scale attribute. At this time, the display_rate = time_scale/2.
  • The player determines the display frame rate, and can choose not to reference the TimeInfo information.