Author Topic: Subsonic 4.6 Plugin for unRAID 5b11+  (Read 9785 times)

Offline publicENEMY

  • Full Member
  • ***
  • Posts: 153
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #45 on: April 06, 2012, 07:23:29 PM »
when i restart my server, subsonic is not active. i have to manually enable subsonic in the setting page.

how can i auto enable subsonic every time my server starts?

thanks.

am i the only one having problem autostarting subsonic?

Offline MyKroFt

  • Sr. Member
  • ****
  • Posts: 358
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #46 on: April 07, 2012, 05:18:36 AM »
I cant even get it to start.... :(
unRAID Server Pro V5 RC11 | Norco 4220 Rackmount Chasis | ASUS M3N72-D, BIOS REV 0603 | AMD Athlon 64 AM3 | 6GB RAM | OCZ-ZX850W 80P GOLD | 2x Supermicro SAS-AOC-SASLP-MV8 | 16G USB Boot Drive | 256G SSD Cache Drive (Speed!) | Total Space Availble - 24TB
Running : SimpleFeatures • APCUpsd • Sickbeard • SabNzbd • DropBox • CouchPotato • Lampp/NewzNab+

Offline publicENEMY

  • Full Member
  • ***
  • Posts: 153
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #47 on: April 07, 2012, 10:24:50 AM »
i can play mp3 but flac doesnt work. in the setting, i see "Notice: LAME does not appear to be installed.
Click Help button for more information.". i install subsonic using the plg from this thread. are there extra steps needs to be taken? i also install ps3media server, if that matters.

thanks.

Offline anonomouse

  • Member
  • **
  • Posts: 20
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #48 on: April 07, 2012, 07:25:05 PM »
when i restart my server, subsonic is not active. i have to manually enable subsonic in the setting page.

how can i auto enable subsonic every time my server starts?

thanks.

am i the only one having problem autostarting subsonic?

Automatic start after restart or cold boot not working for me either,, if I am away from home teamviewer to pc from phone is my current fix, not the best but it works
*Tower 900* unRAID Server Plus, Version 5.0-beta14 • ASUS M2N-SLI DELUXE • AMD Kuma 7750 • 1G ddr2 800 x4 • parity Hitachi 2G • data disks x3 Hitachi 2G • 1x WDC 750G • 1x Seagate Barracuda 320G • cache 1x Seagate Barracuda 7200 160G • flash Lexar FireFly 2G and of course all housed in an Antec 900

Offline publicENEMY

  • Full Member
  • ***
  • Posts: 153
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #49 on: April 07, 2012, 08:50:14 PM »
I upgraded the ffmpeg packages to 0.9 which now allows me to play video via subsonic but gives a different error for the flac or m4a transcoding

There's a known issue with the latest Subsonic version not correctly transcoding flac using the default ffmpeg transcoding config.  There are some documented ways around this on the subsonic forums where you use a two phase transcode for flac.

I got it to work by doing the following;

On the transcode page there should already be two transcode entries.  The first one "mp3 audio", I removed the portion "flac" from the "convert from" section, leaving everything else the same and created a new transcode entry;

"Name"
Code: [Select]
mp3 audio2"Convert From"
Code: [Select]
flac"Convert To"
Code: [Select]
mp3"Step 1"
Code: [Select]
ffmpeg -i %s -v 0 -f wav -"Step 2"
Code: [Select]
lame -V 0 --tt %t --ta %a --tl %l -S --resample 44.1 - -
Seemed to work when I tested it with a few flac files.  I think there's some issue with the two step process not working well with the jukebox function(?), but to be honest I don't do much other than use Subsonic via an iPad app and occasional mkv transcode.  I'd be interested to know if it works for more people than just me.

Incidentally, I've worked out all the necesary packages for getting 4.6 Subsonic to play audio and video.  I didn't want to install too much as I also run AirVideo and so wanted to understand what packages were needed rather than install the full mencoder stuff as in my view there's always a danger of package version mismatches when running too many things that use the same binaries/libs.

All the packages I've installed together with a copy of the 4.6 subsonic tar file and also a script I quickly threw together which I use to install are on my dropbox - https://www.dropbox.com/sh/n3txaphjh79svq3/6X9eVBTSzT  I'm not currently using the plugin, instead I just have all the packages in my /boot/packages directory, manually call the script from my "go" file and if I want to stop/start, I do it via command line in the usual way.  eg. /etc/rc.d/rc.subsonic stop|start.  My copy of subsonic runs from cache drive, so after first untar'ing the subsonic file and getting things working, I don't worry about things surviving a reboot other than to reinstall the packages.  I'm sure it could probably be wrapped into ajax's plugin.

i updated all available packages in subsonic plg and configure your 2 step flac transcoding and can confirm flac now works.

Offline rocketpants

  • Member
  • **
  • Posts: 7
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #50 on: April 09, 2012, 06:26:12 PM »
am i the only one having problem autostarting subsonic?

I'm also not getting an auto-start.  I ssh in and start manually if I am at a PC - but if I am using my phone I'm stuffed.

Offline ajax3712

  • Full Member
  • ***
  • Posts: 149
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #51 on: April 09, 2012, 08:53:51 PM »
I'm also not getting an auto-start.  I ssh in and start manually if I am at a PC - but if I am using my phone I'm stuffed.

Can you send me the outputs of the following:

Code: [Select]
cat /boot/config/plugins/subsonic/subsonic.cfg

Code: [Select]
cat /usr/local/emhttp/plugins/subsonic/event/disks_mounted
[code]
unRAID Pro 5.0b14 • Biostar A760G M2+ • 2.8GHz AMD Athlon II X4 630 • 650W Corsair 650HX • 2x2GB Crucial DDR2 800

Offline MyKroFt

  • Sr. Member
  • ****
  • Posts: 358
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #52 on: April 09, 2012, 09:59:00 PM »
subsonic.cfg
Code: [Select]
#subsonic configuration
service="enable"
expected_version="4.6"
SUBSONIC_HOME="/mnt/cache/.subsonic"
SUBSONIC_HOST="0.0.0.0"
SUBSONIC_PORT="4040"
SUBSONIC_CONTEXT_PATH="/"
SUBSONIC_MAX_MEMORY="100"
use_beta_versions="0"

disks_mounted
Code: [Select]
#!/bin/bash
source /boot/config/plugins/subsonic/subsonic.cfg

if [ $service = "enable" ]; then
        php /usr/local/emhttp/plugins/subsonic/subsonic_update.php "cmd=autostart"
fi

After a reboot - enabled setting is always no....

Myk

unRAID Server Pro V5 RC11 | Norco 4220 Rackmount Chasis | ASUS M3N72-D, BIOS REV 0603 | AMD Athlon 64 AM3 | 6GB RAM | OCZ-ZX850W 80P GOLD | 2x Supermicro SAS-AOC-SASLP-MV8 | 16G USB Boot Drive | 256G SSD Cache Drive (Speed!) | Total Space Availble - 24TB
Running : SimpleFeatures • APCUpsd • Sickbeard • SabNzbd • DropBox • CouchPotato • Lampp/NewzNab+

Offline publicENEMY

  • Full Member
  • ***
  • Posts: 153
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #53 on: April 09, 2012, 11:54:15 PM »
Here.

Code: [Select]
root@Tower:~# cat /boot/config/plugins/subsonic/subsonic.cfg
#subsonic configuration
service="enable"
expected_version="4.6"
SUBSONIC_HOME="/mnt/cache/.subsonic"
SUBSONIC_HOST="0.0.0.0"
SUBSONIC_PORT="4040"
SUBSONIC_CONTEXT_PATH="/"
SUBSONIC_MAX_MEMORY="100"
use_beta_versions="1"
root@Tower:~#

Code: [Select]
root@Tower:~# cat /usr/local/emhttp/plugins/subsonic/event/disks_mounted
#!/bin/bash
source /boot/config/plugins/subsonic/subsonic.cfg

if [ $service = "enable" ]; then
        php /usr/local/emhttp/plugins/subsonic/subsonic_update.php "cmd=autostar
t"
fi
root@Tower:~#

by the way, i install subsonic into a different location(if that matters). to cache drive, to be exact.
thanks.
« Last Edit: April 10, 2012, 12:03:26 AM by publicENEMY »

Offline ajax3712

  • Full Member
  • ***
  • Posts: 149
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #54 on: April 10, 2012, 06:37:19 AM »
Ok.  I think I know what might be causing this.  Hopefully, I'll have a fix for the reboot issue shortly.  If you guys don't mind, I might PM you guys a specific build to try out later today/tonight...

thx!
-alex
unRAID Pro 5.0b14 • Biostar A760G M2+ • 2.8GHz AMD Athlon II X4 630 • 650W Corsair 650HX • 2x2GB Crucial DDR2 800

Offline Swixxy

  • Member
  • **
  • Posts: 69
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #55 on: April 18, 2012, 01:09:00 AM »
Seems like its coming along nicely! Does this have support for conversion of video files as of yet? I use subsonic when away from home in hotels and so on to watch dvds and things through mybsubsonic so its a rather big thing in my usage. Im currently using the other subsonic script released on these forums, however a plugin is a lot cleaner and nicer!

Good work on the project anyhow! I realize obviously the majority or subsonic usage is todo with audio files, so not having video support as of yet is notva major issue, however if you can try to fit it in (if its not already done) if its not too much hassle id apreciate it immemsely amd im sure many others world too.

Still, keep up the great work! Truely a. Great asset to the unraid community

Offline anonomouse

  • Member
  • **
  • Posts: 20
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #56 on: April 23, 2012, 04:39:05 PM »
Does this have support for conversion of video files as of yet?
yes, mkv files at least,, i watched one last night
*Tower 900* unRAID Server Plus, Version 5.0-beta14 • ASUS M2N-SLI DELUXE • AMD Kuma 7750 • 1G ddr2 800 x4 • parity Hitachi 2G • data disks x3 Hitachi 2G • 1x WDC 750G • 1x Seagate Barracuda 320G • cache 1x Seagate Barracuda 7200 160G • flash Lexar FireFly 2G and of course all housed in an Antec 900

Offline stuzor

  • Member
  • **
  • Posts: 7
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #57 on: April 26, 2012, 02:59:41 PM »
Seems like its coming along nicely! Does this have support for conversion of video files as of yet? I use subsonic when away from home in hotels and so on to watch dvds and things through mybsubsonic so its a rather big thing in my usage. Im currently using the other subsonic script released on these forums, however a plugin is a lot cleaner and nicer!

Good work on the project anyhow! I realize obviously the majority or subsonic usage is todo with audio files, so not having video support as of yet is notva major issue, however if you can try to fit it in (if its not already done) if its not too much hassle id apreciate it immemsely amd im sure many others world too.

Still, keep up the great work! Truely a. Great asset to the unraid community


Video is working for me after installing the package that thraxis posted. The link is posted below. Just copy it to your box and run installpkg "package name". After this all of my videos seem to be working. The scrubbing is working as well which is great because it didn't work on my windows box I had subsonic running on before. Thanks for the link Thraxis!

ffmpeg link from Thraxis = http://alien.slackbook.org/slackbuilds/ffmpeg/pkg/13.37/ffmpeg-0.9-i486-1alien.tgz

Offline Swixxy

  • Member
  • **
  • Posts: 69
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #58 on: April 28, 2012, 05:58:37 PM »
Ah yes, after installing that it seems to be running flawlessly ! (Video & audio)

Bravo!  ;D

A minor thing, but i suppose i should mention it, quite a lot of mods exist for subsonic (adding features, adjusting site layout and so on) is there a way to have the plugin use a different supplied .war file instead of downloading the original from subsonic ? (Possibly an extra option inside the config to point to a .war file on the flash drive)

This is probably a very minor point, it just allows people to add support for things like HTML5 video and such, as well as upgrading the Sharing feature to have a higher share bitrate (Which is what i personally use it for) so the quality isn't awful when sharing something.


Not sure how many other people that have subsonic on their unraid boxes do this though? It could be a minor point, but the mod community on the subsonic boards is pretty thriving.

Offline botez

  • Member
  • **
  • Posts: 49
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #59 on: May 07, 2012, 10:56:58 PM »
Was there ever a fix released for the reboot issue?  I'm experiencing the same problem and was hoping there was a fix available...