Topic: latest cog nightly (r706) does not display actual bitrate of tracks

on leopard 10.5.2 the latest cog nightly displays a long negative number string (i.e. -2756402) as the bitrate for all file types it would normally read correctly in previous releases in the info drawer.  don't have any logs handy as i am typing this from my tiger box, but this problem occurred with every file i tried (all ogg and mp3 files).

p.s. this was observed on an intel core2duo macbook.

Last edited by haleakalari (2008-02-15 13:02:39)

Re: latest cog nightly (r706) does not display actual bitrate of tracks

This should be fixed as of r739.

Re: latest cog nightly (r706) does not display actual bitrate of tracks

In 0.08 r753, Bitrate shows "187" when I am sure it is normally "192" (CBR).
Another one which is normally "160" is written "156" (But I dont remember if it is Varible or constant bitrate)
And "128" is "124"

By the way, do you think it is possible to add if it is Variable or Constant bitrate ?

Re: latest cog nightly (r706) does not display actual bitrate of tracks

Ok, will take a look.

Re: latest cog nightly (r706) does not display actual bitrate of tracks

it does seem to be fixed, kudos!

Re: latest cog nightly (r706) does not display actual bitrate of tracks

in r771, bitrate 192 is detected now "191", 160 as "159" and 128 as "127"

Re: latest cog nightly (r706) does not display actual bitrate of tracks

Last edited by haleakalari (2008-02-19 14:06:37)

Re: latest cog nightly (r706) does not display actual bitrate of tracks

It is off for CBR files, I've had a trac ticket made and will revisit it when I get a chance.

I'll take a look at the bitrate = 0 problem for that set of mp3s, but I likely won't fix it for 0.07 since it's not exactly a major issue. I'm assuming 0.08 shows something for the bitrate?

Re: latest cog nightly (r706) does not display actual bitrate of tracks

i haven't tested any cbr encoded mp3 files on any 0.08 builds, i will let you know when i do though. question; is the reading/display of bitrate for cbr mp3 files disabled in the "official" 0.07 release as well?

Re: latest cog nightly (r706) does not display actual bitrate of tracks

No. normally it should work. My guess is there's something funny going on in the headers of those ones. I haven't had a chance to look.

Re: latest cog nightly (r706) does not display actual bitrate of tracks

spader, i just checked those mp3s under the latest 0.08 nightly and the bit rate is detected just fine. on the other hand, i just checked the file information of the mp3s in a little app called mediainfo mac, and apparently the mp3s were encoded using variable bit rate, so the constant bit rate bug in the latest unstable 0.07 build would appear to be separate from the issue i have been experiencing, which is, the bit rate of the aforementioned files are displayed as "0" on the info drawer.

Re: latest cog nightly (r706) does not display actual bitrate of tracks

On r782, bitrate calculation is now just fine smile

Thx for your work !

Re: latest cog nightly (r706) does not display actual bitrate of tracks

Last edited by megaman (2008-03-06 01:51:23)

Re: latest cog nightly (r706) does not display actual bitrate of tracks

The first bug is easily fixed.

For the second, if you have a VBR file with no LAME/XING tag, then the length is estimated. In order to get the accurate length for such a file, Cog must scan the entire file, which isn't very fast, so Cog takes a guess. It will play the correct length, however.

Re: latest cog nightly (r706) does not display actual bitrate of tracks