GNOME Bugzilla – Bug 324353
All tracks have a bitrate of 0 KB/Second
Last modified: 2006-04-09 15:54:27 UTC
Like the Summary, all tracks have a bitrate of 0 KB/Second when looking in the properties. The tracks are mostly mp3s and ogg.
Created attachment 57104 [details] [review] patch v1 (1) Changed the first argument of ComputeBitrate() from Seconds to TotalSeconds. (2) Removed "filesize / 1000" in ComputeBitrate(). Ape/Util/MonkeyInfoReader.cs and Flac/Util/FlacInfoReader.cs also have ComputeBitrate(), but I'm not sure they are wrong or not.
Created attachment 57318 [details] [review] patch v2 (1) MPEGFrame class returns bitrate in kilobit. (2) bitrate should be divided by 1024 instead of 1000 when you want to display it in kilobits
This patch looks like a good one. I tested it only on MP3's and now the bitrate is correct. Thanks,
Created attachment 59494 [details] [review] patch v3 (1) I thought 1 kilobits per second was 1024 bits per seconds. It's wrong. (2) It's not necessary to divide "Bitrate" by 1024, because ComputeBitrate() returns in kilobits per second.
Ruben, can you look into this? Something tells me I resolved, this but am not sure.
Created attachment 61440 [details] [review] patch v4 This bug has not been resolved yet.
(In reply to comment #5) > Ruben, can you look into this? Something tells me I resolved, this but am not > sure. Experiencing the same thing as the submitter. Haven't tested patch yet though.
Patch seems good, resolves the issue. Could go in if it were up to me.
Tagging patch as accepted, more info on the why of it later.