时间戳和合成时间偏移
H.264缓冲区是否包含时间戳和解码时间戳信息. 当我们获得H.264 nalu数据时,其中是否包含计时信息?
Does H.264 buffer contains Time stamp and decoding time stamp information. when we get the H.264 nalu data does that contain timing information in it?
如果您的意思是原始H.264 NAL单元,则如果不包含PTS/DTS之类的内容,则它们不包含时序信息. MKV/MP4/TS等容器中的时间戳较高. H.264规范afaik中唯一与时间相关的信息是VUI中的num_units_in_tick/time_scale,可在帧速率恒定(fixed_frame_rate_flag = 1)的情况下用于查找FPS,还包括图片定时SEI"中的某些字段,但它们是可选的,而不是可选的指定得非常好,所以没有人真正使用它们.
If you mean raw H.264 NAL units than no they don't contain timing information if mean something like PTS/DTS. Timestamps are on higher level in containers like MKV/MP4/TS. The only time related information in H.264 specs afaik are num_units_in_tick/time_scale in VUI that can be used to finding FPS in case of constant frame rate (fixed_frame_rate_flag = 1), and some fields in Picture timing SEI but as they are optional and not really well specified so nobody really use them.