Re: How to get the actual bitrate?

Lucas Clemente Vella <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <[email protected]>
揭磊平 escreveu:
> Dear all:
>   I'm a developer in china, and i really want to know how to calculate a ogg audio file's bitrate and then i can get the duration by file size.
>   thanks very much for your answer.

See, most of ogg vorbis files have variable bitrate, so the way to
calculate its mean bitrate -- the only significant bitrate when speaking
of the whole stream -- is size/duration, what imply you must know the
duration beforehand.

I'm afraid you can't know the duration of the stream by just looking at
the file size, since even libvorbis must be able to seek through the
stream to be able to determine it's duration.

-- 
Lucas Clemente Vella
[email protected]
_______________________________________________
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.