You are not logged in.

#1 2011-08-27 09:47:32

multixrulz
Member
Registered: 2005-04-05
Posts: 25

xine won't play wav & mp3

Does anyone else have this one?

For the last couple of weeks probably, xine won't play .wav files (the format I receive voicemail in).  Instead I get a popup box saying (for example)

- xine engine error -
There is no demuxer plugin available to handle
'/usr/share/sounds/purple/alert.wav'
Usually this means that the file format was not recognized.

This also occurs for mp3 files.
Other applications like mplayer and pidgin have no trouble.  Kaffeine (which uses xine-lib as a backend) doesn't play .wav or .mp3 either.

Googling has revealed nothing useful to date.

Offline

#2 2011-08-27 22:05:46

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: xine won't play wav & mp3

Is FFmpeg working properly for you? You can try 'ffplay <some_mps_file>' from the command line and see if it plays any mp3.

Offline

#3 2011-08-27 22:24:17

multixrulz
Member
Registered: 2005-04-05
Posts: 25

Re: xine won't play wav & mp3

ffplay produces sound from the .wav mentioned above.

More info from xine:

08:17:54: xine: found demuxer plugin: Elementary MPEG stream demux plugin
08:17:54: xine: found input plugin : file input plugin
08:17:53: xine: couldn't find demux for >/usr/share/sounds/purple/alert.wav<
08:17:53: xine: found input plugin: file input plugin
08:17:53: Loaded configuration from file '/home/ja/.xine/config

For the record, I've tried deleting ~/.xine/catalog.cache, and renaming the whole ~/.xine directory.

Offline

#4 2011-08-28 02:37:49

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: xine won't play wav & mp3

multixrulz wrote:

ffplay produces sound from the .wav mentioned above.

More info from xine:

08:17:54: xine: found demuxer plugin: Elementary MPEG stream demux plugin
08:17:54: xine: found input plugin : file input plugin
08:17:53: xine: couldn't find demux for >/usr/share/sounds/purple/alert.wav<
08:17:53: xine: found input plugin: file input plugin
08:17:53: Loaded configuration from file '/home/ja/.xine/config

For the record, I've tried deleting ~/.xine/catalog.cache, and renaming the whole ~/.xine directory.

This output is curious to me. Do you have mediainfo installed? I'd like to see the output of:

mediainfo /usr/share/sounds/purple/alert.wav

Last edited by skottish (2011-08-28 02:38:09)

Offline

#5 2011-08-28 11:48:53

multixrulz
Member
Registered: 2005-04-05
Posts: 25

Re: xine won't play wav & mp3

$ mediainfo /usr/share/sounds/purple/alert.wav
General
Complete name                    : /usr/share/sounds/purple/alert.wav
Format                           : Wave
File size                        : 22.8 KiB
Duration                         : 525ms
Overall bit rate                 : 355 Kbps
Encoded by                       : 
Recorded date                    : 2004-08-20
Writing application              : GoldWave (C) Chris S. Craig, http://www.goldwave.com

Audio
ID                               : 0
Format                           : PCM
Format settings, Endianness      : Little
Codec ID                         : 1
Codec ID/Hint                    : Microsoft
Duration                         : 525ms
Bit rate                         : 352.8 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 22.05 KHz
Bit depth                        : 16 bits
Stream size                      : 22.6 KiB (99%)

Offline

#6 2011-08-28 16:45:51

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: xine won't play wav & mp3

I haven't used Xine in a long time, but FFmpeg should be handling both wav and mp3. Since ffplay can play your files, I'm at a loss on where your problem lies.

Offline

#7 2011-08-28 16:56:26

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: xine won't play wav & mp3

Did you try

xine --verbose=1 file.wav

This is strange:

xine: found demuxer plugin: Elementary MPEG stream demux plugin

If I play a wav file with xine, it says:

found demuxer plugin: WAV file demux plugin

EDIT: not really, wav can be encoded, but mediainfo says PCM, and nothing for encoded by...
what does file say?

Last edited by steabert (2011-08-28 17:18:02)

Offline

#8 2011-08-30 09:15:40

Murray_B
Member
From: Germany
Registered: 2008-07-29
Posts: 134

Re: xine won't play wav & mp3

Same problem here, and I am sure. the mp3-files are okay. I think something broke xine-lib and wav/mp3.

Offline

#9 2011-08-30 09:48:03

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: xine won't play wav & mp3

xine plays my mp3 and wav fine here, can you point to one of the mp3/wavs to test?

Offline

#10 2011-08-30 09:56:26

multixrulz
Member
Registered: 2005-04-05
Posts: 25

Re: xine won't play wav & mp3

Some interesting output from:
$ xine --verbose=1 /usr/share/sounds/purple/alert.wav

...
load_plugins: cannot open plugin lib /usr/lib/xine/plugins/1.29/xineplug_dmx_audio.so:
libmodplug.so.1: cannot open shared object file: No such file or directory
...
load_plugins: cannot open plugin lib /usr/lib/xine/plugins/1.29/xineplug_wavpack.so:
libwavpack.so.1: cannot open shared object file: No such file or directory
...
load_plugins: cannot open plugin lib /usr/lib/xine/plugins/1.29/xineplug_inp_vcd.so:
libvcdinfo.so.0: cannot open shared object file: No such file or directory
...
gui_xine_open_and_play():
    mrl: '/usr/share/sounds/purple/alert.wav',
    sub 'NONE',
    start_pos 0, start_time 0, av_offset 0, spu_offset 0.
