|
假如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 |
|