You are not logged in.

#1 2012-07-13 09:31:02

earlz
Member
Registered: 2010-07-11
Posts: 39

Spotify works for everything except for local files

Hello, some time ago I went through and cleaned up some packages and also of course updated my system. Since then, spotify seems to have broken kinda.

I use the native linux client from the AUR. I updated the spotify package and installed it as well, but no luck.

Anyway, my problem is that local files will not play on Spotify. Other than that, it seems to work perfect. Has anyone had this problem? I've seen references in some places that avlib and gstreamer updates may have something to do with it

Note that spotify doesn't actually crash or anything. It just gets stuck in a busy loop and somehow uses 100% of my processor time across all 6 cores when I try to play a local file. Spotify also doesn't freeze. I can change songs to a non-local file and it'll work just fine.

The only types of warnings I get from the console is this:

/usr/share/spotify/spotify: /usr/lib/libcrypto.so.0.9.8: no version information available (required by /usr/share/spotify/spotify)
/usr/share/spotify/spotify: /usr/lib/libssl.so.0.9.8: no version information available (required by /usr/share/spotify/spotify)

And I'm pretty sure that doesn't matter too much.

Does anyone know how to fix this?

Offline

#2 2012-07-13 14:56:49

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,435
Website

Re: Spotify works for everything except for local files

Try the spotify-beta AUR package.

Scott

Offline

#3 2012-08-23 16:29:11

Phobophobia
Member
Registered: 2012-01-24
Posts: 11

Re: Spotify works for everything except for local files

I'm having the same issue. Installing the beta client changes nothing.

Offline

#4 2012-08-23 19:01:52

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,435
Website

Re: Spotify works for everything except for local files

Yeah, it broke again since my previous post hmm I think there's some AUR comments that might have some suggestions, but I haven't had time to check yet.

Scott

Offline

#5 2012-08-24 11:32:20

zero_one
Member
Registered: 2010-07-07
Posts: 104

Re: Spotify works for everything except for local files

A quick google shows me http://aur.archlinux.org/packages.php?ID=36308, is marked out of date.  Have you checked dependencies? Looks like libav files are causing that specific issue. A quick fix would be to downgrade ffmpeg maybe? I find the aur to be hit or miss with updates. If something i have installed from the aur is working, I try not to update them unless i have to.

Last edited by zero_one (2012-08-24 11:42:07)

Offline

#6 2012-10-06 17:29:40

thorion
Member
Registered: 2012-02-06
Posts: 19

Re: Spotify works for everything except for local files

Sorry for the bump, but this page is pretty high up when searching for "spotify linux local files" on Google, so I thought I'd post the workaround here. As zero_one suggested, you have to downgrade ffmpeg for this to work. The easiest way to do it is to install the ffmpeg-legacy package from the AUR; say yes when pacman asks whether it should remove ffmpeg. We can only wait and hope that the next version of Spotify for Linux will support the newest version of ffmpeg.

Offline

#7 2012-12-03 21:59:28

FirstWizardZorander
Member
Registered: 2007-01-29
Posts: 20

Re: Spotify works for everything except for local files

I have a solution that works without using an older version of ffmpeg. As root, do this:

# ln -s /usr/lib/libvpx.so /usr/share/spotify/libs/libvpx.so.0

This will fix local playback. As it seems, a suitable ffmpeg version is already included with the spotify package, and it just doesn't find a suitably old version of libvpx. Symlinking the new version to the name of the old version fixes it. The above line doesn't contaminate /usr/lib either, but rather relies on the spotify library directory.

Hope this helps!

Offline

#8 2012-12-03 22:32:23

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,435
Website

Re: Spotify works for everything except for local files

FirstWizardZorander wrote:

I have a solution that works without using an older version of ffmpeg. As root, do this:

# ln -s /usr/lib/libvpx.so /usr/share/spotify/libs/libvpx.so.0

This will fix local playback. As it seems, a suitable ffmpeg version is already included with the spotify package, and it just doesn't find a suitably old version of libvpx. Symlinking the new version to the name of the old version fixes it. The above line doesn't contaminate /usr/lib either, but rather relies on the spotify library directory.

Hope this helps!

No luck with that here sad Running up-to-date x86_64 with spotify 0.8.4.103-1 from the AUR. Just doesn't play. No errors visible either when running from command line.

Scott

Offline

#9 2012-12-03 23:04:00

FirstWizardZorander
Member
Registered: 2007-01-29
Posts: 20

Re: Spotify works for everything except for local files

What does

# LD_LIBRARY_PATH=/usr/share/spotify/libs ldd /usr/share/spotify/libs/libavcodec.so.52

