Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PS3 Media Server Plugin for unRAID 5b11+ (Installer)

Featured Replies

New to unRAID and just getting everything set up....  My first post, in fact  ;D

 

ajax,

 

First of all, thanks for putting this together, it was very helpful in getting me up and running.

 

Don't know if you're still supporting the this plg script for the ps3 media server, but if so, I have a few fixes for you for errors/warnings I was getting when installing/hitting "Apply" on the PS3 Media Server Settings page.  Here is the output of diff for the changes I made to ps3mediaserver-1.40.0-i486-1.5aj.plg:

 

57c57

< /usr/local/sbin/installplg /boot/config/plugins/jre-6u27-i586-1aj.plg

---

> installplg /boot/config/plugins/jre-6u27-i586-1aj.plg

142c142

< pkill -f pms.jar

---

> kill -15 `ps aux | grep pms.jar | head -1 | awk '{ print $2 }'`

169c169,170

< if (file_exists($bkup_file)){

---

> $res = exec("find $bkup_file");

> if ($res == $bkup_file){

633c634

< exec_log("/usr/local/sbin/installplg /boot/config/plugins/jre-6u27-i586-1aj.plg");

---

> exec_log("installplg /boot/config/plugins/jre-6u20-i586-1aj.plg");

699,700c700

< $cmd .= " 2>&1"; # stderr with stdout so we get all output from exec

< exec($cmd, $output);

---

>    $results = exec($cmd);

702,705c702,703

< write_log("\nCMD: ".$cmd." \nCMD Output:");

< foreach ($output as $lineofoutput) {

< write_log($lineofoutput);

< }

---

> $results = "\nCMD: $cmd \nResults: $results";

> write_log($results);

 

In addition to this, I was getting some errors about pango-querymodules-32: being unable to load libXft.so.2.  Downloading the libXft package from here:  http://pkgs.org/slackware-13.1/slackware-i486/libXft-2.1.14-i486-1.txz.html and adding it to the /boot/config/packages/mencoder-packages.tgz made this go away.

 

Now I'm getting no more warnings/errors during install or restart and my PS3 Media Server is up and running.  Let me know if you have any questions.

 

 

  • Replies 123
  • Views 36.1k
  • Created
  • Last Reply

Hi,

 

New to unraid, but I've been using the Playstation Media Server on Windows to stream to my Samsung, PS3 & XBMC running on my mac.  Just wondering if there are any plans to update this plugin to the new 1.5 version that was recently released?  http://www.ps3mediaserver.org/  I've been using the beta for a while and it has been stable, but it's now moved to an official release.

 

Also QNAP rolled a WebUI into their PS3MS package allowing settings to be changed via a web browser.  I'm not sure how they did it, or if it would run on unraid, but it might be interesting to check it out.  http://forum.qnap.com/viewtopic.php?f=212&t=45264  It would certainly be of benefit to users of unraid that run a headless server.

  • Author

Hi all

 

Sorry for the silence. I'm on vacation now so I'm not in front of anything usable to make updates until after Christmas.

 

JWR, thanks for the edits. I'm more than happy to incorporate any helpful edits. I'll take a look ASAP, so thanks again for them. I don't know anything about the pango-query modules, however, so I'll have to look at exactly what they do and why ps3ms needs them.

 

Lacehim, I do intend to update it to 1.50, and I have it currently running on my VM unRAID test server since its been out, but I haven't had a chance to thoroughly research and test (e.g. They switched to using 7u1 as their JRE and have made a few more package changes).  My test server is limited and I've been meaning to make some more under the hood changes with the plugin, but have been busy with work before the vacation, so that's the real holdup...

 

Thx!

  • Author

Lacehim,

 

Do you have a qnap?  Or more to the point, a better description/screenshots of the webgui? I'm curious what settings have been exposed.

 

Thx!

ajax3712, no worries.  1.40 is working fine and streaming great.  Enjoy your vacation, you've worked hard on this plug in to make it so easy to use! :)

 

I don't have QNAP, came over from a Buffalo Linkstation LS-CHL which was just too basic for my needs, and lacked any tweakability.  I just happened across the WebUI for PMS as I was searching running PMS on unraid.  I think the QNAP files can be unpacked so that might shead some light as to how they did it.  Happy to help anyway I can.

  • 2 weeks later...

I think I may have mucked things up royally.

 

I am running 5.14.  No cache drive at present.

I changed the PS3M install dir to /mnt/disk1/apps//ps3mediaserver/ps3mediaserver    Note the double // after apps.

Obviously wrong..

 

It started it's install .. and many errors.  Mostly  

'tar: mencoder-packages: Cannot change ownership to uid 501, gid 20: Operation not permitted"  

'ln: creating sym link '/sur/lib/libartsc.so.0': file exists

'etc/rc.d/rc.ps3m..: line 31 Kill (2731) no such process.  

 

I restated unraid and reinstalled to /mnt/disk1/apps/ps3mediaserver/ps3mediaserver  

But it still throws a lot of errors.

 

I'm not sure where these errors are logged.. I looked in syslog and demsg.. no msgs there.

 

I get these messages now with each restart

The  unRaid PS3 Media player webpage says it's started.  . But it doesn't show as a source Windows Media player

 

See attachment for screenshot

 

I'd like to erase and re-do..  Where do I start?

 

edit - Added screenshot of gui

ps3err1.png.81d540af7c58baaeea175b05505787aa.png

ps32.png.5b3c3f43163c7859c748e528363ac671.png

ps3-web.png.e6e1a7374eae57a007f3dda0b63354ee.png

  • Author

Zoltran,

 

You should be able to ignore the mencoder-related errors. I originally created the mencoder package on my Mac and the permissions are set up a bit differently there. You're not the first person to be confused by this so I'll try to address that in a future version of the plugin.

 

Also, before the process starts, I try to kill any existing PS3MS process. If none is running, you should get that "error".

 

If those are the only errors then you should be okay. Have you tried starting the plugin and seeing if it shows up on your XMB?

zoltran,

 

I'm pretty new to all this but learning fast I can tell you.  I've clean installed a few times due to a few issues that seemed to have revolved around using an NTFS Apps drive, and did it this way.  Stop PS3MS in settings, then remove ps3mediaserver folder from your Tower/flash/config/ folder and remove the ps3mediaserver folder from your Apps drive.  reboot and it will reinstall.

 

If your only worried about the // issue, I just changed my install directory to /mnt/disk/Apps/ps3ms

 

Works fine so far, and also I found that Windows Media player was pretty useless at showing if it's running properly.  It could see PS3MS Tower, but it looked like there where no files, but when I use my Wii, PS3, TV or WDLive it was all there and worked just as it did when I ran from my PC with PS3MS.

 

Now I just have to hope this all stays put when I reboot! :)

 

Newbie here trying to install my first Plug-in.  I am getting an error on install saying unable to resolve host dl.dropbox.com.  Seems that the plugin is trying to run but can't connect to dl the needed files.  Any suggestions?

  • Author

Newbie here trying to install my first Plug-in.   I am getting an error on install saying unable to resolve host dl.dropbox.com.   Seems that the plugin is trying to run but can't connect to dl the needed files.  Any suggestions?

 

Is your unraid box connected to the internet?

It is connected to my network, which is on the internet.  I am too new to linux to know how to verify if it is getting access to the web.  Is there a command that i can use to test this?

 

Thanks again.

  • Author

It is connected to my network, which is on the internet.  I am too new to linux to know how to verify if it is getting access to the web.  Is there a command that i can use to test this?

 

Thanks again.

 

From the command line, type in:

 

ping www.google.com

 

you should see lines repeating that look something like this (the actual #s might differ):

 

64 bytes from 74.125.115.105: icmp_seq=1 ttl=252 time=22.298 ms

 

And to stop it, type in "cntrl-z"

 

Let me know :)

 

Thanks!

Comes back unknown host.  For some reason the server doesnt have web access.  I need to solve that!  At least now i know where to start.  :)

