[Matroska-devel] Re: Timestamp precision in matroska files

Paul Bryson paul at msn.com
Wed Jan 7 08:07:32 CET 2004

I just realized that this is really easy for any audio format that doesn't have
a variable number of samples/packet. (Anything other than Vorbis)

(1/(number of samples per packet))*1000000000

For MP3 this would be:




So, round the number and set TimecodeScale to


This should allow for sample accurate seeking and shouldn't be much less
efficient than using 1ms.


More information about the Matroska-devel mailing list