基於海思媒體庫視訊H264打包成RTP包
阿新 • • 發佈:2019-02-17
NAL unit header or first byte of the payload
0... .... = F bit: No bit errors or other syntax violations
.11. .... = Nal_ref_idc (NRI): 3
...0 0111 = Type: NAL unit - Sequence parameter set (7)
H264 NAL Unit Payload
0100 1101 = Profile_idc: Main profile (77)
0... .... = Constraint_set0_flag: 0
.0.. .... = Constraint_set1_flag: 0
..0. .... = Constraint_set2_flag: 0
...0 .... = Constraint_set3_flag: 0
.... 0... = Constraint_set4_flag: 0
.... .0.. = Constraint_set5_flag: 0
.... ..00 = Reserved_zero_2bits: 0
0001 0100 = Level_id: 20 [Level 2.0 2 Mb/s]
1... .... = seq_parameter_set_id: 0
.001 01.. = log2_max_frame_num_minus4: 4
.... ..01 1... .... = pic_order_cnt_type: 2
.010 .... = num_ref_frames: 1
.... 1... = gaps_in_frame_num_value_allowed_flag: 1
.... .000 0101 10.. = pic_width_in_mbs_minus1: 21
.... ..00 0010 010. = pic_height_in_map_units_minus1: 17
.... ...1 = frame_mbs_only_flag: 1
1... .... = direct_8x8_inference_flag: 1
.0.. .... = frame_cropping_flag: 0
..0. .... = vui_parameters_present_flag: 0
...1 .... = rbsp_stop_bit: 1
.... 0000 = rbsp_trailing_bits: 0
0... .... = F bit: No bit errors or other syntax violations
.11. .... = Nal_ref_idc (NRI): 3
...0 0111 = Type: NAL unit - Sequence parameter set (7)
H264 NAL Unit Payload
0100 1101 = Profile_idc: Main profile (77)
0... .... = Constraint_set0_flag: 0
.0.. .... = Constraint_set1_flag: 0
..0. .... = Constraint_set2_flag: 0
...0 .... = Constraint_set3_flag: 0
.... 0... = Constraint_set4_flag: 0
.... .0.. = Constraint_set5_flag: 0
.... ..00 = Reserved_zero_2bits: 0
0001 0100 = Level_id: 20 [Level 2.0 2 Mb/s]
1... .... = seq_parameter_set_id: 0
.001 01.. = log2_max_frame_num_minus4: 4
.... ..01 1... .... = pic_order_cnt_type: 2
.010 .... = num_ref_frames: 1
.... 1... = gaps_in_frame_num_value_allowed_flag: 1
.... .000 0101 10.. = pic_width_in_mbs_minus1: 21
.... ..00 0010 010. = pic_height_in_map_units_minus1: 17
.... ...1 = frame_mbs_only_flag: 1
1... .... = direct_8x8_inference_flag: 1
.0.. .... = frame_cropping_flag: 0
..0. .... = vui_parameters_present_flag: 0
...1 .... = rbsp_stop_bit: 1
.... 0000 = rbsp_trailing_bits: 0