Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79283 - XMMS fails to play certain ogg vorbis files
Summary: XMMS fails to play certain ogg vorbis files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-23 20:07 UTC by Brandon Low (RETIRED)
Modified: 2005-09-23 19:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-sound/xmms/files/vorbis_revert.patch (vorbis_revert.patch,9.75 KB, patch)
2005-01-31 14:35 UTC, Jeremy Huddleston (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Low (RETIRED) gentoo-dev 2005-01-23 20:07:17 UTC
I've recently been reripping and encoding all of my CDs into ogg vorbis using q7.  Initially, I was using libvorbis-1.1.0 official, I then switched to libvorbis-1.1.0 + aoTuV b3 (now enabled by USE="aotuv").  Some of the files created by either of these ripping processes do not play in XMMS.  

The behaviour is:  

First when I load a playlist containing an effected file, the file's tag information is not read correctly, so the filename is displayed, and the length of the song is incorrectly displayed (usually much too long).

Then when I try to play the song, it appears to attempt to play it for about 3 seconds, during which the bitrate field of the xmms interface jumps around (from 0kbps up to > 300) much more than it would during playing an actual song.  Also, during this 3 seconds, the displayed length of the song in the playlist window changes in proportion to the bitrate displayed.

Finally, XMMS gives up and moves to the next song in the playlist.

I did not have this problem with any of the files that I had encoded with libvorbis 1.0.1 or 1.1.0 at 128kbps target bitrate.

I have experienced a similar problem with attempting to stream oggs.

I have not yet submitted this bug upstream, because the Gentoo version of XMMS is heavily patched.

Reproducible: Sometimes
Steps to Reproduce:
Comment 1 Brandon Low (RETIRED) gentoo-dev 2005-01-23 20:12:13 UTC
The songs are ripped using grip, the encoder commandline is:
/usr/bin/oggenc -o %m -d %y -a %a -l %d -N %t -t %n -q 7 -G %G %w
most of the fields are guessable, but:
%m - name of ogg output file
%y - album year
%a - artist
%d - disk title
%t - track number
%n - track name
%G - the genre of the track as a string
%w - wave input filename

Also, these same oggs pass ogginfo fine, oggdec fine, and play fine in ogg123, and on the iRiver H3x0 series portable audio players.
Comment 2 Brandon Low (RETIRED) gentoo-dev 2005-01-23 20:20:13 UTC
wow, I'm bad at reporting bugs.
XMMS 1.2.10-r9 is broken
XMMS 1.2.10-r5 works with the exact same files.

emerge --info:

Portage 2.0.51-r13 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) MP 2100+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Jan  3 2005, 15:10:43)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.22, 2.4.19-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -fgcse -fgcse-lm -fgcse-sm -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -fgcse -fgcse-lm -fgcse-sm -fomit-frame-pointer -pipe -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distcc distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aalib acpi alsa apache2 avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl dga directfb divx4linux dvd dvdread dxr3 encode ethereal fbcon flash gd gdbm ggi gif gimpprint gphoto2 gpm gtk gtk2 gtkhtml imap imlib innodb java jbig jikes jpeg libg++ libwww mad mbox mmx mozilla mpeg mysql ncurses nvidia objc oci8 oggvorbis opengl pam pcmcia pdflib perl plotutils png pnp postgres python quicktime readline real samba sdl spell sse ssl svga tcltk tetex tiff truetype usb xinerama xml xml2 xmms xprint xv zlib"
Unset:  LDFLAGS, PORTDIR_OVERLAY
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-23 22:14:44 UTC
And -r10?  Can you try changing the output plugin?
Comment 4 Brandon Low (RETIRED) gentoo-dev 2005-01-24 18:12:50 UTC
-r10 same problem as -r9

FWIW this problem did not occur with any of the three versions on my laptop.
Laptop non-broken emerge --info:
Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.8.1-mm1 i686)
=================================================================
System uname: 2.6.8.1-mm1 i686 mobile AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Sep 21 2004, 07:26:08)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fgcse -fgcse-lm -fgcse-sm -freorder-blocks -fprefetch-loop-arrays -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fgcse -fgcse-lm -fgcse-sm -freorder-blocks -fprefetch-loop-arrays -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs digest distlocks fixpackages sandbox sfperms usersandbox"
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="cvs://lostlogic@cvs.gentoo.org:/home/cvsroot"
USE="x86 3dnow 3dnowex X aalib acpi alsa aotuv apache2 avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl dga directfb divx4linux dlloader dvd dvdread encode ethereal fbcon flash gd gdbm ggi gif gimpprint gphoto2 gpm gtk gtk2 gtkhtml imap imlib innodb java jbig jikes jpeg libg++ libwww mbox mmx mozilla mpeg mysql ncurses oci8 oggvorbis opengl pam pcmcia pdflib perl plotutils png pnp postgres python quicktime readline real samba sdl spell sse ssl svga tcltk tetex tiff truetype usb xinerama xml xml2 xmms xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 5 Brandon Low (RETIRED) gentoo-dev 2005-01-24 18:34:17 UTC
Switching from alsa to oss output after recompiling with oss support made no change.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-31 14:35:28 UTC
Created attachment 50080 [details, diff]
media-sound/xmms/files/vorbis_revert.patch

vorbis had some charset updates from cvs between -r5 and -r10
Can you apply this patch to test for me.  It reverts the vorbis input plugin to
it -r5 behavior.