tell you?

EDIT: I'm also running spotify 0.8,4,103-1 from AUR.
EDIT2: I have the standard extra/ffmpeg package installed. It will install libvpx if you're missing it.

Last edited by FirstWizardZorander (2012-12-03 23:08:43)

Offline

#10 2012-12-04 02:13:01

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,435
Website

Re: Spotify works for everything except for local files

FirstWizardZorander wrote:

What does

# LD_LIBRARY_PATH=/usr/share/spotify/libs ldd /usr/share/spotify/libs/libavcodec.so.52

tell you?

Nothing smile I don't have any libavcodec.so* links in /usr/share/spotify/libs. I tried something similar with libavcodec:

sudo ln -s /usr/lib/libavcodec.so /usr/share/spotify/libs/libavcodec.so.52

but that didn't work either. I think I read that an older version of ffmpeg exists in the AUR that may work, but I just don't use local file playback enough to really hack it too much to get working.

Thanks!
Scott

Offline

#11 2012-12-04 16:28:29

FirstWizardZorander
Member
Registered: 2007-01-29
Posts: 20

Re: Spotify works for everything except for local files

Oh, sorry. Spotify does not include these files! I've been a fool and put them there myself.


Well, then. this PKGBUILD

# Maintainer: Joni Lapilainen <joni.lapilainen@gmail.com>
# Destination changed to /opt by FirstWizardZorander
pkgname=ffmpeg-legacy
pkgver=0.5.7
pkgrel=1
pkgdesc="Legacy FFMPEG (0.5.7) for applications depending on it."
arch=('arm' 'armv7h' 'i686' 'x86_64')
url="http://ffmpeg.org/"
license="nonfree"
source=(http://ffmpeg.org/releases/ffmpeg-0.5.7.tar.gz)
md5sums=('79bce5b9db0d94c22b0c36e71146f97a')
depends=('alsa-lib' 'bzip2' 'faac' 'lame' 'libtheora' 'libvorbis' 'openjpeg' 'rtmpdump' 'schroedinger' 'sdl' 'speex' 'x264' 'xvidcore' 'zlib')
provides=('ffmpeg-legacy')
conflicts=()
build() {
  cd $startdir/src/ffmpeg-0.5.7
  ./configure --prefix=/opt/ffmpeg-legacy --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libvorbis --enable-swscale --enable-libx264 --enable-libxvid --enable-libspeex --enable-libschroedinger --enable-libopenjpeg --extra-cflags=-fPIC
  make || return 1
  make DESTDIR=$startdir/pkg install
}

will build ffmpeg-legacy and put it in /opt instead of /usr, preserving the current version (doesn't list it as a conflict). That way, you're free to make symbolic links from the library files into your /usr/share/spotify/libs directory.

I'm considering making an ffmpeg-spotify package which only puts the required files in /usr/share/spotify/libs. I'll get back to you.

Offline

#12 2012-12-04 17:13:18

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,435
Website

Re: Spotify works for everything except for local files

Well, that worked...just symlinked all the *.so* files from ffmpeg-legacy into the spotify libs directory. A bit ugly but it works smile Maybe you could collaborate with the spotify AUR maintainer(s) to roll together all that into something cohesive.

Thanks!
Scott

Offline

#13 2013-12-12 15:18:50

Gons
Member
Registered: 2013-11-08
Posts: 4

Re: Spotify works for everything except for local files

Installing ffmpeg-compat worked for me.

Offline

#14 2014-01-04 21:02:34

epinephrine
Member
From: Frankfurt
Registered: 2012-10-18
Posts: 51

Re: Spotify works for everything except for local files

Gons, I can confirm that installing ffmpeg-compat fixed local playback for me as well.

Offline

#15 2014-02-19 09:25:22

emlun
Member
Registered: 2013-10-27
Posts: 2

Re: Spotify works for everything except for local files

I too can confirm that installing ffmpeg-compat 1:0.10.11-1 fixed local playback for me in spotify 0.9.4.183-3.

Offline

#16 2014-10-01 06:14:11

Blackwing
Member
Registered: 2014-10-01
Posts: 5

Re: Spotify works for everything except for local files

It seems, that there ist the same problem with Spotify  again. I use Arch Linux again for 2 months, and everything works correct. But since a 2 or 3 days, i can´t play local data in spotify anymore. Can it be, that there some issues with the dependencies ??

Last edited by Blackwing (2014-10-01 06:14:21)

Offline

#17 2014-10-01 21:52:48

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,830
Website

Re: Spotify works for everything except for local files

nothing changed... install spotify and ffmpeg-compat from aur.. done


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

Board footer

Powered by FluxBB