Bitrate is reported incorrectly for VBR MP3

Please report any bug found here

Bitrate is reported incorrectly for VBR MP3

Postby Elliott B » 15 Jan 2014, 11:40

If I play a V0 MP3, RuneAudio displays the bitrate as 32kbps. Mediainfo says 32kbps is the "minimum bit rate", a measurement which is mostly irrelevant. It would be more useful to display the average bit rate, which is 238kbps in this case.
Elliott B
 
Posts: 11
Joined: 15 Jan 2014, 10:40

Re: Bitrate is reported incorrectly for VBR MP3

Postby ACX » 15 Jan 2014, 14:32

You are right, current bitrate visualization is bound to MPD status changes. RuneUI works in an asynchronous way and information are updated every time an MPD event occurs. Bitrate value is read on the fly and may show very low values in some points of the tracks, so for a more accurate report we should show an average value. But that's not a perfect solution:
http://mpd.wikia.com/wiki/Music_Player_ ... leshooting
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Bitrate is reported incorrectly for VBR MP3

Postby Elliott B » 15 Jan 2014, 20:36

Hmm interesting. So maybe I'll run that to "fix" the tags of my music.
Is MPD also the reason sample format is incorrectly shown as 24 bit for all my V0 songs?
Elliott B
 
Posts: 11
Joined: 15 Jan 2014, 10:40

Re: Bitrate is reported incorrectly for VBR MP3

Postby ACX » 15 Jan 2014, 22:09

Elliott B wrote:Is MPD also the reason sample format is incorrectly shown as 24 bit for all my V0 songs?

Yep, I also noticed the same behaviour on some files.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Bitrate is reported incorrectly for VBR MP3

Postby Midnight » 05 Mar 2014, 13:53

ACX wrote:You are right, current bitrate visualization is bound to MPD status changes. RuneUI works in an asynchronous way and information are updated every time an MPD event occurs.

So this means the bitrate is updated at track change or e.g. when pressing a button (play, pause)? This also means that a file with silence at the beginning shows a bitrate of 0 kbps.

ACX wrote:Bitrate value is read on the fly and may show very low values in some points of the tracks, so for a more accurate report we should show an average value.

Is it possible to get the average bitrate from mpd?

ACX wrote:But that's not a perfect solution:
http://mpd.wikia.com/wiki/Music_Player_ ... leshooting

It's not only a problem for VBR MP3 files but also for FLAC and Ogg Vorbis.
User avatar
Midnight
Moderator
 
Posts: 141
Joined: 19 Feb 2014, 14:46

Re: Bitrate is reported incorrectly for VBR MP3

Postby ACX » 05 Mar 2014, 15:19

Midnight wrote:So this means the bitrate is updated at track change or e.g. when pressing a button (play, pause)? This also means that a file with silence at the beginning shows a bitrate of 0 kbps.

Exactly, MPD reads the instant value.

Midnight wrote:Is it possible to get the average bitrate from mpd?

I haven't found it in the protocol docs yet.

Midnight wrote:It's not only a problem for VBR MP3 files but also for FLAC and Ogg Vorbis.

The rate instant value problem or the wrong bit depth value?
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Bitrate is reported incorrectly for VBR MP3

Postby Midnight » 05 Mar 2014, 15:21

The rate instant value problem ;)
User avatar
Midnight
Moderator
 
Posts: 141
Joined: 19 Feb 2014, 14:46

Re: Bitrate is reported incorrectly for VBR MP3

Postby ACX » 05 Mar 2014, 15:25

Midnight wrote:The rate instant value problem ;)

So the answer is: yes, it's the way MPD works. Maybe there's a workaround, we already thought in calculating the average bitrate with a background function and then display it correctly in the UI, but that was a non-optimal solution in terms of performances.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Bitrate is reported incorrectly for VBR MP3

Postby Midnight » 05 Mar 2014, 15:36

BTW: Actually the bit rate is irrelevant for lossless formats like FLAC and there is no need to show it ;) But still a solution for lossy formats would be nice :)

ACX wrote:we already thought in calculating the average bitrate with a background function and then display it correctly in the UI, but that was a non-optimal solution in terms of performances.

Thought about that, too. But I also think it's a performance killer.
User avatar
Midnight
Moderator
 
Posts: 141
Joined: 19 Feb 2014, 14:46

Re: Bitrate is reported incorrectly for VBR MP3

Postby wick » 17 Aug 2014, 23:54

Redbook ALAC files show up as: 32 bit, 44,1 kHz.
This ought to be 16 bit, no?

Does MPD mean 16x 2 channels?
Or is it just listed incorrectly?
wick
 
Posts: 24
Joined: 23 Jul 2014, 00:26

support RuneAudio Donate with PayPal


Return to Bug report

Who is online

Users browsing this forum: No registered users and 2 guests
cron