[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:

(1/1152)*1000000000

or

868055.5555

So, round the number and set TimecodeScale to

868055

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


Pamel






More information about the Matroska-devel mailing list