[Bug 333454] Re: Can't open .spx speex files in Amarok

Kristopher K. Kruger krugerk+launchpad.net at gmail.com
Tue Aug 18 11:03:43 UTC 2009


Interestingly, the audio that would not load in amarok2 still would not
load after being transcoded to 16k, mono like the one that could be
played.

# -> wav
$ speexdec myspeexfile.spx myspeexfile.wav

# downsample and mono
$ sox myspeexfile.wav -c 1 -r 16k myspeexfile.1c.16k.wav

# re encode with speex
$ speexenc myspeexfile.1c.16k.wav --vad --agc --vbr myspeexfile.1c.16k.spx

# send to amarok
$ amarok -l myspeexfile.1c.16k.spx


file not added to playlist

sending the wav works fine though
$ amarok -l myspeexfile.1c.16k.wav
and plays as well



I also changed the 'working' spx file to 2 channel and at 22k, but mplayer showed that they are still different:

$ mplayer wavthespxofwhichdoesnotloadinamarok.wav
...
AUDIO: 22050 Hz, 2 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
...

$ mplayer wavthespxofwhichdoesloadinamarok.wav
...
AUDIO: 22000 Hz, 2 ch, s16le, 704.0 kbit/100.00% (ratio: 88000->88000)
...


after encoding the 'working' one again, it also does not play:

$ speexenc wavthespxofwhichdoesloadinamarok.wav --agc --vad --vbr originalspxwasplayinginamarok.spx
Encoding 16000 Hz audio using wideband (sub-band CELP) mode (mono)
Warning: --vad is already implied by --vbr or --abr

$ amarok -l originalspxwasplayinginamarok.spx

no longer adds the file to the playlist


...

so .spx file that plays in amarok
decode to wav
encode to spx
new spx file no longer loads in amarok

so speexenc no longer creates spx files that amarok can play

$ speexenc --version
speexenc (Speex encoder) version 1.2rc1 (compiled Nov  5 2008)
Copyright (C) 2002-2006 Jean-Marc Valin


Both the one that play and the one that does not appear the same in the mplayer output:
one that also loads in amarok:

Playing file1.spx.
[Ogg] stream 0: audio (Speex), -aid 0                           
Ogg file format detected.
===========================
Forced audio codec: mad
Opening audio decoder: [speex] Speex audio decoder
AUDIO: 16000 Hz, 1 ch, s16le, 0.0 kbit/0.00% (ratio: 0->32000)
Selected audio codec: [speex] afm: speex (Speex Audio Decoder)
===========================

one that does not load in amarok:

Playing file2.spx.
[Ogg] stream 0: audio (Speex), -aid 0
Ogg file format detected.
===========================
Forced audio codec: mad
Opening audio decoder: [speex] Speex audio decoder
AUDIO: 16000 Hz, 1 ch, s16le, 0.0 kbit/0.00% (ratio: 0->32000)
Selected audio codec: [speex] afm: speex (Speex Audio Decoder)
===========================


both play just fine with
mplayer (1.0rc2-4.3.3), 
speexdec (1.2rc1 (compiled Nov  5 2008)),
vlc (version 0.9.9a Grishenko),
xine (v0.99.6cvs), ...


file that can be loaded in amarok was encoded
using speex 1.1.12 in wideband (sub-band CELP) mode

file that cannot be loaded in amarok was encoded
using speex 1.2rc1 in wideband (sub-band CELP) mode




Ok. Since I can no longer create spx files that amarok can play, though it worked with speexenc 1.1.12 and now not speexenc 1.2rc1, perhaps this ticket is better directed at speex.
But since other media players can play the files, it seems amarok should be able to do so as well.

-- 
Can't open .spx speex files in Amarok
https://bugs.launchpad.net/bugs/333454
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to amarok in ubuntu.




More information about the kubuntu-bugs mailing list