pts & pcr values limit in mpegts?

社会主义新天地 提交于 2019-12-23 17:59:55

问题


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

So,

 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)

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

This can be happening in iptv for continuous stream


回答1:


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




回答2:


Max value for PCR is 2^42 = 4398046511104

This is not true. Please refer: https://stackoverflow.com/a/36810049/6244249



来源:https://stackoverflow.com/questions/27669004/pts-pcr-values-limit-in-mpegts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!