LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1542|回复: 0

关于mpeg里的dts和pts的概念问题不知道理解的对不对

[复制链接]
发表于 2008-7-17 13:46:38 | 显示全部楼层 |阅读模式
假如mpeg里的视频流中的四个frame的存储顺序为I P B B,dts分别为1 2 3 4就表示解码的顺序为I P B B,而pts为1 3 4 2就是是播放的顺序是I B B P,对不对?

the frames were displayed like: I B B P. Now, we need to know the information in P before we can display either B frame. Because of this, the frames might be stored like this: I P B B. This is why we have a decoding timestamp and a presentation timestamp on each frame. The decoding timestamp tells us when we need to decode something, and the presentation time stamp tells us when we need to display something. So, in this case, our stream might look like this:

   PTS: 1 4 2 3 [这里是不是应该是1 3 4 1呢?]
   DTS: 1 2 3 4
Stream: I P B B
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表