OK, having a fixed ip address on the server is great until you change ypur router and forget to update the server ip! I reset to DHCP and web access is restored.  All is well and downloads are progressing.  Thanks again for your help.  You may have solved some other network issues i am having.

Thanks ajax3712 and Lacehim

It does appear to be working fine ..

 

I was also fooled by Windows Media player and Win 7 windows exporer.

They both 'see' the Unraid PS3 Media Server but don't see any media there.

ajax,

 

After playing around some more, here are a some other suggestions.

 

1) In the .plg file, you have:

 

// install all the mencoder files

exec_log("installpkg /boot/packages/mencoder-packages/*.t*z");

 

which will install packages in the order in which the directory lists them.  However, there seems to be some dependency on this order such that simply installing them in list order generates the following in the /var/log/plugins/ps3mediaserver:

 

Executing install script for fontconfig-2.4.2-i486-2.tgz.

/usr/bin/fc-cache: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory

 

My "quick" fix was to change the above script to:

 

// install all the mencoder files

exec_log("installpkg /boot/packages/mencoder-packages/freetype*.txz");

exec_log("installpkg /boot/packages/mencoder-packages/*.t*z");

 

which guarantees freetype is installed before fontconfig.  There's probably a better way to handle this...

 

2) At the top of the PMS.sh, it's useful to add (assuming you're locale is US english):

 

