Installing Subsonic in OpenElec?

Need help? Post your questions here.

Moderator: moderators

Installing Subsonic in OpenElec?

Postby jm9000 » Wed Nov 28, 2012 5:28 pm

I'm having a bit of trouble doing this. I'm new to OpenElec. I've managed to install Sub on a previous linux server but I'm having trouble this time. Does anyone have any ideas? I'm not entirely sure how to install Java on this platform.
jm9000
 
Posts: 1
Joined: Wed Nov 28, 2012 5:26 pm

Re: Installing Subsonic in OpenElec?

Postby moosefist » Sat Jan 26, 2013 4:41 pm

I am trying to get this done too. I haven;t a clue where to start. [url]openelec.tv[/url] is a custom appliance version of XBMC based on linux. Its not debian, ubuntu or any mainstream build and we don't have access to the package managers that would make this easy. Is there a guide on how to manually install everything from Java to Subsonic?
moosefist
 
Posts: 5
Joined: Sat Jan 26, 2013 4:37 pm

Re: Installing Subsonic in OpenElec?

Postby dik23 » Sun Jan 27, 2013 3:08 am

There's a subsonic plugin for XBMC.
Run it on a separate machine and plugin.
SS4.6 running on Lucid32
dik23
 
Posts: 27
Joined: Sun Feb 05, 2012 6:22 pm

Re: Installing Subsonic in OpenElec?

Postby moosefist » Sun Jan 27, 2013 3:33 am

The xbmc plugin is to connect to the server as a client. I need to run it as a server on the machine...
Last edited by moosefist on Sun Jan 27, 2013 3:58 pm, edited 1 time in total.
moosefist
 
Posts: 5
Joined: Sat Jan 26, 2013 4:37 pm

Re: Installing Subsonic in OpenElec?

Postby BKKKPewsey » Sun Jan 27, 2013 2:28 pm

moosefist wrote: I need to room it as a server I'm the machine...


Even Google cannot translate that :?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Installing Subsonic in OpenElec?

Postby moosefist » Sun Jan 27, 2013 4:01 pm

Arrgh, stupid swype text (edited original posting). What I was trying to explain is that the XBMC plugin http://forum.xbmc.org/showthread.php?tid=99513 is only good to connect to a server for browsing or playing music as a client. I actually want to run the server on the the HTPC running XBMC.
moosefist
 
Posts: 5
Joined: Sat Jan 26, 2013 4:37 pm

Re: Installing Subsonic in OpenElec?

Postby moosefist » Tue Feb 05, 2013 7:31 pm

Anyone able to help?
moosefist
 
Posts: 5
Joined: Sat Jan 26, 2013 4:37 pm

Re: Installing Subsonic in OpenElec?

Postby jthg » Sun May 19, 2013 1:57 am

Yeah, I got it working today... I think. There is a caveat that subsonic is running at root... but, I reckon since all of the other services are doing the same, what could possibly go wrong? ;-) Also, I would rather use the openjdk jre, but it wasn't clear to me how to aquire it.

Also, I noticed the question was asked over at http://openelec.tv/forum/128-addons/621 ... rver-addon as well.

The general idea is to download java, download subsonic, configure the environment a bit. Reboot. Simple.

So, I was hoping openelec was keeping a history of my command line... guess not, so, please bear with my commands. they are from memory and might not be 100% accurate. YMMV, read them and make sure they make sense.

INSTALL JAVA
Go to java.com and find your install of JRE 7. Then, with that URL,
Code: Select all
mkdir java
wget <java_jre_url>
tar xvzf <downloaded file>
ln -s jre1.7.0_21 jre

Note that the download is going to download to a non-friendly name. That's fine. You can hit tab to autocomplete the file name

INSTALL SUBSONIC
Now, go to subsonic and get the URL for the the Standalone from http://www.subsonic.org/pages/download.jsp .
Code: Select all
cd ~
mkdir subsonic
cd subsonic
mkdir data
mkdir app
cd app
wget <subsonic_url>
tar xvzf <subsonic_tar_ball>

Easy, right?

SUBSONIC START
Code: Select all
cd ~/subsonic
vi startSubsonic.sh


And, make it these contents:
Code: Select all
#!/bin/sh

export JAVA_HOME=/storage/java/jre

/storage/subsonic/app/subsonic.sh --home=/storage/subsonic/data \
--host=192.168.1.71 --max-memory=512 \
--pidfile=/var/run/subsonic.pid \
--default-music-folder=/storage/music \
--default-podcast-folder=/storage/music/podcast \
--default-playlist-folder=/storage/playlist

Obviously, change it to whatever your system is... I have it bind to my wireless adapter, you can remove that if you want. See ~/subsonic/app/subsonic.sh for docs.

Finally, make it executeable:
Code: Select all
chmod +x subsonic.sh


Now, lets test it: ./startSubsonic.sh

If everything is working, subsonic will have started. check it at the :4040 address.

Subsonic seems to be confused about ffmpeg, so do this:
Code: Select all
cd ~/subsonic/data/transcode/
ln -s /usr/bin/ffmpeg ffmpeg


GET SUBSONIC TO START AT BOOT
Code: Select all
vi ~/.config/autostart.sh

And, insert these contents
Code: Select all
# cat ~/.config/autostart.sh
#!/bin/sh

# Subsonic
(
   # sleep 10 sec to be ensure network is started
   usleep 10000000

   /storage/subsonic/startSubsonic.sh
)&


and, finally make it executable
Code: Select all
chmod +x ~/.config/autostart.sh


And, give the system a reboot and 30 seconds for subsonic to come up! You should be in business!
jthg
 
Posts: 8
Joined: Sat Apr 27, 2013 3:14 pm

Re: Installing Subsonic in OpenElec?

Postby RemkoM » Mon Oct 28, 2013 9:45 pm

tnx jthg for your guide, it did both help me and confuse me. :) i like to tell my process after trying it ( im a noob so its always had to read what is literally, and what is subjectively with linux and such.

my tips:
if you use SSH, use both Putty ( or alike) AND Filezilla! the later will help with moving stuff and seeing what is happening! you can very easily change permissions and so on.

1. make a folder called: java, put jre-7u45-linux-x64.tar.gz into java folder (FileZilla)

2. cd java, type: "tar zxvf jre-7u45-linux-x64.tar.gz" (putty) You should now have a folder in java called: jre1.7.0_45

3. so the same with subsonic: make a folder called: subsonic put your downloaded subsonic standalone.tar.gz in it (FileZilla)

4. cd into subsonic en do a: nano subsonic.sh (putty)


now all i added was: export JAVA_HOME=/storage/java/jre1.7.0_45 i think your code of subsonic.sh got all mangeld or something, it was very confusing to say the least.
This is what my subsonic.sh looked like:

Code: Select all
#!/bin/sh

###################################################################################
# Shell script for starting Subsonic.  See http://subsonic.org.
#
# Author: Sindre Mehus
###################################################################################

export JAVA_HOME=/storage/java/jre1.7.0_45

SUBSONIC_HOME=/storage/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=0
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=150
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/storage/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/storage/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/storage/playlists


* Mind you, that java version numbers can change, edit accordingly, i also took a 64bit version, you should take the one that matches your openelec.

i wrote this because i think it helps the novice users to hear it told different (i always helps me) i in no way think this is a better guide, its complimentary.
RemkoM
 
Posts: 22
Joined: Tue Nov 20, 2012 11:11 am

Re: Installing Subsonic in OpenElec?

Postby cellulit » Sun Dec 08, 2013 1:11 pm

Great guide. All works fine and slow as expected ;) All except transcoding. I did ffmpeg linking to the transcoders folder, as suggested above, however I can see it's going in loops:
1. Got range: Range[0,99999999999]
2. X is listening to Y
3. Starting transcoder <path + options>

All happens within 3-4 secs and then 10-15 sec break and again same loop. No audible output.
Any idea what could go wrong? Thanks!
.cell
cellulit
 
Posts: 37
Joined: Tue Apr 22, 2008 8:47 am

Transcoding

Postby spookybathtub » Mon Mar 31, 2014 1:15 am

I've got Subsonic 4.9 working on OpenElec, but it doesn't work with transcoding nor jukebox.

@jthg you mention symlinking ffmpeg from /usr/bin/ffmpeg, but I don't have that in my OpenElec installation. What version are you running?
I downloaded ffmpeg from the OpenElec Unofficial add-on repo, but it doesn't support encoding.
Code: Select all
# ffmpeg -formats
ffmpeg version 1.2.5 Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb  4 2014 01:22:32 with gcc 4.8.2 (GCC)
  configuration: --prefix=/usr --cpu=arm1176jzf-s --arch=arm --enable-cross-compile --cross-prefix=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi- --sysroot=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/armv6zk-openelec-linux-gnueabi/sysroot --sysinclude=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/armv6zk-openelec-linux-gnueabi/sysroot/usr/include --target-os=linux --nm=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi-nm --ar=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi-ar --as=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi-gcc --cc=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi-gcc --ld=/home/openelec-unofficial/OpenELEC.tv/b  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
File formats:
D. = Demuxing supported
.E = Muxing supported
--
D  4xm             4X Technologies
D  aac             raw ADTS AAC (Advanced Audio Coding)
D  ac3             raw AC-3
D  act             ACT Voice file format
D  adf             Artworx Data Format
  E adts            ADTS AAC (Advanced Audio Coding)
D  adx             CRI ADX
D  aea             MD STUDIO audio
D  afc             AFC
D  aiff            Audio IFF
D  alaw            PCM A-law
D  amr             3GPP AMR
D  anm             Deluxe Paint Animation
D  apc             CRYO APC
D  ape             Monkey's Audio
D  aqtitle         AQTitle subtitles
D  asf             ASF (Advanced / Active Streaming Format)
D  ass             SSA (SubStation Alpha) subtitle
D  ast             AST (Audio Stream)
D  au              Sun AU
D  avi             AVI (Audio Video Interleaved)
D  avr             AVR (Audio Visual Research)
D  avs             AVS
D  bethsoftvid     Bethesda Softworks VID
D  bfi             Brute Force & Ignorance
D  bin             Binary text
D  bink            Bink
D  bit             G.729 BIT file format
D  bmv             Discworld II BMV
D  brstm           BRSTM (Binary Revolution Stream)
D  c93             Interplay C93
D  caf             Apple CAF (Core Audio Format)
D  cavsvideo       raw Chinese AVS (Audio Video Standard)
D  cdg             CD Graphics
D  cdxl            Commodore CDXL video
D  concat          Virtual concatenation script
D  daud            D-Cinema audio
D  dfa             Chronomaster DFA
D  dirac           raw Dirac
D  dnxhd           raw DNxHD (SMPTE VC-3)
D  dsicin          Delphine Software International CIN
D  dts             raw DTS
D  dtshd           raw DTS-HD
D  dv              DV (Digital Video)
D  dxa             DXA
D  ea              Electronic Arts Multimedia
D  ea_cdata        Electronic Arts cdata
D  eac3            raw E-AC-3
D  epaf            Ensoniq Paris Audio File
D  f32be           PCM 32-bit floating-point big-endian
D  f32le           PCM 32-bit floating-point little-endian
D  f64be           PCM 64-bit floating-point big-endian
D  f64le           PCM 64-bit floating-point little-endian
D  ffm             FFM (FFserver live feed)
D  ffmetadata      FFmpeg metadata in text
D  film_cpk        Sega FILM / CPK
D  filmstrip       Adobe Filmstrip
D  flac            raw FLAC
D  flic            FLI/FLC/FLX animation
D  flv             FLV (Flash Video)
D  frm             Megalux Frame
D  g722            raw G.722
D  g723_1          G.723.1
D  g729            G.729 raw format demuxer
D  gif             CompuServe Graphics Interchange Format (GIF)
D  gsm             raw GSM
D  gxf             GXF (General eXchange Format)
D  h261            raw H.261
D  h263            raw H.263
D  h264            raw H.264 video
D  hls,applehttp   Apple HTTP Live Streaming
D  ico             Microsoft Windows ICO
D  idcin           id Cinematic
D  idf             iCE Draw File
D  iff             IFF (Interchange File Format)
D  ilbc            iLBC storage
D  image2          image2 sequence
D  image2pipe      piped image2 sequence
D  ingenient       raw Ingenient MJPEG
D  ipmovie         Interplay MVE
D  ircam           Berkeley/IRCAM/CARL Sound Format
D  iss             Funcom ISS
D  iv8             IndigoVision 8000 video
D  ivf             On2 IVF
D  jacosub         JACOsub subtitle format
D  jv              Bitmap Brothers JV
D  latm            raw LOAS/LATM
D  lmlm4           raw lmlm4
D  loas            LOAS AudioSyncStream
D  lvf             LVF
D  lxf             VR native stream (LXF)
D  m4v             raw MPEG-4 video
D  matroska,webm   Matroska / WebM
D  mgsts           Metal Gear Solid: The Twin Snakes
D  microdvd        MicroDVD subtitle format
D  mjpeg           raw MJPEG video
D  mlp             raw MLP
D  mm              American Laser Games MM
D  mmf             Yamaha SMAF
D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV
D  mp3             MP2/3 (MPEG audio layer 2/3)
D  mpc             Musepack
D  mpc8            Musepack SV8
D  mpeg            MPEG-PS (MPEG-2 Program Stream)
D  mpegts          MPEG-TS (MPEG-2 Transport Stream)
D  mpegtsraw       raw MPEG-TS (MPEG-2 Transport Stream)
D  mpegvideo       raw MPEG video
D  mpl2            MPL2 subtitles
D  mpsub           MPlayer subtitles
D  msnwctcp        MSN TCP Webcam stream
D  mtv             MTV
D  mulaw           PCM mu-law
D  mv              Silicon Graphics Movie
D  mvi             Motion Pixels MVI
D  mxf             MXF (Material eXchange Format)
D  mxg             MxPEG clip
D  nc              NC camera feed
D  nistsphere      NIST SPeech HEader REsources
D  nsv             Nullsoft Streaming Video
D  nut             NUT
D  nuv             NuppelVideo
DE ogg             Ogg
D  oma             Sony OpenMG audio
D  paf             Amazing Studio Packed Animation File
D  pjs             PJS (Phoenix Japanimation Society) subtitles
D  pmp             Playstation Portable PMP
D  psxstr          Sony Playstation STR
D  pva             TechnoTrend PVA
D  pvf             PVF (Portable Voice Format)
D  qcp             QCP
D  r3d             REDCODE R3D
D  rawvideo        raw video
D  realtext        RealText subtitle format
D  rl2             RL2
D  rm              RealMedia
D  roq             id RoQ
D  rpl             RPL / ARMovie
D  rso             Lego Mindstorms RSO
D  rtp             RTP input
D  rtsp            RTSP input
D  s16be           PCM signed 16-bit big-endian
D  s16le           PCM signed 16-bit little-endian
D  s24be           PCM signed 24-bit big-endian
D  s24le           PCM signed 24-bit little-endian
D  s32be           PCM signed 32-bit big-endian
D  s32le           PCM signed 32-bit little-endian
D  s8              PCM signed 8-bit
D  sami            SAMI subtitle format
D  sap             SAP input
D  sbg             SBaGen binaural beats script
D  sdp             SDP
D  shn             raw Shorten
D  siff            Beam Software SIFF
D  smjpeg          Loki SDL MJPEG
D  smk             Smacker
D  smush           LucasArts Smush
D  sol             Sierra SOL
D  sox             SoX native
DE spdif           IEC 61937 (used on S/PDIF - IEC958)
D  srt             SubRip subtitle
D  subviewer       SubViewer subtitle format
D  subviewer1      SubViewer v1 subtitle format
D  swf             SWF (ShockWave Flash)
D  tak             raw TAK
D  tedcaptions     TED Talks captions
D  thp             THP
D  tiertexseq      Tiertex Limited SEQ
D  tmv             8088flex TMV
D  truehd          raw TrueHD
D  tta             TTA (True Audio)
D  tty             Tele-typewriter
D  txd             Renderware TeXture Dictionary
D  u16be           PCM unsigned 16-bit big-endian
D  u16le           PCM unsigned 16-bit little-endian
D  u24be           PCM unsigned 24-bit big-endian
D  u24le           PCM unsigned 24-bit little-endian
D  u32be           PCM unsigned 32-bit big-endian
D  u32le           PCM unsigned 32-bit little-endian
D  u8              PCM unsigned 8-bit
D  vc1             raw VC-1
D  vc1test         VC-1 test bitstream
D  vivo            Vivo
D  vmd             Sierra VMD
D  vobsub          VobSub subtitle format
D  voc             Creative Voice
D  vplayer         VPlayer subtitles
D  vqf             Nippon Telegraph and Telephone Corporation (NTT) TwinVQ
D  w64             Sony Wave64
D  wav             WAV / WAVE (Waveform Audio)
D  wc3movie        Wing Commander III movie
D  webvtt          WebVTT subtitle
D  wsaud           Westwood Studios audio
D  wsvqa           Westwood Studios VQA
D  wtv             Windows Television (WTV)
D  wv              WavPack
D  xa              Maxis XA
D  xbin            eXtended BINary text (XBIN)
D  xmv             Microsoft XMV
D  xwma            Microsoft xWMA
D  yop             Psygnosis YOP
D  yuv4mpegpipe    YUV4MPEG pipe

Therefore, when Subsonic tries to use ffmpeg to transcode something, it always fails.

Jukebox mode also doesn't work, and I suspect it's related to the transcoding. This is what happens when I try to play using Jukebox:
Code: Select all
[2014-03-30 18:05:08,269] DEBUG TranscodeInputStream - Starting transcoder: [/storage/subsonic/data/transcode/ffmpeg] [-ss] [0] [-i] [/storage/p2p-music/A Tribe Called Quest - The Love Movement [V0]/03. Da Booty.mp3] [-v] [0] [-f] [au] [-]
[2014-03-30 18:07:53,129] ERROR JukeboxService - Error in jukebox: java.io.EOFException
java.io.EOFException

Even though I have transcoding disabled for the Jukebox player. I'm stumped.
spookybathtub
 
Posts: 110
Joined: Thu Oct 07, 2010 7:13 am

Re: Installing Subsonic in OpenElec?

Postby speculardecay » Sat Jan 17, 2015 8:34 pm

Hello,
Thanks for the tutorial, installation was a breeze on Openelec 5!
Did anyone manage to make subsonic recognize files with accented characters (french accents for example)?
Thanks!
speculardecay
 
Posts: 1
Joined: Sat Jan 17, 2015 8:31 pm

Re: Installing Subsonic in OpenElec?

Postby patocox » Sun Apr 05, 2015 7:57 pm

I followed the instructions but get the following error (from the log) when running the subsonic.sh..
Code: Select all
./subsonic.sh: line 126: /storage/java/jre1.7.0_75/bin/java: not found



That directory and file are definitely there. My subsonic.sh (top part):
Code: Select all
#!/bin/sh

###################################################################################
# Shell script for starting Subsonic.  See http://subsonic.org.
#
# Author: Sindre Mehus
###################################################################################

export JAVA_HOME=/storage/java/jre1.7.0_75



SUBSONIC_HOME=/storage/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=0
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=150
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/storage/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/storage/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/storage/playlists


As you can see, the directory/file are there:

Code: Select all
OpenELEC:~/java/jre1.7.0_75/bin # ls
ControlPanel  java_vm       jcontrol      orbd          policytool    rmiregistry   tnameserv
java          javaws        keytool       pack200       rmid          servertool    unpack200
OpenELEC:~/java/jre1.7.0_75/bin # pwd
/storage/java/jre1.7.0_75/bin



Appreciate any help!

-Pat
patocox
 
Posts: 3
Joined: Fri Jul 09, 2010 2:19 am

Re: Installing Subsonic in OpenElec?

Postby patocox » Mon Apr 06, 2015 1:28 am

D'oh - wrong version on JRE - needed x64. Works fine.
patocox
 
Posts: 3
Joined: Fri Jul 09, 2010 2:19 am

Re: Installing Subsonic in OpenElec?

Postby iisaphd » Fri May 08, 2015 10:15 pm

Any ideas on how to get jukebox mode to work? When I run the audioDevList java program it doesn't return any devices.
iisaphd
 
Posts: 3
Joined: Fri May 08, 2015 10:13 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 23 guests