PCR decoding #17
richard-vd
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
SCTE35 doesn't use PCR, only PTS. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This idea would be useful for me and I may implement it at some point. I post it here for later reference and to share thoughts.
I would like to see the PCR timestamp (pcr_time) of each message, where available.
The PCR PID of a program is indicated in the PCR_PID field of the PMT. The PCR timestamp itself is located in the adaptation_field of said PID. Often the PCR_PID equals the video PID. Base PCR has the same 90k resolution as PTS, and some additional bits to increase the resolution to 27M but we don't need that.
I think the right approach for the first attempt is to just use the latest received base PCR value for this message's program, however this simple solution comes with some jitter. PCRs are transmitted at intervals of sub 100 ms so some interpolation is needed if we want to be more accurate.
Beta Was this translation helpful? Give feedback.
All reactions