- Status Closed
- Percent Complete
- Task Type Bugs
- Category
- Assigned To No-one
- Operating System
- Severity Low
- Priority Very Low
- Reported Version Release 2.0
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#1699 - %fv displays "(avg)" rather than "(vbr)"
According to the Rockbox .pdf manual:
%fv : "(vbr)" if variable bit rate or "" if
constant bit rate
In fact, it displays “(avg)” for a VBR recording.
I would prefer to see the firmware changed to display
“(VBR)” with all uppercase as shown since that’s the
normal way to abbreviate “variable bit rate”.
The following are the lines of code which control that
display from the 2.0 release version of the software:
wps-display.c
case 'f': /* File Information */ *flags |= WPS_REFRESH_STATIC; switch(tag[1]) { case 'v': /* VBR file? */ return id3->vbr ? "(avg)" : NULL;
Change the “(avg)” to “(VBR)” and we are good to go.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
The manual is wrong. I think avg is preferrable since the
bitrate shown is the average bitrate, not “the variable bitrate”.
However you can easily change this in your own wps by
using the conditional operator: %?iv<(VBR)|>
Zagor is assuming that the user will always choose to
display a bitrate next to the %fv. Not true. Since %fv is
a standalone parameter, it seems more reasonable to display
“(VBR)” since “(avg)” sounds like a comment on the music or
sound quality (i.e, it’s just average).
What makes the most sense for %fv to return/display “VBR” or
“CBR”. A player has a 10 character wide display. Taking
20% of it for useless parenthesis and using up five more
characters for VBR recordings [”(avg) " vs ““] is undesirable.
I know about the workarounds such as the one zagor described
(%fv, not %iv, though), but if that’s the way that the %fv
parameter is intended to be used, returning a 0 or 1 and
letting the user format the message seems to make more sense.
Zagor wrote:
If you use the LAME MP3 encoder, you will see that they have
an “ABR” or “average bitrate” mode. From lame –longhelp:
So having Rockbox display “avg” rather than “VBR” could lead
to confusion.
The –abr option is merely an instruction to the encoder.
The actual average bitrate result can and will at times be
different.
The simple facts are: For VBR MP3s, we display the
average bitrate. This is, in the default wps, clarified by
showing “avg” next to it.
If you don’t want to show it next to the bitrate or want to use
the text “VBR” instead, you are free to do so. There is no
need to change Rockbox for that.
I am disappointed to see the use of industry standard terms
like VBR and CBR rejected – especially in light of the
manual showing the use of “(vbr)”. I am also disappointed
to that useless parentheses are being retained as a default
on a 10 character wide display.
In closing, workarounds should be employed to display
non-standard terminology like “(avg)” and %fv should return
the industry-standard “VBR” (hence the “v” in “%fv”).
Please use the mailing list for discussions.