Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82041 - ffmpeg cannot play wma file
Summary: ffmpeg cannot play wma file
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-14 13:43 UTC by Erlend Davidson
Modified: 2005-05-04 11:29 UTC (History)
1 user (show)

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


Attachments
Output of mplayer file.wma > working_wma (working_wma,196.07 KB, text/plain)
2005-05-04 04:44 UTC, Erlend Davidson
Details
Output of mplayer file2.wma > not_working_wma (not_working_wma,861.82 KB, text/plain)
2005-05-04 04:46 UTC, Erlend Davidson
Details
Output of mplayer file3.wma > not_working_wma2 (not_working_wma2,1.85 MB, text/plain)
2005-05-04 04:48 UTC, Erlend Davidson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erlend Davidson 2005-02-14 13:43:03 UTC
When trying to play any wma file with the xmms-wma plugin, xmms closes with segmentation fault.

Reproducible: Always
Steps to Reproduce:
1. Add *.wma file to playlist
2. Play wma file


Actual Results:  
Xmms closes with error in terminal window
"Segmentation fault"

Expected Results:  
Played the sound file

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6-3 i686)
=================================================================
System uname: 2.6.10-gentoo-r6-3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 14:11:27)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirrors.blueyonder.co.uk/mirrors/gentoo
ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl
directfb divx4linux dvd dvdr encode esd f77 fam flac font-server foomaticdb
fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6
java jpeg ldap libg++ libwww mad mikmod mng motif mpeg ncurses nls nptl nptlonly
oggvorbis openal opengl oss pam pdflib perl pic png python qt quicktime readline
samba sdl slang spell sse ssl svg svga tcltk tcpd tiff truetype truetype-fonts
type1-fonts wmf xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 James Le Cuirot gentoo-dev 2005-02-17 16:06:12 UTC
I used to get this too but only sometimes. I've just bumped the version up to 1.0.4 and it seems to be working fine now. The ffmpeg patch from the previous version still works so it's just a simple version bump that's needed.

Just as well this got fixed, I use XMMS to DJ and I've got my biggest ever night on Saturday. All my Metallica songs are in WMA format and I plan to play a few of them! I haven't got the original CDs to hand at the moment.
Comment 2 James Le Cuirot gentoo-dev 2005-02-17 16:23:39 UTC
Ah nuts. Spoke too soon.
Comment 3 ra 2005-03-09 16:51:56 UTC
Have you tried re-emerging xmms-wma? Some libraries may have changed, specifically ffmpeg, since the last compile.
Comment 4 Erlend Davidson 2005-03-10 02:34:33 UTC
I haven't tried re-emerging xms-wma.  I downloaded the newest version of xmms-wma 1.0.4 (not yet available in portage) and much the same error occurred (but this time just loading a wma file would crash xmms - before I had to load and play one).

I notice a new version of ffmpeg is available today, so I'll upgrade to it this afternoon and re-emerge xmms-wma.
Comment 5 Erlend Davidson 2005-03-10 07:57:43 UTC
Okay, upgraded ffmpeg and tried to re-emerge xmms-wma.  Received the following error:

xmms-wma.c: In function `wma_play_loop':
xmms-wma.c:347: error: too few arguments to function `av_seek_frame'
make[1]: *** [obj/xmms-wma.o] Error 1
make: *** [all] Error 2
Comment 6 ra 2005-03-15 15:19:00 UTC
In that case this is a dupe of bug #84583 - it's been fixed in CVS.
Comment 7 Erlend Davidson 2005-04-18 09:28:44 UTC
No, this is still a bug.  Emerged xmms-wma-1.0.4 and is closes with a Segmentation fault when I try and play a wma file.

Erlend
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-24 11:44:28 UTC
what version of ffmpeg do you have on your system?

What happens when you 'ffplay <file>'?
Comment 9 Erlend Davidson 2005-04-24 11:56:43 UTC
ffmpeg version (with use flags):
media-video/ffmpeg-0.4.9_p20050226-r4  -a52 +aac (-altivec) -debug -doc -dts +encode -ieee1394 +imlib +mmx -network +ogg +oss +sdl -threads +truetype -v4l +vorbis +xvid +zlib

When I try and play a .wma file with ffmpeg, I get:
"could not open codecs"
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-24 16:27:06 UTC
hmm... ok, this looks like an ffmpeg problem compounded by the fact that the xmms plugin doesn't have great error handling.  So, could you try recompiling with CFLAGS='-O2 -march=pentium3 -fomit-frame-pointer -pipe'?  That's what I used.

Also, could you post the .wma somewhere so I can get it to test on my end.

Thanks.
Comment 11 Erlend Davidson 2005-04-25 07:34:03 UTC
Same problem after recompiling ffmpeg and xmms-wma with -O2.

Applies to any wma file.
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-25 10:15:23 UTC
Well please provide me one that you are using to trigger the bug.  There may be a common traight among all your wma files (sample rate, bitrate, etc).

Also, please provide a backtrace of the xmms crash
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-03 13:00:52 UTC
Closing due to lack of response.
Comment 14 Erlend Davidson 2005-05-04 04:44:36 UTC
Created attachment 58022 [details]
Output of mplayer file.wma > working_wma

For a wma file which plays in xmms-wma
Comment 15 Erlend Davidson 2005-05-04 04:46:43 UTC
Created attachment 58023 [details]
Output of mplayer file2.wma > not_working_wma

For a wma file which does not play with xmms-wma.
Comment 16 Erlend Davidson 2005-05-04 04:48:35 UTC
Created attachment 58024 [details]
Output of mplayer file3.wma > not_working_wma2

For a wma file which does not play with xmms-wma
Comment 17 Erlend Davidson 2005-05-04 04:49:43 UTC
Okay, it isn't actually a problem with every wma... seems that if the wma file has tag info it breaks.

I tried three files. Two of them don't play with xmms-wma, one of them does.  All of the play fine with mplayer (so the ffmpeg codecs should be fine).  I ran the command "mplayer [file].wma > outputfile" to look at the differences between the files.  These are below.

I've attached these files as working_wma, not_working_wma, and not_working_wma2.

Erlend
Comment 18 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-04 11:29:25 UTC
Please test them with ffplay, not mplayer, and please provide me with a link to a wma file that causes the breakage.