xine: found input plugin  : file input plugin
ebml: invalid master element
xine: couldn't find demux for >/usr/share/sounds/purple/alert.wav<

---------------------- (ERROR) ----------------------
got XINE_ERROR_NO_DEMUX_PLUGIN.
------------------ (END OF ERROR) -------------------


---------------------- (ERROR) ----------------------
- xine engine error -

There is no demuxer plugin available to handle '/usr/share/sounds/purple/alert.wav'.
Usually this means that the file format was not recognized.
------------------ (END OF ERROR) -------------------


---------------------- (ERROR) ----------------------
- xine engine error -

There is no demuxer plugin available to handle '/usr/share/sounds/purple/alert.wav'.
Usually this means that the file format was not recognized.
------------------ (END OF ERROR) -------------------

gui_xine_open_and_play():
    mrl: 'file:/usr/share/xine/skins/xine-ui_logo.mpv',
    sub 'NONE',
    start_pos 0, start_time 0, av_offset 0, spu_offset 0.
xine: found input plugin  : file input plugin
ebml: invalid EBML ID size (0x0) at position 1
ebml: invalid master element
xine: found demuxer plugin: Elementary MPEG stream demux plugin
av_offset=0 pts
spu_offset=0 pts


The example above uses a sound from pidgin (supplied via libpurple)

$ file /usr/share/sounds/purple/alert.wav
/usr/share/sounds/purple/alert.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 22050 Hz

Package versions:

$ pacman -Q xine-ui xine-lib ffmpeg
xine-ui 0.99.6-2
xine-lib 1.1.19-3
ffmpeg 20110724-1

Offline

#11 2011-08-30 10:13:53

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: xine won't play wav & mp3

I have the same versions, and I have the files that seem to be missing, they are part of xine-lib

$ sudo pacman -Ql xine-lib | grep xineplug_wavpack.so
xine-lib /usr/lib/xine/plugins/1.29/xineplug_wavpack.so

Offline

#12 2011-08-31 10:22:02

multixrulz
Member
Registered: 2005-04-05
Posts: 25

Re: xine won't play wav & mp3

$ ls -l /usr/lib/xine/plugins/1.29/*dmx*
...
-rwxr-xr-x 1 root root 81964 Aug  4 05:24 /usr/lib/xine/plugins/1.29/xineplug_dmx_audio.so
...

So why can't xine find it?

Offline

#13 2011-08-31 11:46:45

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: xine won't play wav & mp3

You should do:

ldd /usr/lib/xine/plugins/1.29/xineplug_dmx_audio.so

because it's libmodplug it can't find (I didn't look carefully first time), same for libwavpack.

I checked, and you need the packages libmodplug and wavpack, I don't have libvcdinfo neither, but that doesn't seem to be a problem.  All these packages arel listed as optional dependencies for xine-lib, so you need to install them yourself.  So, in the end I think the problem here is the missing wavpack package.

Last edited by steabert (2011-08-31 12:01:50)

Offline

#14 2011-09-01 16:13:24

Murray_B
Member
From: Germany
Registered: 2008-07-29
Posts: 134

Re: xine won't play wav & mp3

Okay, I tried it:

ldd /usr/lib/xine/plugins/1.29/xineplug_dmx_audio.so
    linux-gate.so.1 =>  (0xb773b000)
    libxine.so.1 => /usr/lib/libxine.so.1 (0xb76b7000)
    libdl.so.2 => /lib/libdl.so.2 (0xb76b2000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb769a000)
    libm.so.6 => /lib/libm.so.6 (0xb7670000)
    librt.so.1 => /lib/librt.so.1 (0xb7666000)
    libresolv.so.2 => /lib/libresolv.so.2 (0xb764f000)
    libnsl.so.1 => /lib/libnsl.so.1 (0xb7636000)
    libmodplug.so.1 => not found
    libpthread.so.0 => /lib/libpthread.so.0 (0xb761b000)
    libc.so.6 => /lib/libc.so.6 (0xb74b3000)
    /lib/ld-linux.so.2 (0xb773c000)

So I did a pacman -S libmodplug and could play mp3 again.

I filed a bug at https://bugs.archlinux.org/task/25853.

Offline

#15 2011-09-01 16:22:06

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: xine won't play wav & mp3

I don't see how you can file an optional dependency as a bug, just because you want that option.

Offline

#16 2011-09-02 21:02:25

multixrulz
Member
Registered: 2005-04-05
Posts: 25

Re: xine won't play wav & mp3

Yay, my problem is solved!

I agree with steabert that it's not a bug, but the info in the xine-lib package is not exactly helpful.

Optional Deps  : imagemagick: for using the imagemagick plugin
                 smbclient: for using the smb plugin
                 jack: for using the jack plugin
                 vcdimager: for using the vcd plugin
                 gdk-pixbuf2: for using the gdk-pixbuf plugin
                 mesa: for using the opengl plugin
                 libpulse: for using the pulseaudio plugin
                 speex: for using the speex plugin
                 libmodplug: for using the modplug plugin
                 v4l-utils: for using the v4l plugin
                 wavpack: for using the wavpack plugin
                 faad2: for using the faad plugin
                 libmng: for using the mng plugin
                 aalib: for using the aalib plugin

There's nothing in there to indicate that libmodplug is required for playing mp3s or wavs.  I had a good look through the dependency list myself, and checked out the wavpack homepage.  But a MOD library??

Adding a comment to the bug report filed by Murray_B

Offline

Board footer

Powered by FluxBB