本文介绍了积分pcr值限制在mpegts中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,在mpegts容器中,PCR以42位存储,而PTS以33位存储.

As I know PCR stored in 42bits and PTS stored in 33bits in mpegts container

所以

 Max value for PCR is 2^42 = 4398046511104

 Max value for PTS is 2^33 = 8589934592

 PCR (sec) = 4398046511104 / 27 000 000 Hz = 162890,6 seconds (45 hours)

 PTS (sec) = 8589934592 / 90 000 Hz = 95443,7 seconds (26,5 hours)

所以,如果PTS或PCR达到此最大值之一,该怎么办?

So,what I must to do, if PTS or PCR reach one of this max values ?

对于连续流,这可能会在iptv中发生

This can be happening in iptv for continuous stream

推荐答案

只要让它溢出并继续写入低33位即可.解复用器将知道如何处理.

Just let it overflow and continue to write the low 33 bits. The demuxer will know how to handle it.

这篇关于积分pcr值限制在mpegts中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-14 05:45