Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Video H.264流报头_Video_Hex_H.264 - Fatal编程技术网

Video H.264流报头

Video H.264流报头,video,hex,h.264,Video,Hex,H.264,我在开始时使用此标头/参数损坏了视频流 00 00 00 01 67 64 00 1E AC D9 40 B0 33 FB C0 44 00 00 03 00 04 00 00 03 00 C8 3C 58 B6 58 00 00 00 01 68 EB EC B2 2C 我试图找出实际值,但我所猜测的是 67 – AVC / H264 64 00 - High Profile 1E – Level 30 (in decimal) 有人知道其他字节代表什么吗 至少,如何计算

我在开始时使用此标头/参数损坏了视频流

00 00 00 01 67 64 00 1E AC D9 40 B0 33 FB C0 44  
00 00 03 00 04 00 00 03 00 C8 3C 58 B6 58 00 00  
00 01 68 EB EC B2 2C  
我试图找出实际值,但我所猜测的是

67 – AVC / H264 
64 00 - High Profile
1E – Level 30 (in decimal)  
有人知道其他字节代表什么吗


至少,如何计算视频尺寸(宽度x高度)。我以为应该是十进制数,但显然不是。还是我完全错了,这样不行

您可以在这里找到答案:

您的数据解码如下:

序列参数集

profile_idc 100 
constraint_set0_flag 0 
constraint_set1_flag 0 
constraint_set2_flag 0 
constraint_set3_flag 0 
level_idc 30 
seq_parameter_set_id 0 
chroma_format_idc 1 
// ... 
num_ref_frames 4 
gaps_in_frame_num_value_allowed_flag 0 
pic_width_in_mbs_minus1 43 
pic_height_in_map_units_minus1 24 
frame_mbs_only_flag 1 
direct_8x8_inference_flag 1 
frame_cropping_flag 1 
frame_crop_left_offset 0 
frame_crop_right_offset 0 
frame_crop_top_offset 0 
frame_crop_bottom_offset 2 
vui_parameters_present_flag 1 
// ... 
pic_parameter_set_id 0 
seq_parameter_set_id 0 
entropy_coding_mode_flag 1 
num_slice_groups_minus1 0 
// ... 
图片参数设置

profile_idc 100 
constraint_set0_flag 0 
constraint_set1_flag 0 
constraint_set2_flag 0 
constraint_set3_flag 0 
level_idc 30 
seq_parameter_set_id 0 
chroma_format_idc 1 
// ... 
num_ref_frames 4 
gaps_in_frame_num_value_allowed_flag 0 
pic_width_in_mbs_minus1 43 
pic_height_in_map_units_minus1 24 
frame_mbs_only_flag 1 
direct_8x8_inference_flag 1 
frame_cropping_flag 1 
frame_crop_left_offset 0 
frame_crop_right_offset 0 
frame_crop_top_offset 0 
frame_crop_bottom_offset 2 
vui_parameters_present_flag 1 
// ... 
pic_parameter_set_id 0 
seq_parameter_set_id 0 
entropy_coding_mode_flag 1 
num_slice_groups_minus1 0 
// ... 

如果frame_cropping_flag为1,要获取尺寸,请执行以下操作:

width = ((pic_width_in_mbs_minus1 +1)*16) - frame_crop_left_offset*2 - frame_crop_right_offset*2;
height= ((2 - frame_mbs_only_flag)* (pic_height_in_map_units_minus1 +1) * 16) - (frame_crop_top_offset * 2) - (frame_crop_bottom_offset * 2)

多谢各位。我甚至没想到H.264会有多复杂。我必须重读你关于这个问题的所有答案,以便更接近于完全理解它。(所以我得到了我的尺寸704x396)再次感谢,你似乎是个专家。