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

Offline anonomouse

  • Member
  • **
  • Posts: 19
Re: Subsonic 4.5 (or 4.6beta2) Plugin for unRAID 5b11+
« Reply #30 on: March 11, 2012, 05:43:39 PM »
Any news on this? I just tried upgrading to 4.6 on my own (Standard upgrade) using the ffmpeg shown above however whenever i click play on a video file it says Video not found or access denied. So i'm assuming its an error with the ffmpeg ?

Music works fine though.

dont know if you worked it out yet or not but "ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -acodec libfaac -v 0 -f flv -"   without the quotes worked for me on my last install
*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 rocketpants

  • Member
  • **
  • Posts: 7
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #31 on: March 11, 2012, 08:20:53 PM »
FYI, update & link posted in the original post...

Just installed the updated plugin and having trouble with transcoding flac and m4a.  mp3 transcoding works perfectly.  Flac and m4a do nothing. I can't find any error messages (but then again I am not sure where I should be looking).

/mnt/cache/.subsonic/transcode is symlinked to /usr/bin/ and the ffmeg binary is in there OK.  I tried copying it to a local transcode directory but no change.  I've kept the default transcode command switches in subsonic itself.

Any hints on what I need to do to get this going (or how I can better trouble shoot and what info would help with a speedy resolution)

Cheers

Offline ajax3712

  • Full Member
  • ***
  • Posts: 149
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #32 on: March 11, 2012, 09:14:58 PM »
Just installed the updated plugin and having trouble with transcoding flac and m4a.  mp3 transcoding works perfectly.  Flac and m4a do nothing. I can't find any error messages (but then again I am not sure where I should be looking).

Can you confirm that the following directory exists:

/boot/packages/mencoder-packages

and that it is filled with ~74 packages?

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

Offline rocketpants

  • Member
  • **
  • Posts: 7
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #33 on: March 12, 2012, 06:51:53 PM »
/boot/packages/mencoder-packages does exist.  Its got 142 items in it, of which 68 are hidden and 74 visible

Offline rocketpants

  • Member
  • **
  • Posts: 7
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #34 on: March 15, 2012, 02:54:56 AM »
Still stumped on this. Any hints on where I can look in logs to find out what is going on?

Offline ajax3712

  • Full Member
  • ***
  • Posts: 149
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #35 on: March 17, 2012, 06:16:00 PM »
Still stumped on this. Any hints on where I can look in logs to find out what is going on?

The subsonic.log is saved in your install directory

I know this will sound like voodoo, but can you try restarting your unRAID server?  I think I was able to replicate this problem when installing on top of a previous install, which means my instructions need a little work in detailing which files to keep/delete.

however, a restart resolved this for me.  after restarting please check to see that the server config options are valid and that you apply any changes...
unRAID Pro 5.0b14 • Biostar A760G M2+ • 2.8GHz AMD Athlon II X4 630 • 650W Corsair 650HX • 2x2GB Crucial DDR2 800

Offline rocketpants

  • Member
  • **
  • Posts: 7
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #36 on: March 18, 2012, 03:39:03 AM »
Restarting didn't fix the problem and server options are valid. 

subsonic.log gives the DEBUG
Code: [Select]
[2012-03-18 18:20:49,954] DEBUG InputStreamReaderThread - (/mnt/cache/.subsonic/transcode/ffmpeg) Encoder (codec id 86017) not found for output stream #0.0
On a related note when I try and play a video file I get the following
Code: [Select]
[2012-03-18 18:32:04,673] DEBUG InputStreamReaderThread - (/mnt/cache/.subsonic/transcode/ffmpeg) Unrecognized option 'preset'
transcoding using lame works fine.

Offline ajax3712

  • Full Member
  • ***
  • Posts: 149
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #37 on: March 18, 2012, 07:53:56 AM »
Restarting didn't fix the problem and server options are valid. 

Can you send me the output of:

Code: [Select]
which ffmpeg

Also, can you try the following:

Code: [Select]
/etc/rc.d/rc.subsonic stop
installpkg /boot/packages/mencoder-package/*.t*z
[code]

Then navigate to your install directory (swap out /path/to/install/directory/ with the install path you specified in the plugin):

[code]
cd /path/to/install/directory/
rm -rf transcode
ln -s /usr/bin/ ./transcode
/etc/rc.d/rc.subsonic start

I'm starting to think this may be a timing issue.  Let me know if this works...
unRAID Pro 5.0b14 • Biostar A760G M2+ • 2.8GHz AMD Athlon II X4 630 • 650W Corsair 650HX • 2x2GB Crucial DDR2 800

Offline thraxis

  • Newbie
  • *
  • Posts: 4
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #38 on: March 18, 2012, 02:20:52 PM »
One issue I found.  The plugin installs 0.6.1 of ffmpeg:

http://alien.slackbook.org/slackbuilds/ffmpeg/pkg/13.1/ffmpeg-0.6.1-i486-1alien.tgz

Which does not support the -preset command that is in the default for the flv/x264 transcode settings.

changing to 0.9 worked "out of the box" for me

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


Offline rocketpants

  • Member
  • **
  • Posts: 7
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #39 on: March 18, 2012, 07:19:35 PM »
Thanks for the efforts guys but still not working.

reinstalling the mencoder-packages and redoing the symlink did not fix the situation.  I got the same errors in the subsonic log as previously.

which ffmpeg points to /usr/bin/ffmpeg

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

Code: [Select]
[2012-03-19 09:53:13,797] INFO PlaylistInputStream - admin listening to "Angus And Julia Stone - Down the way/07 - And The Boys.flac"
[2012-03-19 09:53:13,807] DEBUG TranscodeInputStream - Starting transcoder: [/mnt/cache/.subsonic/transcode/ffmpeg] [-i] [/mnt/user/Music/Angus And Julia Stone/Angus And Julia Stone - Down the way/07 - And The Boys.flac] [-ab] [128k] [-v] [0] [-f] [mp3] [-]
[2012-03-19 09:53:13,810] DEBUG InputStreamReaderThread - (/mnt/cache/.subsonic/transcode/ffmpeg) /mnt/cache/.subsonic/transcode/ffmpeg: /usr/lib/libz.so.1: no version information available (required by /usr/lib/libavcodec.so.53)
[2012-03-19 09:53:43,547] INFO PlaylistInputStream - admin listening to "Oscar + Martin - For You/09 Recognise.m4a"
[2012-03-19 09:53:43,557] DEBUG TranscodeInputStream - Starting transcoder: [/mnt/cache/.subsonic/transcode/ffmpeg] [-i] [/mnt/user/Music/Oscar + Martin/Oscar + Martin - For You/09 Recognise.m4a] [-ab] [128k] [-v] [0] [-f] [mp3] [-]
[2012-03-19 09:53:43,565] DEBUG InputStreamReaderThread - (/mnt/cache/.subsonic/transcode/ffmpeg) /mnt/cache/.subsonic/transcode/ffmpeg: /usr/lib/libz.so.1: no version information available (required by /usr/lib/libavcodec.so.53)

Although the log when I play a video also gives that line about the version
Code: [Select]
[2012-03-19 09:51:36,314] DEBUG TranscodeInputStream - Starting transcoder: [/mnt/cache/.subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/mnt/user/TV/Awake/Season 1/Awake.S01E01.HDTV.x264-LOL.[VTV].mp4] [-async] [1] [-b] [1000k] [-s] [642x360] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-vcodec] [libx264] [-preset] [superfast] [-threads] [0] [-]
[2012-03-19 09:51:36,317] DEBUG InputStreamReaderThread - (/mnt/cache/.subsonic/transcode/ffmpeg) /mnt/cache/.subsonic/transcode/ffmpeg: /usr/lib/libz.so.1: no version information available (required by /usr/lib/libavcodec.so.53)

Offline Lagony

  • Member
  • **
  • Posts: 8
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #40 on: March 21, 2012, 10:08:55 AM »
I'm seeing the exact same behaviour as rocketpants.  My mp3s play just fine, but any flac file fails to play (exact same set of errors).  I also had issues playing any video file until I updated to the newer version of ffmpeg (Thanks thraxis!).

I also noticed that the plg file wasn't referencing the right freetype package (you'll have to excuse the lack of details, as I'm at work currently).  The plg file was looking for freetype.tgz, where the file name in the mencoder folder was freetype-<version>.tgz (I may have the extension wrong, but you should get the idea).

I'm not sure if this has an affect on the install or not, as the next line in the plg file just installs everything in the mencoder folder anyway.

For the little bit of messing around that I've had to do so far, however, this is proving to be a great plugin.  Its my first experience with Subsonic, and I'm liking it so far.  Great work bringing this plugin forward!

Offline publicENEMY

  • Full Member
  • ***
  • Posts: 153
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #41 on: April 05, 2012, 03:00:31 AM »
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.

Offline MyKroFt

  • Sr. Member
  • ****
  • Posts: 358
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #42 on: April 05, 2012, 11:56:36 AM »
Latest from 1st post, running latest beta of unRaid...

when I attempt to start I get a bunch of errors that it is trying to change ownership of the mencoder-packages dir to UID 501 GID 20 and it fails....

I even tried to do it manually and get operation not permitted....

Any suggestions?

Thanks
Myk

btw, exact message:

tar: mencoder-packages: Cannot change ownership to uid 501, guid 20: Operation not permitted
tar: Exiting with failure status due to previous errors

everything in this folder tree is root:root, permissions of 777

« Last Edit: April 05, 2012, 12:00:00 PM by MyKroFt »
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 overbyrn

  • Sr. Member
  • ****
  • Posts: 279
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #43 on: April 05, 2012, 02:51:56 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.

Offline rocketpants

  • Member
  • **
  • Posts: 7
Re: Subsonic 4.6 Plugin for unRAID 5b11+
« Reply #44 on: April 06, 2012, 05:10:34 PM »
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;

Thanks Overbyrn,  The two pass transcoding for flac using ffmpeg 0.9 worked for me.  I also included m4a in the second transcode to get these working as well.
« Last Edit: April 06, 2012, 05:33:49 PM by rocketpants »