Page 1 of 1

Jukebox not working for me on ubuntu server 11.10 [Solved]

PostPosted: Sun Jan 08, 2012 9:57 pm
by joris
Subsonic is really great!

But for some reason I just cannot get the jukebox working with my headless ubuntu 11.10 server (just old computer) that is connected to my stereo and runs xbmc for watching movies. I read most of the post on this forums and tried all the suggested fixes. Installing sun-java from ubuntu 10.04, installed subsonic as a stand alone app, but nothing seems to work. This is my log. Any ideas or workarounds?

Code: Select all
[2012-01-08 22:49:10,637] DEBUG TranscodeInputStream - Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/mnt/raid/Media-joris/Muziek/Atmosphere/God Loves Ugly/01 Onemosphere.mp3] [-v] [0] [-f] [au] [-]
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav developers
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   built on Oct  2 2011 15:13:26 with gcc 4.6.1
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   WARNING: library configuration mismatch
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   avutil      configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   avcodec     configuration: --extra-version='4:0.7.2.1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   libavutil    51.  7. 0 / 51.  7. 0
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   libavcodec   53.  5. 0 / 53.  5. 0
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   libavformat  53.  2. 0 / 53.  2. 0
[2012-01-08 22:49:10,652] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   libavdevice  53.  0. 0 / 53.  0. 0
[2012-01-08 22:49:10,653] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   libavfilter   2.  4. 0 /  2.  4. 0
[2012-01-08 22:49:10,653] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   libswscale    2.  0. 0 /  2.  0. 0
[2012-01-08 22:49:10,653] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   libpostproc  52.  0. 0 / 52.  0. 0
[2012-01-08 22:49:10,653] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) [mp3 @ 0x10a2560] Invalid size in frame , skipping the rest of tag.
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) [mp3 @ 0x10a2560] max_analyze_duration reached
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) Input #0, mp3, from '/mnt/raid/Media-joris/Muziek/Atmosphere/God Loves Ugly/01 Onemosphere.mp3':
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   Metadata:
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     title           : Onemosphere
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     artist          : Atmosphere
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     track           : 1/18
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     album           : God Loves Ugly
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     disc            : 0/0
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     date            : 2002-06-11
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     genre           : Hip-Hop
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     MusicBrainz Album Type: album
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     MusicBrainz Album Artist Id: ef954679-5ee7-4016-acef-7ac71f2fa3d8
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     MusicBrainz Artist Id: ef954679-5ee7-4016-acef-7ac71f2fa3d8
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     album_artist    : Atmosphere
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     TLEN            : 137093
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     TCMP            : 0
[2012-01-08 22:49:10,677] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     publisher       : Fat Beats Records
[2012-01-08 22:49:10,678] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     encoded_by      : LUSH
[2012-01-08 22:49:10,678] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     MusicBrainz Album Id: a4dd0a2c-085e-4797-b8a1-d9fd7c19a2b4
[2012-01-08 22:49:10,678] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     TBPM            : 0
[2012-01-08 22:49:10,678] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   Duration: 00:02:17.14, start: 0.000000, bitrate: 320 kb/s
[2012-01-08 22:49:10,678] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/s
[2012-01-08 22:49:10,682] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) Output #0, au, to 'pipe:':
[2012-01-08 22:49:10,682] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   Metadata:
[2012-01-08 22:49:10,682] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     title           : Onemosphere
[2012-01-08 22:49:10,682] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     artist          : Atmosphere
[2012-01-08 22:49:10,682] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     track           : 1/18
[2012-01-08 22:49:10,682] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     album           : God Loves Ugly
[2012-01-08 22:49:10,682] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     disc            : 0/0
[2012-01-08 22:49:10,682] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     date            : 2002-06-11
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     genre           : Hip-Hop
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     MusicBrainz Album Type: album
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     MusicBrainz Album Artist Id: ef954679-5ee7-4016-acef-7ac71f2fa3d8
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     MusicBrainz Artist Id: ef954679-5ee7-4016-acef-7ac71f2fa3d8
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     album_artist    : Atmosphere
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     TLEN            : 137093
[2012-01-08 22:49:10,683] DEBUG JukeboxService - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@61b4607f
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     TCMP            : 0
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     publisher       : Fat Beats Records
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     encoded_by      : LUSH
[2012-01-08 22:49:10,683] INFO JukeboxService - admin starting jukebox for "God Loves Ugly/01 Onemosphere.mp3"
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     MusicBrainz Album Id: a4dd0a2c-085e-4797-b8a1-d9fd7c19a2b4
[2012-01-08 22:49:10,683] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     TBPM            : 0
[2012-01-08 22:49:10,684] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     encoder         : Lavf53.2.0
[2012-01-08 22:49:10,684] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)     Stream #0.0: Audio: pcm_s16be, 44100 Hz, stereo, s16, 1411 kb/s
[2012-01-08 22:49:10,684] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) Stream mapping:
[2012-01-08 22:49:10,685] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg)   Stream #0.0 -> #0.0
[2012-01-08 22:49:10,686] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) Press ctrl-c to stop encoding
[2012-01-08 22:51:26,892] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) size=   23625kB time=137.14 bitrate=1411.2kbits/s   
[2012-01-08 22:51:26,893] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/ffmpeg) video:0kB audio:23625kB global headers:0kB muxing overhead 0.000099%
[2012-01-08 22:51:27,389] DEBUG JukeboxService - Closed line com.sun.media.sound.DirectAudioDevice$DirectSDL@61b4607f
[2012-01-08 22:51:27,389] INFO JukeboxService - admin stopping jukebox for "God Loves Ugly/01 Onemosphere.mp3"

