Jukebox Mode in Raspberry PI

Need help? Post your questions here.

Moderator: moderators

Jukebox Mode in Raspberry PI

Postby marcosab1991 » Tue Mar 10, 2015 11:54 pm

Hi everybody

I have my subsonic server hosted in a rasparem pi model B, and everything is going fine unlless the jukebox mode, which seem to be a usual problem for other versions althought i thought this was corrected in this final version anyone knows how to solve this?
I already dig a lot in the internet about this and nothing works.

ps: sorry for my english but i'm not a native fluent

Log Info:

[10-03-2015 21:04:02 UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[10-03-2015 21:04:02 UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /var/subsonic/transcode/ffmpeg: 1: /var/subsonic/transcode/ffmpeg: Syntax error: "(" unexpected
[10-03-2015 21:04:03 UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
[10-03-2015 21:04:23 UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[10-03-2015 21:04:23 UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /var/subsonic/transcode/ffmpeg: 1: /var/subsonic/transcode/ffmpeg: Syntax error: "(" unexpected
[10-03-2015 21:04:24 UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
[10-03-2015 21:04:33 UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[10-03-2015 21:04:33 UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /var/subsonic/transcode/ffmpeg: 1: /var/subsonic/transcode/ffmpeg: Syntax error: "(" unexpected
[10-03-2015 21:04:33 UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
[10-03-2015 21:05:08 UTC] INFO PlayQueueInputStream Marcosab1991 listening to "Flutronix/08-Life-Lines-1.mp3"
[10-03-2015 21:06:23 UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[10-03-2015 21:06:23 UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /var/subsonic/transcode/ffmpeg: 1: /var/subsonic/transcode/ffmpeg: Syntax error: "(" unexpected
[10-03-2015 21:06:23 UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
[10-03-2015 21:06:24 UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[10-03-2015 21:06:24 UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /var/subsonic/transcode/ffmpeg: 1: /var/subsonic/transcode/ffmpeg: Syntax error: "(" unexpected
[10-03-2015 21:06:24 UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
[10-03-2015 21:06:27 UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[10-03-2015 21:06:27 UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /var/subsonic/transcode/ffmpeg: 1: /var/subsonic/transcode/ffmpeg: Syntax error: "(" unexpected
[10-03-2015 21:06:27 UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
Last edited by marcosab1991 on Wed Mar 11, 2015 12:03 am, edited 1 time in total.
marcosab1991
 
Posts: 9
Joined: Tue Mar 10, 2015 4:49 pm

Re: Jukebox Mode in Raspberry PI

Postby mitrailer » Wed Mar 11, 2015 1:03 am

You ever try this tutorial for properly configuring jukebox in a Raspberry http://mj2p.co.uk/a-raspberry-pi-subsonic-jukebox-using-java-8/ (go to almost the end of the tutorial)
mitrailer
 
Posts: 138
Joined: Fri May 09, 2014 12:35 am

Re: Jukebox Mode in Raspberry PI

Postby marcosab1991 » Wed Mar 11, 2015 1:42 am

Gives me an error when executing tar to get java :S

"
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now"
marcosab1991
 
Posts: 9
Joined: Tue Mar 10, 2015 4:49 pm

Re: Jukebox Mode in Raspberry PI

Postby mitrailer » Wed Mar 11, 2015 1:47 am

Type this in terminal to install java
Code: Select all
sudo apt-get update && sudo apt-get install oracle-java7-jdk


EDIT: I forgot to mention that Java installation procedure of the tutorial is out of date
mitrailer
 
Posts: 138
Joined: Fri May 09, 2014 12:35 am

Re: Jukebox Mode in Raspberry PI

Postby marcosab1991 » Wed Mar 11, 2015 1:54 am

Ok thanks....
since the java 8 is already installed is this process the same?

"The system now knows where Java is installed but we will need to let subsonic know where to find it. To do this we update the JAVA_HOME environment variable which can be set in your environment file.

sudo nano /etc/environment and add the line
JAVA_HOME="/opt/jdk1.8.0"

You also need to point your bash console to the new environment variable.
nano ~/.bashrc add the lines
export JAVA_HOME="/opt/jdk1.8.0"
export PATH=$PATH:$JAVA_HOME/bin"
marcosab1991
 
Posts: 9
Joined: Tue Mar 10, 2015 4:49 pm

Re: Jukebox Mode in Raspberry PI

Postby mitrailer » Wed Mar 11, 2015 2:26 am

O boy!, sorry. The steps you mention are NO longer required. Since java is installed via repositorie the steps you mention are configured automatically

EDIT: I should mention that you have to skip all the java steps. Sorry mate
mitrailer
 
Posts: 138
Joined: Fri May 09, 2014 12:35 am

Re: Jukebox Mode in Raspberry PI

Postby marcosab1991 » Wed Mar 11, 2015 2:36 am

as i suspected... i already had seen that post online and tryied to do almost all the steps... altought i made a mistake putting -Djavax.sound.sampled.SourceDataLine=#ALSA \ after verbose:gc \ and not before as it says in the how to....

Already made the change lets see if it makes any difference

Edit: no doesn't work.... now it gives an error and doesn't start subsonic

"Error: Could not find or load main class"


Edit: Solve the last Error but still no jukebox mode working

NEW LOG

[3/11/15 11:44:00 PM UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[3/11/15 11:44:05 PM UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream mapping:
[3/11/15 11:44:05 PM UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.0 -> #0.0
[3/11/15 11:44:05 PM UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Press ctrl-c to stop encoding
[3/11/15 11:44:06 PM UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
[3/11/15 11:44:06 PM UTC] INFO InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) size= 50kB time=0.29 bitrate=1411.2kbits/s
[3/11/15 11:44:08 PM UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[3/11/15 11:44:08 PM UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
[3/11/15 11:45:49 PM UTC] INFO PlayQueueInputStream Marcosab1991 listening to "Flutronix/08-Life-Lines-1.mp3"
[3/11/15 11:46:03 PM UTC] INFO TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/var/music/Flutronix/08-Life-Lines-1.mp3] [-map] [0:0] [-v] [0] [-f] [s16be] [-]
[3/11/15 11:46:03 PM UTC] ERROR JukeboxService Error in jukebox: javax.sound.sampled.LineUnavailableException
marcosab1991
 
Posts: 9
Joined: Tue Mar 10, 2015 4:49 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests