[FFmpeg-devel] [PATCH] Fix for PCR accuracy in MPEG2-TS

Tomas Härdin tomas.hardin
Fri Dec 3 14:27:26 CET 2010


On Fri, 2010-12-03 at 02:58 -0800, Baptiste Coudurier wrote:
> On 12/3/10 1:16 AM, Tomas H?rdin wrote:
> > On Thu, 2010-12-02 at 07:48 -0800, Yogeesh Kori wrote:
> >> Hi,
> >>  
> >> When a TS packet with the PCR without any payload is created, the PCR
> >> value is used from the calculation at the end of the previous packet. It
> >> is not taking the location of the PCR data in the current packet. It
> >> does when inserting a PCR in the PES packet. This causes a slight
> >> inaccuracy in the PCR.
> >>  
> >> Yogeesh Kori
> > 
> > Well, PCR is already quite inaccurate since it's measured in 90 kHz, not
> > 27 MHz. And it'll still drift with this patch.
> > 
> > Baptiste, can we perhaps get my PCR accuracy patch applied while I
> > figure out a prettier way to fix the PCR interval thing?
> 
> Humm well, ok, thomas go ahead and apply your patch.

Thanks, patch applied. Yogeesh: update your repo and try it out. It
should work fine.

/Tomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101203/183d1c9f/attachment.pgp>



More information about the ffmpeg-devel mailing list