Hello, is there any way to get timestamp information from the mpeg2-ts (or mpeg2es stream) based on the embedded PCR ?
The problem i try to solve is timestamping a live stream recorded with a mpeg2es camera. Since the demuxing and decoding using ffmpeg works like a charm i would like to stay with the API. Theoretically the PCR information in the stream would be perfectly suited for that (good resolution and low jitter) but as far as i can see in the mpeg2 codebase of libavformat the PCR info is used only internally and not accesible via the API (e.g. AVStream or AVPacket). Maybe there is some clever method using pts/dts/last dts from AVPacket to determine the record timestamp ? Best regards Lukas _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
