#################################################################### ## Media debug takes effect when the specified path file exists ## and has read permission. ## These paths are supported in the following order of priority: ## 1. /mnt/extsd/media_debug.conf ## 2. /tmp/sd/media_debug.conf ## 3. /tmp/media_debug.conf ## 4. /data/media_debug.conf ## 5. /mnt/disk_0/media_debug.conf ## 6. export MPP_MEDIA_DEBUG_FILE_PATH=/your_file_path/media_debug.conf ## Notes: ## The Maximum number of concurrent modification parameter groups: ## VIPP: 16, VENC: 16, MUX: 8 #################################################################### [vipp_params] vipp_id = 0,4 #online_en = 0,0 #online_share_buf_num = 2,2 #src_width = 1920,640 #src_height = 1080,360 #src_framerate = 20,20 #pixfmt = nv21,nv21 #color_space = rec709_part_range,rec709_part_range #encpp_enable = 0,0 #vi_buffer_num = 3,3 #drop_frm_num = 10,10 #wdr_en = 0,0 [venc_params] venc_ch_id = 0,1 #rec_ref_buf_reduce_enable = 0,0 #debug_ignore_all_frame = 0,0 #disable_isp2ve = 1,1 #disable_ve2isp = 1,1 #online_en = 0,0 #Must be consistent with vipp #online_share_buf_num = 2,2 #Must be consistent with vipp #pixfmt = nv21,nv21 #Must be consistent with vipp #color_space = rec709_part_range,rec709_part_range #Must be consistent with vipp #encpp_enable = 0,0 #Must be consistent with vipp #src_width = 1920,1920 #Must be consistent with vipp #src_height = 1080,1080 #Must be consistent with vipp #src_framerate = 20,20 #Must be consistent with vipp #video_framerate = 20,20 #product_mode = 0,0 #0:static ipc, 1:moving ipc, 2: doorbell, 3:cdr, 4:sdv, 5:projection, 6:UAV(Unmanned Aerial Vehicle) #key_frame_interval = 40,40 #drop_frm_num = 0,0 #video_encoder = H265,H265 #profile = 0,0 #level = 0,0 #video_width = 1920,1920 #video_height = 1080,1080 #p_frame_intra_en = 0,0 #enable_fast_enc = 0,0 #vbvBufferSize = 0,0 #0:middleware decide itself, >0:app decide. suggest: 933882(1.5Mbps@20fps) #vbvThreshSize = 0,0 #0:middleware decide itself, >0:app decide. suggest: 147450(1.5Mbps@20fps) #rc_mode = 1,1 #0:cbr, 1:vbr, 2:fixqp, 3:qpmap #init_qp = 35,35 #min_i_qp = 10,10 #max_i_qp = 50,50 #min_p_qp = 10,10 #max_p_qp = 50,50 #mb_qp_limit_en = 0,0 #moving_th = 20,20 #quality = 10,10 #i_bits_coef = 10,10 #p_bits_coef = 10,10 #video_bitrate = 819200,819200 #bps #gop_mode = 0,0 #gop_size = 2,2 #2dnr_en = 1,1 #2dnr_strength_y = 127,127 #[0, 255] #2dnr_strength_c = 127,127 #[0, 255] #2dnr_threshold_y = 11,11 #[0, 15] #2dnr_threshold_c = 7,7 #[0, 15] #3dnr_en = 1,1 #3dnr_pix_level_en = 0,0 #3dnr_smooth_en = 1,1 #3dnr_pix_diff_th = 6,6 #[0, 31] #3dnr_max_mv_th = 8,8 #[0, 63] #3dnr_max_mad_th = 14,14 #[0, 63] #3dnr_min_coef = 13,13 #[0, 3dnr_max_coef] #3dnr_max_coef = 16,16 #[3dnr_min_coef, 16] #color2grey = 0,0 #crop_en = 0,0 #crop_rect_x = 0,0 #crop_rect_y = 0,0 #crop_rect_w = 1280,1280 #crop_rect_h = 720,720 #super_frm_mode = 0,0 #-1:use default, 0:none, 1:discarded, 2:re-encode #super_i_frm_bits_thr = 0,0 #0:use default, >0: user specified. #super_p_frm_bits_thr = 0,0 #0:use default, >0: user specified. #max_rencode_times = 1,1 #max_p2i_frm_bits_ratio = 0.3,0.3 #encode_rotate = 0,0 #mirror = 0,0 #ve_ref_frame_lbc_mode = lbc_1_5x,lbc_1_5x #bits_clip_dis_default = 1,1 #[0, 1] #bits_clip_mode = 1,1 #[0, 1] #bits_clip_coef[0][0] = -0.5,-0.5 #[-0.5, 3] float #bits_clip_coef[0][1] = 0.5,0.5 #[bits_clip_p_coef[0][0], 3] float #bits_clip_coef[1][0] = -0.3,-0.3 #[-0.5, 3] float #bits_clip_coef[1][1] = 0.3,0.3 #[bits_clip_p_coef[1][0], 3] float #bits_clip_coef[2][0] = -0.3,-0.3 #[-0.5, 3] float #bits_clip_coef[2][1] = 0.3,0.3 #[bits_clip_p_coef[2][0], 3] float #bits_clip_coef[3][0] = -0.5,-0.5 #[-0.5, 3] float #bits_clip_coef[3][1] = 0.5,0.5 #[bits_clip_p_coef[3][0], 3] float #bits_clip_coef[4][0] = 0.4,0.4 #[-0.5, 3] float #bits_clip_coef[4][1] = 0.7,0.7 #[bits_clip_p_coef[4][0], 3] float #en_gop_clip = 0,0 #[0, 1] #gop_bit_ratio_th[0] = 0.58,0.58 #[0, +2ˆ15] #gop_bit_ratio_th[1] = 0.64,0.64 #[0, +2ˆ15] #gop_bit_ratio_th[2] = 1.25,1.25 #[0, +2ˆ15] #en_ifrm_mb_rc_move_status_enable = 1,1 #en_ifrm_mb_rc_move_status = 2,2 #[0, 4] #i_p_target_bits_ratio_enable = 1,1 #i_p_target_bits_ratio_scene_coef[0] = 20,20 #[0, inf) #i_p_target_bits_ratio_scene_coef[1] = 17,17 #[0, inf) #i_p_target_bits_ratio_scene_coef[2] = 15,15 #[0, inf) #i_p_target_bits_ratio_move_coef[0] = 1,1 #[0, inf) #i_p_target_bits_ratio_move_coef[1] = 0.75,0.75 #[0, inf) #i_p_target_bits_ratio_move_coef[2] = 0.5,0.5 #[0, inf) #i_p_target_bits_ratio_move_coef[3] = 0.25,0.25 #[0, inf) #i_p_target_bits_ratio_move_coef[4] = 0.25,0.25 #[0, inf) #en_weak_texture_th = 1,1 #weak_texture_th = 30,30 #[0,100] #en_d3d_in_i_frm = 1,1 #en_tight_mb_qp = 0,0 #en_extreme_d3d = 1,1 #ex_d3d_zero_mv_ratio_th = 99.5,99.5 #ex_d3d_enable_3d_filter = 1,1 #ex_d3d_adjust_pix_level_enable = 1,1 #ex_d3d_smooth_filter_enable = 0,0 #ex_d3d_max_pix_diff_th = 31,31 #ex_d3d_max_mad_th = 63,63 #ex_d3d_max_mv_th = 8,8 #ex_d3d_min_coef = 8,8 #ex_d3d_max_coef = 16,16 #en_region_d3d = 1,1 #region_d3d_dis_default_para = 1,1 #region_d3d_result_num = 3,3 #region_d3d_hor_region_num = 30,30 #region_d3d_ver_region_num = 17,17 #region_d3d_hor_expand_num = 2,2 #region_d3d_ver_expand_num = 2,2 #region_d3d_lv_weak_th[0] = 0,0 #region_d3d_lv_weak_th[1] = 100,100 #region_d3d_lv_weak_th[2] = 200,200 #region_d3d_lv_weak_th[3] = 300,300 #region_d3d_lv_weak_th[4] = 400,400 #region_d3d_lv_weak_th[5] = 500,500 #region_d3d_lv_weak_th[6] = 700,700 #region_d3d_lv_weak_th[7] = 900,900 #region_d3d_lv_weak_th[8] = 1100,1100 #region_d3d_zero_mv_rate_th[0] = 81,81 #region_d3d_zero_mv_rate_th[1] = 87,87 #region_d3d_zero_mv_rate_th[2] = 93,93 #region_d3d_chroma_offset = 16,16 #region_d3d_static_coef[0] = 8,8 #region_d3d_static_coef[1] = 9,9 #region_d3d_static_coef[2] = 10,10 #region_d3d_motion_coef[0] = 14,14 #region_d3d_motion_coef[1] = 15,15 #region_d3d_motion_coef[2] = 16,16 #region_d3d_motion_coef[3] = 16,16 #en_chroma_qp_offset = 1,1 #chroma_qp_offset = -4,-4 #en_h264_constraint_flag = 1,1 #h264_constraint_flag_bit0 = 1,1 #h264_constraint_flag_bit1 = 1,1 #h264_constraint_flag_bit2 = 1,1 #h264_constraint_flag_bit3 = 0,0 #h264_constraint_flag_bit4 = 0,0 #h264_constraint_flag_bit5 = 0,0 #en_ve2isp_d2d_limit = 1,1 #ve2isp_d2d_limit_d2d_level0 = 768,768 #ve2isp_d2d_limit_d2d_level1 = 640,640 #ve2isp_d2d_limit_d2d_level2 = 512,512 #ve2isp_d2d_limit_d2d_level3 = 448,448 #ve2isp_d2d_limit_d2d_level4 = 384,384 #ve2isp_d2d_limit_d2d_level5 = 320,320 [mux_params] mux_group_id = 0,1 #video_encoder = H265,H264 #video_width = 2304,640 #video_height = 1296,360 #video_framerate = 20,20 #venc_ch_id = 0,1