Re: Jukebox really not working for me on ubuntu server 11.10

PostPosted: Sun Jan 08, 2012 11:19 pm
by kleverbear
After updating java did you reboot. Its a common issue with Ubuntu that is stops SS from working correctly usually a couple reboots fixes that issue.

Re: Jukebox really not working for me on ubuntu server 11.10

PostPosted: Mon Jan 09, 2012 1:51 pm
by joris
Thanks for responding Kleverbear. I am a noob on linux and espcially with regards to java, but how would several reboots be different from one reboot? I have seen magic before on my ubuntu box, so it could be true, but I just don't understand how it would make a difference...

Anyway, I fixed it!!!
I followed this blog post: http://tarsos.0110.be/artikels/lees/Pul ... _on_Ubuntu
My problem could have be related to java not playing nice with pulse audio and other applications (xbmc?), although I am not entirely sure...

For future reference and for other people with the same problem I quote the blog here:

This article describes how to make sun-java6 play nice with the PulseAudio sound sytem on Ubuntu with an x64 processor architecture. With some changes the method should also work with other operating systems and other platforms.

The default way sun-java6 operates with respect to sound on Ubuntu is, well unrespectfull. When playing audio it claims an audio device, which then can not be used any more by other applications trying to access the same device. This is far from ideal. Also changing audio interfaces (by e.g. plugging in a USB audio interface) goes wrong most of the time.

These problems are addressed by PulseAudio and there is a way to make sun-java6 aware of PulseAudio on Ubuntu. The OpenJDK does this automatically but it has some other, unrelated, issues. If you want to use PulseAudio with java6 on Ubuntu x64 you need copy pulse-java.jar and platform dependent libpulse-java.so file to correct JVM directories. To make it easy you can execute these commands:


Code: Select all
wget http://tarsos.0110.be/attachment/cons/255/libpulse-java.so
sudo cp libpulse-java.so /usr/lib/jvm/java-6-sun/jre/lib/amd64

wget http://tarsos.0110.be/attachment/cons/256/pulse-java.jar
sudo cp pulse-java.jar /usr/lib/jvm/java-6-sun/jre/lib/ext


From this moment on the “PulseAudio Mixer” is available for Java applications. Sharing, switching and assigning audio devices to Java programs is as a result smooth. To use the PulseAudio Mixer by default you need to change sound.properties which can be found at /usr/lib/jvm/java-6-sun/jre/lib/sound.properties. Details can be found at: http://www.mail-archive.com/universe-bu ... 46425.html


Copying the files above and a sound.properties file with this seems to turn java6 jdk pulseaudio aware:


Code: Select all
# OpenJDK on Ubuntu is configured to use PulseAudio by default
javax.sound.sampled.Clip=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.Port=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.SourceDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
javax.sound.sampled.TargetDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider