The tegra_multimedia_api interfaces setFrameRate() does not take effect

I use the tegra_multimedia_api interfaces setFrameRate() to set encoding frame rate to 15 fps, but the actual encode frame rate is not changed. Does the setFrameRate() not implemented on tx1? I save the encoded H264 video to file.and analyse H264 data.I found the frame infomation is not write in sps.

==================== NAL ====================

 forbidden_zero_bit : 0 

 nal_ref_idc : 3 

 nal_unit_type : 7 ( Sequence parameter set ) 

======= SPS =======

 profile_idc : 77 

 constraint_set0_flag : 0 

 constraint_set1_flag : 0 

 constraint_set2_flag : 0 

 constraint_set3_flag : 0 

 constraint_set4_flag : 0 

 constraint_set5_flag : 0 

 reserved_zero_2bits : 0 

 level_idc : 50 

 seq_parameter_set_id : 0 

 chroma_format_idc : 1 

 residual_colour_transform_flag : 0 

 bit_depth_luma_minus8 : 0 

 bit_depth_chroma_minus8 : 0 

 qpprime_y_zero_transform_bypass_flag : 0 

 seq_scaling_matrix_present_flag : 0 

 log2_max_frame_num_minus4 : 4 

 pic_order_cnt_type : 0 

   log2_max_pic_order_cnt_lsb_minus4 : 4 

   delta_pic_order_always_zero_flag : 0 

   offset_for_non_ref_pic : 0 

   offset_for_top_to_bottom_field : 0 

   num_ref_frames_in_pic_order_cnt_cycle : 0 

 num_ref_frames : 1 

 gaps_in_frame_num_value_allowed_flag : 0 

 pic_width_in_mbs_minus1 : 97 

 pic_height_in_map_units_minus1 : 41 

 frame_mbs_only_flag : 1 

 mb_adaptive_frame_field_flag : 0 

 direct_8x8_inference_flag : 1 

 frame_cropping_flag : 1 

   frame_crop_left_offset : 0 

   frame_crop_right_offset : 6 

   frame_crop_top_offset : 0 

   frame_crop_bottom_offset : 4 

 vui_parameters_present_flag : 0 

=== VUI ===

 aspect_ratio_info_present_flag : 0 

   aspect_ratio_idc : 0 

     sar_width : 0 

     sar_height : 0 

 overscan_info_present_flag : 0 

   overscan_appropriate_flag : 0 

 video_signal_type_present_flag : 0 

   video_format : 0 

   video_full_range_flag : 0 

   colour_description_present_flag : 0 

     colour_primaries : 0 

   transfer_characteristics : 0 

   matrix_coefficients : 0 

 chroma_loc_info_present_flag : 0 

   chroma_sample_loc_type_top_field : 0 

   chroma_sample_loc_type_bottom_field : 0 

 [b]timing_info_present_flag : 0 

   num_units_in_tick : 0 

   time_scale : 0 

   fixed_frame_rate_flag : 0 [/b]

 nal_hrd_parameters_present_flag : 0 

 vcl_hrd_parameters_present_flag : 0 

   low_delay_hrd_flag : 0 

 pic_struct_present_flag : 0

because the fps infomation flag is 0.

Hi Customer,
Yes, we don’t set fps info in VUI info.

You can bypass timestamp in v4l2_buffer.

Thanks
wayne zhu

Hi waynezhu.
I want to use the tegra_multi_api capture camera(ov4689) image then encodeing and last output 15 frame per second. video. but the default is 30 frame per seconds, How should i do can reduce the frame rate

Let me input your question in another way:
Camera is output 15fps, but encoding is set 30fps.
Then how to encoding a stream with 15 fps using our encoding API?

yes. that is what i mean.

Hi waynezhu
Is there any method to set the encoding output frame rate?

I think you can store time stamp related info in container(such as MP4), our raw stream can’t store timing related info.

THanks
wayne zhu