Subsonic plugin

Discuss third-party additions, plugins and translations for PS3 Media Server

Subsonic plugin

Postby SharkHunter » Wed Oct 26, 2011 7:15 pm

Hi all (again),

It been so long ago so now I made a new plugin. I had a long discussion with myself and finally got to the conclusion that it was easier to make a new dedicated plugin then to try and squeeze it in to Channels. So here it is the PMS plugin to enable you to access Subsonic servers. Subsonic? Whats this? If you don't know what Subsonic is have a look here http://subsonic.org/pages/index.jsp in short it is a piece of software that allows you to share your (mostly) music everywhere in a controlled manner.

So this sounds cool right? So how do you activate the PMS Subsonic plugin? Simply download the file (unpack the zip) and dump in the plugins directory. Now you need to perform two separate configuration steps:

1) To your PMS.conf add a line subsonic.servers = name1,url1 name2,url2 ...namen,urln. You replace name1...n with some nice name (any string will do this is what will be shown in XMB) for example Bobs and the url1..n is the url to the server for example http://your-server/

2) To the PMS.cred (if you don't have this file, if you run SHB you do, just creat a new file in the sam dir as PMS.conf) add one per server of format subsonic.name=usr,pwd
where name is replaced with the nameform the server config in the PMS.conf. Make sure that you spell it correctly, it is case sensitive (that is Bob is not the same as bob) and usr is the username on the server and pwd is the password.



And thats is! Now just start/restart the PMS and all your servers will be found at your root level. Note that the plugin will add the word "Subsonic" to the name of your server (so it will read "Bobs Subsonic" on the XMB). Currently only music is supported and only mp3s.

Download from here https://github.com/SharkHunter/Subsonic/downloads

/SharkHunter
Last edited by SharkHunter on Mon Nov 21, 2011 8:50 pm, edited 2 times in total.
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Subsonic plugin

Postby bobo972 » Fri Nov 11, 2011 9:16 am

Hi sharkhunter
i'm trying your subsonic plugin, but i have a issue.
I followed your instructions for installation, Subsonic appears in XBM but don't find any song.
Tnx for any suggestion.

Regards
sudo apt-get remove --purge Silvio Berlusconi*
bobo972
 
Posts: 4
Joined: Fri Nov 11, 2011 9:06 am

Re: Subsonic plugin

Postby SharkHunter » Fri Nov 11, 2011 4:55 pm

Which render are you using? If you use a PS3 or Bravia have you navigated in to the "Audio" folder?
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Subsonic plugin

Postby donniezazen » Sat Nov 12, 2011 8:45 pm

bobo972 wrote:Hi sharkhunter
i'm trying your subsonic plugin, but i have a issue.
I followed your instructions for installation, Subsonic appears in XBM but don't find any song.
Tnx for any suggestion.

Regards


I was going to post samething. I can't see any songs.
Amor cuerdo, no es Amor.
donniezazen
 
Posts: 13
Joined: Mon Nov 07, 2011 10:49 pm

Re: Subsonic plugin

Postby SharkHunter » Sat Nov 12, 2011 9:26 pm

Have you configured the passwords and everything? Pls enclose your PMS.conf and debug.log files...
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Subsonic plugin

Postby bobo972 » Sun Nov 13, 2011 12:52 pm

This is my PSM.conf

Code: Select all
thumbnails = true
image_thumbnails = true
uuid = c25e3118-ca26-35b8-9429-9dcd30d1386e
folders = /media/dati/Serie_tv,/media/dati/Ps3Server
maxvideobuffer = 600
mencoder_disablesubs = false
mencoder_mux_compatible = true
use_mplayer_for_video_thumbs = true
tsmuxer_mux_all_audiotracks = false
maximumbitrate = 0
subsonic.servers = bobo,192.168.0.4:8081
nbcores = 6
audiobitrate = 576


and this is Debug.log

Code: Select all
[main] INFO  14:45:57.363 Starting PS3 Media Server 1.50.0
[main] INFO  14:45:57.365 by shagrath / 2008-2011
[main] INFO  14:45:57.365 http://ps3mediaserver.org
[main] INFO  14:45:57.365 http://code.google.com/p/ps3mediaserver
[main] INFO  14:45:57.365 http://ps3mediaserver.blogspot.com
[main] INFO  14:45:57.366
[main] INFO  14:45:57.366 Java: 1.6.0_26-Sun Microsystems Inc.
[main] INFO  14:45:57.366 OS: Linux amd64 3.0.0-12-generic
[main] INFO  14:45:57.366 Encoding: UTF-8
[main] INFO  14:45:57.366 Working directory: /home/bobo/pms-linux-1.50.0
[main] INFO  14:45:57.389 Temp folder: /tmp/ps3mediaserver
[main] INFO  14:45:57.390 Logging config file: /home/bobo/pms-linux-1.50.0/logback.xml
[main] INFO  14:45:57.390 debug.log: /home/bobo/pms-linux-1.50.0/debug.log
[main] INFO  14:45:57.390
[main] INFO  14:45:57.391 Profile directory: /home/bobo/.config/PMS
[main] INFO  14:45:57.391 Profile path: /home/bobo/.config/PMS/PMS.conf
[main] INFO  14:45:57.391 Profile status: rw
[main] INFO  14:45:57.392 Profile name: bobo-kubuntu
[main] INFO  14:45:57.392
[main] WARN  14:45:57.483 Error loading libzen: Unable to load library 'zen': libzen.so: cannot open shared object file: No such file or directory
[main] INFO  14:45:57.485 Loading MediaInfo library
[main] INFO  14:45:57.492 Error loading MediaInfo library: Unable to load library 'mediainfo': libmediainfo.so: cannot open shared object file: No such file or directory
[main] INFO  14:45:57.493 Make sure you have libmediainfo and libzen installed
[main] INFO  14:45:57.493 The server will now use the less accurate ffmpeg parsing method
[main] INFO  14:45:57.498 Loading renderer configurations from /home/bobo/pms-linux-1.50.0/renderers
[main] INFO  14:45:57.499 Loading configuration file: Samsung.conf
[main] INFO  14:45:57.517 Loading configuration file: XBOX360.conf
[main] INFO  14:45:57.529 Loading configuration file: N900.conf
[main] INFO  14:45:57.546 Loading configuration file: SonyBluray.conf
[main] INFO  14:45:57.554 Loading configuration file: Bravia4500.conf
[main] INFO  14:45:57.562 Loading configuration file: Android.conf
[main] INFO  14:45:57.567 Loading configuration file: PopcornHour.conf
[main] INFO  14:45:57.571 Loading configuration file: Philips.conf
[main] INFO  14:45:57.576 Loading configuration file: FreeboxHD.conf
[main] INFO  14:45:57.578 Loading configuration file: FreecomMusicPal.conf
[main] INFO  14:45:57.579 Loading configuration file: PS3.conf
[main] INFO  14:45:57.582 Loading configuration file: Panasonic.conf
[main] INFO  14:45:57.585 Loading configuration file: Streamium.conf
[main] INFO  14:45:57.586 Loading configuration file: XBMC.conf
[main] INFO  14:45:57.589 Loading configuration file: Kuro.conf
[main] INFO  14:45:57.595 Loading configuration file: Bravia5500.conf
[main] INFO  14:45:57.598 Loading configuration file: WDTVLive.conf
[main] INFO  14:45:57.599 Loading configuration file: Showtime3.conf
[main] INFO  14:45:57.602 Loading configuration file: WMP.conf
[main] INFO  14:45:57.607 Loading configuration file: Realtek.conf
[main] INFO  14:45:57.611 Loading configuration file: BraviaEX.conf
[main] INFO  14:45:57.615 Loading configuration file: AirPlayer.conf
[main] INFO  14:45:57.620 Loading configuration file: iPad-iPhone.conf
[main] INFO  14:45:57.625 Checking MPlayer font cache. It can take a minute or so.
[main] DEBUG 14:45:57.626 launching: mplayer
[main] INFO  14:45:58.375 Done!
[main] INFO  14:45:58.446 Searching for plugins in /home/bobo/pms-linux-1.50.0/plugins
[main] INFO  14:45:58.477 Found plugin: com.sharkhunter.subsonic.SubPlug
[main] INFO  14:45:58.525 Starting Subsonic 0.11
[main] INFO  14:45:58.527 Registering transcoding engine: FFmpeg Audio
[main] INFO  14:45:58.545 Registering transcoding engine: MEncoder
[main] INFO  14:45:58.546 Registering transcoding engine: MPlayer Audio
[main] INFO  14:45:58.547 Registering transcoding engine: MEncoder Web
[main] INFO  14:45:58.547 Registering transcoding engine: MPlayer Video Dump
[main] INFO  14:45:58.548 Registering transcoding engine: MPlayer Web
[main] INFO  14:45:58.550 Registering transcoding engine: tsMuxeR
[main] INFO  14:45:58.551 Registering transcoding engine: Audio High Fidelity
[main] INFO  14:45:58.551 Registering transcoding engine: VLC Audio Streaming
[main] INFO  14:45:58.552 Registering transcoding engine: VLC Video Streaming
[main] INFO  14:45:58.552 Registering transcoding engine: Raws Thumbnailer
[main] INFO  14:45:58.638 Scanning network interface eth0 (eth0)
[main] INFO  14:45:58.639 Using address /192.168.0.4 found on network interface: name:eth0 (eth0)
[main] INFO  14:45:58.639 Created socket: /192.168.0.4:5001
[main] DEBUG 14:45:58.742 Sending ALIVE...
[main] INFO  14:45:58.744 Using the following UUID configured in PMS.conf: c25e3118-ca26-35b8-9429-9dcd30d1386e
[New I/O server worker #1-1] INFO  14:46:02.397 No IP filter specified, access granted to /192.168.0.5
[main] INFO  14:46:03.930 The server should now appear on your renderer
[New I/O server worker #1-1] INFO  14:46:07.433 Renderer Playstation 3 found on this address: 192.168.0.5
[pool-3-thread-1] DEBUG 14:46:07.464 Starting ping -c 3 -s 64000 192.168.0.5
[pool-3-thread-1] DEBUG 14:46:07.489 Unix process ID (ping): 6080
[Thread-11] DEBUG 14:46:09.464 Stopping Unix process 6080: ping
[pool-3-thread-1] INFO  14:46:09.467 Address /192.168.0.5 has an estimated network speed of: 85 Mb/s
[Thread-9] DEBUG 14:46:13.928 Sending ALIVE...
[Thread-9] DEBUG 14:46:39.453 Sending ALIVE...


In PSM.conf i try to set the server url using also my http:// xxxx.subsonic.org but i can't see any song.
Ciao
sudo apt-get remove --purge Silvio Berlusconi*
bobo972
 
Posts: 4
Joined: Fri Nov 11, 2011 9:06 am

Re: Subsonic plugin

Postby SharkHunter » Sun Nov 13, 2011 5:57 pm

bobo972 wrote:This is my PSM.conf

Code: Select all
thumbnails = true
image_thumbnails = true
uuid = c25e3118-ca26-35b8-9429-9dcd30d1386e
folders = /media/dati/Serie_tv,/media/dati/Ps3Server
maxvideobuffer = 600
mencoder_disablesubs = false
mencoder_mux_compatible = true
use_mplayer_for_video_thumbs = true
tsmuxer_mux_all_audiotracks = false
maximumbitrate = 0
subsonic.servers = bobo,192.168.0.4:8081
nbcores = 6
audiobitrate = 576


In PSM.conf i try to set the server url using also my http:// xxxx.subsonic.org but i can't see any song.
Ciao


Hi,

First I suspect you'll need to make the address look like http://xxxxxxxxx (the plugin will append /api (or whatever) to the end).
Second you'll need to add "cred.path=xxxxxx" where xxxx is the location of your PMS.cred file. Like this
Code: Select all
cred.path = C:\\ProgramData\\PMS-SHB\\PMS.cred


And then to that file (if it doesn't exists create it) add
Code: Select all
subsonic.bobo=yourname,yourpwd
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Subsonic plugin

Postby bobo972 » Sun Nov 13, 2011 10:51 pm

ok, i added the location of my PMS.cred file and now the plugin work perfectly.
This is my working PSM.conf. I'm using linux.
Code: Select all
thumbnails = true
image_thumbnails = true
uuid = c25e3118-ca26-35b8-9429-9dcd30d1386e
folders = /media/dati/Serie_tv,/media/dati/Ps3Server
maxvideobuffer = 600
mencoder_disablesubs = false
mencoder_mux_compatible = true
use_mplayer_for_video_thumbs = true
tsmuxer_mux_all_audiotracks = false
maximumbitrate = 0
subsonic.servers = bobo,http://192.168.0.4:8081
cred.path = /home/bobo/.config/PMS/PMS.cred
nbcores = 6
audiobitrate = 576


Thx.
Ciao
sudo apt-get remove --purge Silvio Berlusconi*
bobo972
 
Posts: 4
Joined: Fri Nov 11, 2011 9:06 am

Re: Subsonic plugin

Postby bobo972 » Mon Nov 14, 2011 10:14 am

I'm sorry but i have another problem: now i see my mp3 files on ps3, but if i can't play them. The ps3 give me an error:file type not supported.
sudo apt-get remove --purge Silvio Berlusconi*
bobo972
 
Posts: 4
Joined: Fri Nov 11, 2011 9:06 am

Re: Subsonic plugin

Postby SharkHunter » Mon Nov 14, 2011 12:08 pm

Make sure you are in the "Audio" folder.
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Next

Return to Additions and Plugins

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest