正在显示
2 个修改的文件
包含
9 行增加
和
0 行删除
| @@ -340,6 +340,7 @@ Remark: | @@ -340,6 +340,7 @@ Remark: | ||
| 340 | 340 | ||
| 341 | ## History | 341 | ## History |
| 342 | 342 | ||
| 343 | +* v2.0, 2016-08-30, comment the pcr. | ||
| 343 | * v2.0, 2016-08-18, fix [srs-librtmp#4](https://github.com/ossrs/srs-librtmp/issues/4) filter frame. | 344 | * v2.0, 2016-08-18, fix [srs-librtmp#4](https://github.com/ossrs/srs-librtmp/issues/4) filter frame. |
| 344 | * v2.0, 2016-08-10, fix socket timeout for librtmp. | 345 | * v2.0, 2016-08-10, fix socket timeout for librtmp. |
| 345 | * v2.0, 2016-08-08, fix the crash by srs_info log. | 346 | * v2.0, 2016-08-08, fix the crash by srs_info log. |
| @@ -470,6 +470,14 @@ int SrsTsContext::encode_pes(SrsFileWriter* writer, SrsTsMessage* msg, int16_t p | @@ -470,6 +470,14 @@ int SrsTsContext::encode_pes(SrsFileWriter* writer, SrsTsMessage* msg, int16_t p | ||
| 470 | 470 | ||
| 471 | // it's ok to set pcr equals to dts, | 471 | // it's ok to set pcr equals to dts, |
| 472 | // @see https://github.com/ossrs/srs/issues/311 | 472 | // @see https://github.com/ossrs/srs/issues/311 |
| 473 | + // Fig. 3.18. Program Clock Reference of Digital-Video-and-Audio-Broadcasting-Technology, page 65 | ||
| 474 | + // In MPEG-2, these are the "Program Clock Refer- ence" (PCR) values which are | ||
| 475 | + // nothing else than an up-to-date copy of the STC counter fed into the transport | ||
| 476 | + // stream at a certain time. The data stream thus carries an accurate internal | ||
| 477 | + // "clock time". All coding and de- coding processes are controlled by this clock | ||
| 478 | + // time. To do this, the receiver, i.e. the MPEG decoder, must read out the | ||
| 479 | + // "clock time", namely the PCR values, and compare them with its own internal | ||
| 480 | + // system clock, that is to say its own 42 bit counter. | ||
| 473 | int64_t pcr = write_pcr? msg->dts : -1; | 481 | int64_t pcr = write_pcr? msg->dts : -1; |
| 474 | 482 | ||
| 475 | // TODO: FIXME: finger it why use discontinuity of msg. | 483 | // TODO: FIXME: finger it why use discontinuity of msg. |
-
请 注册 或 登录 后发表评论