Place the file in media-sound/xmms/files/vorbis_revert.patch and after this
line in the ebuild:
epatch ${PATCHDIR}

add this line:
epatch ${FILESDIR}/vorbis_revert.patch
Comment 7 Brandon Low (RETIRED) gentoo-dev 2005-02-03 08:22:23 UTC
will test this evening.
Comment 8 Brandon Low (RETIRED) gentoo-dev 2005-02-03 18:19:47 UTC
OH NOES -- with that patch, it goes to not even trying to play the 'normal files' and still doing the same semi-trying thing on the 'not nomal' ones.
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-04 02:42:50 UTC
would you mind posting sample "working" and "not working" ogg files...

also pleasse verify it's still a problem in -r12 (it should be unless magic happened).
Comment 10 Xavier Neys (RETIRED) gentoo-dev 2005-02-04 03:26:06 UTC
I have had the same symptoms. Unmerging xmms-mad (or simply disabling the plug-in) solved the problem for me.

I wonder if this could be due to the fact that 'file' thinks my ogg files are MP3.

$ file 01-crazy_train.ogg 
01-crazy_train.ogg: MP3 file with ID3 version 2.3.0 tag

I have had similar issues with mplayer BTW:
http://bugs.gentoo.org/show_bug.cgi?id=80692
Comment 11 Brandon Low (RETIRED) gentoo-dev 2005-02-04 07:51:24 UTC
The only concern I have with posting OGGs is that they are of copyrighted music... so you see the dilema...  Let me see what the 'file' output on the diff. files is.

I doubt I have the exact same problem because I didn't ID3 tag any of them, but let's find out!
Comment 12 Brandon Low (RETIRED) gentoo-dev 2005-02-04 07:52:42 UTC
lost American_HiFi # file 01_-_Surround.ogg 
01_-_Surround.ogg: Ogg data, Vorbis audio, stereo, 44100 Hz, ~224000 bps, created by: Xiph.Org libVorbis I (1.1.0 RC1)

lost American_HiFi # file 02_-_Flavor_Of_The_Weak.ogg 
02_-_Flavor_Of_The_Weak.ogg: Ogg data, Vorbis audio, stereo, 44100 Hz, ~224000 bps, created by: Xiph.Org libVorbis I (1.1.0 RC1)

First one works, second one doesn't.  I will test when I get home with -r12 and w/o the MAD output plugin.
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-04 09:36:44 UTC
Brandon: send them over dcc in IRC if you are apprehensive about posting them somewhere...  This use falls WELL within fair use, so don't worry about riaa backlash or anything.

Xavier: Your problem is that xmms-mad identifies what it should play based on the file type (not the extension), and the vorbis plugin uses the extension (I believe)...  how did you make that bad ogg file?
Comment 14 Xavier Neys (RETIRED) gentoo-dev 2005-02-04 09:47:34 UTC
"""
Your problem is that xmms-mad identifies what it should play based on the file type (not the extension), and the vorbis plugin uses the extension (I believe)...  how did you make that bad ogg file?
"""

That's what I had found out. I can do without xmms-mad anyway.
99% of my ogg files have been tagged by grip.
I left '[] only tag .mp3 files' unchecked and grip's help mentions:
"Add ID3 tags to encoded files 
Comment 15 Xavier Neys (RETIRED) gentoo-dev 2005-02-04 09:47:34 UTC
"""
Your problem is that xmms-mad identifies what it should play based on the file type (not the extension), and the vorbis plugin uses the extension (I believe)...  how did you make that bad ogg file?
"""

That's what I had found out. I can do without xmms-mad anyway.
99% of my ogg files have been tagged by grip.
I left '[] only tag .mp3 files' unchecked and grip's help mentions:
"Add ID3 tags to encoded files  If this option is checked, Grip will add ID3v1 tags to the files it encodes. ID3 tags are used to put song meta-data into an encoded file. You will want to disable this if you are encoding with a format other than MP3."
YAPBCAK, I suppose.
How would I remove those tags?
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-04 10:11:18 UTC
You might look at easytag, tagtool, or pretty much media-sound/*tag* ;)... one of those is bound to have some special case handling where it can convert id3 -> ogg tags.
Comment 17 Xavier Neys (RETIRED) gentoo-dev 2005-02-04 11:33:38 UTC
audiotag -r -c " " . did wonders for me. Thanks a lot.
Comment 18 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-11 16:41:06 UTC
sorry, I can't reproduce this... they both play for me =(
Comment 19 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-11 17:29:50 UTC
can youu try the media-plugins/xmms-vorbis ebuilds?
Comment 20 Brandon Low (RETIRED) gentoo-dev 2005-02-18 04:48:44 UTC
works.  thanks
Comment 21 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-18 10:00:42 UTC
well then it's weird freaky magic because -r1 should be the same as what's in xmms-1.2.10-r12, and --r0 should be teh same as -r5... so... weird... I don't think this bug is actually fixed, so pleasse reopen if you can reproduce it again...
Comment 22 Greg Watson (linuxkrn) 2005-09-23 19:50:25 UTC
This bug is still there.  I get it on xmms 1.2.10-r15.

Running the audiotag -r -c " " *.ogg works, but the bug needs to be fixed in
xmms-mad.


Can post more info if needed, but this is a new build (2005.0) from stage 1.  


Please reopen bug.