<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] Play out PCR from gettimeofday
rather tha</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">I see that
timeNow is already stood up in in
MPEG2TransportStreamFramer.cpp - is there a quick and dirty way
to insert PCR based on this time, at time of playout, rather than
pass through the source PCR?</font></blockquote>
<div><br></div>
<div>No, not really, and this is a bad idea anyway.  The PCR
values that were inserted in the files at the time that they were
encoded will always be more accurate (and better for decoders to use)
than values derived from 'gettimeofday()'.</div>
<div><br></div>
<div>Instead, you should make sure that your TS files have the
'discontinuity_indicator' flag set at the start.  Our
"MPEG2TransportStreamFramer" code recognizes this flag, as
should the decoder in your STB.</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>