时间戳和合成时间偏移 [英] Time stamp and composition time offset

查看:73
本文介绍了时间戳和合成时间偏移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

这篇关于时间戳和合成时间偏移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