How can I get the precise play time of the ogg vorbis file?

隽 徐 <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <[email protected]>
Hi all,
 
I have a question about the ogg vorbis decoder. As far as I know, there are three vorbis headers -- ID, Comment and Codebook. And in ID header, I can get the sample rate, maximum bitrate, nominal bitrate and minimum bitrate. Now, I want to get the play time of the file, so I use the file length to divide the nominal bitrate, and get the play time, but it is always shorter than the real time. So I want to know how to get the precise play time of the ogg vorbis file?
 
By the way, why many files don't set the maximum bitrate and minimum bitrate?
 
Thank you very much. 
 
Susan


      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

_______________________________________________
Vorbis-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/vorbis-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.