LANG=en_US.UTF-8

export LANG

 

Without this, files or folders that have non-ASCII characters won't show up.  I have quite a collection of French films whose titles have characters like é, ç, è, etc. that weren't showing up until I found this post:

 

http://www.ps3mediaserver.org/forum/viewtopic.php?f=3&t=9205&p=45618#p45618

 

3) You might want to consider adding the rtmpdump package to the mencoder-packages (I used this link: http://pkgs.org/slackware-13.37/slacky-i486/rtmpdump-2.3-i686-1sl.txz.html) to allow for rtmp streams in the WEB.conf.  I tested a few and they worked.

 

--JWR

 

Hello,

I'm hopeing to get a touch of assistance with setting this up. I have worked with Linex once in the past but never a command line only OS. I have tryed useing the link in the original post, but it doesn't start a download of a .plg file it takes me to a XML page and of course rclick and save target saves the XML page. Is this the correct responce or am I supposed to copy and past the information from the XML?

 

Thank you in advance.

Eric

  • Author

You can right click or do a save as. If the download saves with a txt extension, then you can just rename it.

 

Unfortunately, in terms of the command line, I highly recommend that you install it initially using the "installplg..." command from the command prompt (see initial post). The plugin needs to install a bunch of files and do some other actions, and it's easier to notice something go wrong this way.

 

There are some errors you can ignore as they are known issues. You can view the thread for more info, or please feel free to post here if you have any questions or there's any confusion.

 

Thanks!

  • 2 months later...

I think I found a bug? 

 

When I first installed my PS3mediaserver, I set it up to share /mnt/disk1/Downloads, and had everything transcoded.

 

Leter, when I changed to sharing  /mnt/disk1/Movies and /mnt/disk1/TV, and turned off transcoding MKV or avi files, nothing changed, even after restarting the server several times from the http://tower/Settings/ps3mediaserver, or restarting my PS3. (i.e. toggling Enable PS3 Media Server: yes to no and back again a few times)

 

I did notice something strange though. In my updated ps3mediaserver.cfg, I had line like:

folders="/mnt/disk1/Movies, /mnt/disk1/TV"

notranscode="mkv,avi"

 

instead of whats is often shown in the other PS3media thread (http://lime-technology.com/forum/index.php?topic=3072.390):

folders=/mnt/disk1/Movies, /mnt/disk1/TV

notranscode=mkv,avi

 

When I again saved the settings, then quickly opened my ps3mediaserver.cfg files, and removed the offending quotation marks from the shared folders and transcoding options, before the PS3mediasever engine started it finally worked! It seems that the plugin is adding quotation marks, and then PS3mediaserver is not reading the config file properly? Does this make any sense?

Heya all,

 

Ajax...thanks for the great work here!

I've been running unRAID + PS3MS for quite some time, but just recently decided to try and figure out why I could never stream Bluray rips successfully.

I came across this plugin and decided to clear out the old install and give the plugin a go.

 

Currently running unRAID 5.0-beta14, and the plugin installed cleanly.

All my movies are .mkv rips from makemkv.

The good news is that it appears that the Bluray rips are working finally!

The bad news is that SD mkv rips are playing video at about 2x speed while audio is normal speed.

 

any thoughts from anyone?

 

Here's the MediaInfo of one SD MKV that plays x2 video speed:

Complete name                    : \\mediaTOWER\Movies\DVD\Bad Teacher (2011)\Bad Teacher (2011).mkv

Format                          : Matroska

File size                        : 3.63 GiB

Duration                        : 1h 31mn

Overall bit rate                : 5 652 Kbps

Encoded date                    : UTC 2011-11-07 18:22:24

Writing application              : MakeMKV v1.6.16 win(x86-release)

Writing library                  : libmakemkv v1.6.16 (1.2.0/1.1.0) win(x86-release)

 

Video

ID                              : 1

Format                          : MPEG Video

Format version                  : Version 2

Format profile                  : Main@Main

Format settings, BVOP            : No

Format settings, Matrix          : Default

Codec ID                        : V_MPEG2

Codec ID/Info                    : MPEG 1 or 2 Video

Duration                        : 1h 31mn

Bit rate mode                    : Variable

Bit rate                        : 5 091 Kbps

Nominal bit rate                : 9 800 Kbps

Width                            : 720 pixels

Height                          : 480 pixels

Display aspect ratio            : 16:9

Original display aspect ratio    : 16:9

Frame rate                      : 29.970 fps

Standard                        : NTSC

Color space                      : YUV

Chroma subsampling              : 4:2:0

Bit depth                        : 8 bits

Scan type                        : Progressive

Scan order                      : Top Field First

Compression mode                : Lossy

Bits/(Pixel*Frame)              : 0.492

Stream size                      : 3.27 GiB (90%)

Language                        : English

 

Audio

ID                              : 2

Format                          : AC-3

Format/Info                      : Audio Coding 3

Mode extension                  : CM (complete main)

Codec ID                        : A_AC3

Duration                        : 1h 31mn

Bit rate mode                    : Constant

Bit rate                        : 448 Kbps

Channel(s)                      : 6 channels

Channel positions                : Front: L C R, Side: L R, LFE

Sampling rate                    : 48.0 KHz

Bit depth                        : 16 bits

Compression mode                : Lossy

Stream size                      : 295 MiB (8%)

Title                            : 3/2+1

Language                        : English

 

Text

ID                              : 3

Format                          : VobSub

Codec ID                        : S_VOBSUB

Codec ID/Info                    : The same subtitle format used on DVDs

Language                        : English

 

 

And after playing around with a few settings here and there in an attempt to remedy the situation, here's my current PMS.conf:

audiobitrate = 384

audiochannels = 6

autoloadsrt = true

avisynth_convertfps = true

avisynth_script = #AviSynth script is now fully customisable !\u0001#You must use the following variables (\"clip\" being the avisynth variable of the movie):\u0001#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]\u0001#<sub>: insert the complete TextSub/VobSub instruction if there's any detected srt/sub/idx/ass subtitle file\u0001#<moviefilename>: variable of the movie filename, if you want to do all this by yourself\u0001#Be careful, the custom script MUST return the clip object\u0001<movie>\u0001<sub>\u0001return clip

charsetencoding = 850

dvd_isos_thumbnails = true

enable_archive_browsing = true

engines = mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,tsmuxeraudio,vlcvideo,mencoderwebvideo,mplayervideodump,mplayerwebaudio,vlcaudio,ffmpegdvrmsremux,rawthumbs

ffmpeg = -g 1 -qscale 1 -qmin 2

folders = /mnt/user/Movies,/mnt/user/Music,/mnt/user/Pictures,/mnt/user/TV Shows

Showsforcetranscode = wmv,m4v

hidevideosettings = false

hide_transcode_folder = false

hostname = 192.168.1.76

http_engine_v2 = true

iphoto = true

language =

maximumbitrate = 0

maxvideobuffer = 600

mencoder_ass = false

mencoder_ass_margin = 10

mencoder_ass_outline = 1

mencoder_ass_scale = 1.0

mencoder_ass_shadow = 1

mencoder_audiolangs = eng

mencoder_audiosublangs =

mencoder_ass = false

mencoder_disablesubs = true

mencoder_fontconfig = false

mencoder_font =

mencoder_forcefps = false

mencoder_intelligent_sync = true

mencoder_decode =

mencoder_encode = keyint=25:vqscale=1:vqmin=2

mencoder_mt = true

mencoder_mux_compatible = false

mencoder_noass_scale = 3

mencoder_noass_subpos = 2

mencoder_noass_blur = 1

mencoder_noass_outline = 1

mencoder_nooutofsync = true

mencoder_scaler = false

mencoder_scalex = 0

mencoder_scaley = 0

mencoder_subcp = cp1252

mencoder_sublangs =

mencoder_subfribidi = false

mencoder_usepcm = true

mencoder_yadif = false

minimized = true

nbcores = 2

network_interface = eth0

notranscode =

port =

prevents_sleep_mode = true

skiploopfilter = false

thumbnail_seek_pos = 5

thumbnails = true

transcode_block_multiple_connections = false

tsmuxer_forcefps = true

tsmuxer_preremux_ac3 = false

tsmuxer_preremux_pcm = false

turbomode = false

usecache = true

use_mplayer_for_video_thumbs = false

uuid = 23ad1e9e-dc6e-8e88-a29e-0000721c2a53

 

Thanks all!

 

  • Author

When I again saved the settings, then quickly opened my ps3mediaserver.cfg files, and removed the offending quotation marks from the shared folders and transcoding options, before the PS3mediasever engine started it finally worked! It seems that the plugin is adding quotation marks, and then PS3mediaserver is not reading the config file properly? Does this make any sense?

 

hey dnhkng,

 

If you are talking about having modified the /boot/config/plugins/ps3mediaserver/ps3mediaserver.cfg file, I would seriously recommend you taking another look at it and verify that the double-quotes ARE STILL THERE.  Otherwise I make no guarantees whether you will lose those values (or something else bad happening) at next restart or next load of the web GUI settings page.

 

If you're interested why, read on... 

 

The values in the ps3mediaserver.cfg file are config values that are user-configurable via the settings page (or defaulted on your very first install of the plugin).  That file is read upon load by PHP when generating the settings page, using the parse_ini_file function, to display the values in the settings form.  By removing the quotes, you have defined that what the page expects to be string values are instead constants that need to have their values set.  I'm simplifying a bit, but generally speaking, I do not "set" these values anywhere on load after an upgrade or install since on page load, it's supposed to be "read-only".  This may or may not have unintended consequences (which I'm not willing to experiment right now to find out exactly what they may be :)...)

 

Once you save the form, the user-submitted values then get transferred to the appropriate places (e.g. the actual PMS.sh script & the PMS.conf file in the install directory, etc.) in addition to those values being saved back to the ps3mediaserver.cfg for the next time you load the page.  For example, when it gets transferred to the PMS.conf, the "folders" value should no longer have quotes.

 

So long story short, I would recommend you either put the quotes back or load the settings page and verify that your settings are still there and valid and then APPLY your settings to verify that they get saved to the file again (after which I would recommend that you once again check the file to make sure the missing double-quotes didn't muck anything else up).

 

As for why your actions "corrected" an issue for you, I'm curious as well.  Let me know if adding those quotes back break things for you again.  I can certainly try replicating at that point, given my time constraints, if you supply your ps3mediaserver.cfg file.

 

Thanks! 

 

  • Author

The bad news is that SD mkv rips are playing video at about 2x speed while audio is normal speed.

 

ms_1,

 

Do you mind posting the output of this command from the command line:

 

cat /boot/config/plugins/ps3mediaserver/ps3mediaserver.cfg

 

I'm primarily interested in your memory settings.

 

From my limited research on this, it appears that it's either a memory issue (weird, since it's SD) or an issue that was resolved by the latest version (*sigh*, I know...  I've been slacking...)  If it does turn out to be an issue resolved by updating to the newest version, it should give me enough of an incentive to release an updated plugin...

 

thanks!

 

 

Heya ajax,

 

here you go, and thanks a million!

 

root@MediaTower:~# #ps3mediaserver configuration

root@MediaTower:~# SERVICE="enable"

root@MediaTower:~# EXPECTED_VERSION="1.40.0"

root@MediaTower:~# INSTALLDIR="/boot/config/plugins/ps3mediaserver/ps3mediaserver"

root@MediaTower:~# hostname="192.168.1.76"

root@MediaTower:~# network_interface="eth0"

root@MediaTower:~# HEAPMEMORY="1536"

root@MediaTower:~# folders="/mnt/user/Movies,/mnt/user/Music,/mnt/user/Pictures,/mnt/user/TV Shows"

root@MediaTower:~# audiobitrate="384"

root@MediaTower:~# audiochannels="6"

root@MediaTower:~# maximumbitrate="0"

root@MediaTower:~# maxvideobuffer="600"

root@MediaTower:~# nbcores="2"

root@MediaTower:~# notranscode=""

root@MediaTower:~# forcetranscode=""

root@MediaTower:~# use_mplayer_for_video_thumbs="false"

root@MediaTower:~# thumbnail_seek_pos="5"

root@MediaTower:~# uuid="23ad1e9e-dc6e-8e88-a29e-0000721c2a53"

 

Ajax, are you going to update to 1.50.1? Is there a way to update myself?

 

I ask because my PS3 will stream one movie then it crashes and says the files are corrupt or their is an issue with DLNA.  :-[ My hope is that the update will help these issues. If not, then I have to figure out another alternative to unRaid to stream files to the PS3, because this is obviously going to suck if I have to restart the server after every movie I watch.

Ajax

 

Just wanted to say thank you for sharing this with us. I just upgraded to 5beta and this and can now play mp4s without going nuts over transcoding and lipsinc!

 

Thank you

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.