Rhythmbox does not add VBR headers when ripping CDs to MP3

Bug #1220764 reported by bmaupin
50
This bug affects 11 people
Affects Status Importance Assigned to Milestone
rhythmbox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When ripping CDs to MP3 using Rhythmbox, by default they are VBR, because this is the default preset that is used in /usr/share/gstreamer-0.10/presets/GstLameMP3Enc.prs (cbr=false). The problem is that the VBR headers aren't added to the MP3 files, for example:

$ mp3val 01\ -\ Gregory\ Alan\ Isakov\ -\ Dandelion\ Wine.mp3
Analyzing file "01 - Gregory Alan Isakov - Dandelion Wine.mp3"...
WARNING: "/home/bmaupin/Desktop/Gregory Alan Isakov/This Empty Northern Hemisphere/01 - Gregory Alan Isakov - Dandelion Wine.mp3": VBR detected, but no VBR header is present. Seeking may not work properly.
INFO: "/home/bmaupin/Desktop/Gregory Alan Isakov/This Empty Northern Hemisphere/01 - Gregory Alan Isakov - Dandelion Wine.mp3": 9559 MPEG frames (MPEG 1 Layer III), +ID3v2, no VBR header
Done!

This causes most programs to report incorrect track lengths, including Rhythmbox itself and Ubuntu's default Nautilus file manager. This seems to be a huge oversight considering this is the default behavior using the default apps. I'm not sure when this started because I only use the LTS versions of Ubuntu, but I know it wasn't a problem in 10.04, because it was using a gstreamer pipeline with xingmux as opposed to gstreamer presets, which from what I understand don't support xingmux (which I believe adds the VBR headers).

I currently have to fix any MP3s that I generate with Rhythmbox like so:

sudo apt-get install vbrfix
cd /path/to/mp3s
find . -type f -iname '*.mp3' -exec vbrfix {} {} \;
rm vbrfix.log vbrfix.tmp

This bug is related to:
https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/945987

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: rhythmbox-data 2.96-0ubuntu4.3 [modified: usr/share/gstreamer-0.10/presets/GstLameMP3Enc.prs usr/share/rhythmbox/rhythmbox.gep]
ProcVersionSignature: Ubuntu 3.5.0-39.60~precise1-generic 3.5.7.17
Uname: Linux 3.5.0-39-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.0.1-0ubuntu17.4
Architecture: amd64
Date: Wed Sep 4 09:54:54 2013
InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: rhythmbox
UpgradeStatus: No upgrade log present (probably fresh install)
---
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
InstallationDate: Installed on 2014-07-09 (12 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
Package: rhythmbox 3.0.2-0ubuntu2
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4
Tags: trusty
Uname: Linux 3.13.0-32-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
bmaupin (bmaupin) wrote :
Revision history for this message
Daniel Letzeisen (dtl131) wrote :

Related bug (not sure if it's an exact duplicate): https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/945987

Revision history for this message
bmaupin (bmaupin) wrote :

Bug 945987 is related, which is why I mentioned it in this bug. But I don't believe it's the same; it seems to me that 945987 is referring to the inability to change encoding settings from the GUI. But it doesn't deal specifically with the problem that VBR headers aren't added to MP3.

This problem is mentioned in the comments for that bug (https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/945987/comments/28), but I couldn't find a separate bug report submitted for it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rhythmbox (Ubuntu):
status: New → Confirmed
Revision history for this message
Krallus (philip-hachey-gmx) wrote :

Same problem when MP3's are ripped with Sound Juicer. VLC shows correct track length, but Rhythmbox does not.

Revision history for this message
Andrea Girvasi (jeerva) wrote :

XCFA seems to rip in the right way. Tracks length is correctly showed both with Rhythmbox and VLC if ripped with XCFA.

Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. It would help us a lot if you could test it on a currently supported Ubuntu version. When you test it and it is still an issue, kindly upload the updated logs by running apport-collect <bug #> and any other logs that are relevant for this particular issue.

Changed in rhythmbox (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for rhythmbox (Ubuntu) because there has been no activity for 60 days.]

Changed in rhythmbox (Ubuntu):
status: Incomplete → Expired
Revision history for this message
bmaupin (bmaupin) wrote : Dependencies.txt

apport information

tags: added: apport-collected trusty
description: updated
Revision history for this message
bmaupin (bmaupin) wrote : GstreamerVersions.txt

apport information

Revision history for this message
bmaupin (bmaupin) wrote : LogAlsaMixer.txt

apport information

Revision history for this message
bmaupin (bmaupin) wrote : ProcEnviron.txt

apport information

Revision history for this message
bmaupin (bmaupin) wrote : XorgLog.txt

apport information

Revision history for this message
bmaupin (bmaupin) wrote :

Same problem on Ubuntu 14.04:

$ mp3val 01\ -\ Gregory\ Alan\ Isakov\ -\ Dandelion\ Wine.mp3
Analyzing file "01 - Gregory Alan Isakov - Dandelion Wine.mp3"...
WARNING: "/home/bmaupin/Desktop/Gregory Alan Isakov/This Empty Northern Hemisphere/01 - Gregory Alan Isakov - Dandelion Wine.mp3": VBR detected, but no VBR header is present. Seeking may not work properly.
INFO: "/home/bmaupin/Desktop/Gregory Alan Isakov/This Empty Northern Hemisphere/01 - Gregory Alan Isakov - Dandelion Wine.mp3": 9559 MPEG frames (MPEG 1 Layer III), +ID3v2, no VBR header
Done!

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty

Changed in rhythmbox (Ubuntu):
status: Expired → Confirmed
Revision history for this message
MBybee (mike-bybee) wrote :

Still happening in 16.04 LTS:

Requested 320 CBR MP3:
 mp3val '/media/mbybee/Radiation/Music2000/The Beatles/Abbey Road/01 - Come Together.mp3'
Analyzing file "01 - Come Together.mp3"...
WARNING: "/media/mbybee/Radiation/Music2000/The Beatles/Abbey Road/01 - Come Together.mp3": VBR detected, but no VBR header is present. Seeking may not work properly.
INFO: "/media/mbybee/Radiation/Music2000/The Beatles/Abbey Road/01 - Come Together.mp3": 9979 MPEG frames (MPEG 1 Layer III), +ID3v2, no VBR header
Done!
(displays as 31kbps)

Requested VBR quality default:

mp3val '/media/mbybee/Radiation/Music2000/The Beatles/Sgt. Pepper’s Lonely Hearts Club Band/01 - Sgt. Pepper’s Lonely Hearts Club Band.mp3'
Analyzing file "01 - Sgt. Pepper’s Lonely Hearts Club Band.mp3"...
WARNING: "/media/mbybee/Radiation/Music2000/The Beatles/Sgt. Pepper’s Lonely Hearts Club Band/01 - Sgt. Pepper’s Lonely Hearts Club Band.mp3": VBR detected, but no VBR header is present. Seeking may not work properly.
INFO: "/media/mbybee/Radiation/Music2000/The Beatles/Sgt. Pepper’s Lonely Hearts Club Band/01 - Sgt. Pepper’s Lonely Hearts Club Band.mp3": 2346 MPEG frames (MPEG 2.5 Layer III), +ID3v2, no VBR header
Done!
(displays as 31kbps)

As previously noted, flac works fine.

Revision history for this message
Derek L (ddl-lp) wrote :

This problem still occurs in 17.10. I just ripped a kids music disc via Rhythmbox using MP3 default settings (=VBR/medium). Files are perceived (by RB and nautilus) as 32Kbps:

% file 19\ -\ Five\ Days\ Old.mp3
19 - Five Days Old.mp3: Audio file with ID3 version 2.3.0, contains:MPEG ADTS, layer III, v1, 32 kbps, 44.1 kHz, JntStereo

% mp3val 19\ -\ Five\ Days\ Old.mp3
Analyzing file "19 - Five Days Old.mp3"...
WARNING: "/home/ddl/Music/Laurie Berkner/Lullabies/19 - Five Days Old.mp3": VBR detected, but no VBR header is present. Seeking may not work properly.
INFO: "/home/ddl/Music/Laurie Berkner/Lullabies/19 - Five Days Old.mp3": 7087 MPEG frames (MPEG 1 Layer III), +ID3v2, no VBR header

I can partly "fix" file metadata (via vbrfix and mp3val -f), but nautilus and RB then display bitrate as "unknown".

Revision history for this message
Thelasko (stever530) wrote :

Still exists in 20.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.