October 23, 201114 yr Hello all, I have compiled this plugin based off of the work of a few existing sources. Thanks to the authors/contributers of the wiki article (|http://lime-technology.com/wiki/index.php?title=PS3_Media_Server), forum posts, and the internets and special thanks to SeeDrs for the various plugins he's already created. To install, just download the plg file and copy it to your flash drive into the config/plugins folder. Then reboot your server or run "installplg /boot/config/plugins/ps3mediaserver-1.40.0-i486-1.5aj.plg" (once files are downloaded, subsequent installs on restart should work fine). 2 new icons should appear in the "Network Services" section; Select "PS3 Media Server" to configure... Download: http://dl.dropbox.com/u/2902950/unRAID/ps3mediaserver/ps3mediaserver-1.40.0-i486-1.5aj.plg Upgrade Notes: If upgrading from any previous version (1.0-1.3), please REMOVE the the following file: /boot/packages/mencoder-packages.tgz before running the installplg command. It needs to be re-downloaded and updated the new mencoder-packages has increased to ~48MB (from ~30MB) due to all the MPlayer dependencies Changelog: 1.40.0-1.0 - 20111023 - initial release 1.40.0-1.1 - 20111031 - jre installs using different method that file tag (should address issues on restart); add/edits to user-config variables; other misc. revisions 1.40.0-1.2 - 20111031 - add/edits to user-config variables 1.40.0-1.3 - 20111101 - add/edits to user-config variables; fixed install on restart issue 1.40.0-1.4 - 20111105 - MPlayer now has all the libs to start up w/o error; add/edits to user-config variables 1.40.0-1.5 - 20111105 - fixed link for JRE plugin Notes/Known Issues: This package requires a JRE, so one is automatically downloaded and installed. I've done this by installing another package (you should see a page for it in the main settings screen) during the initial download/file creation process The mencoder-packages successfully installs with some errors due to permissions on some hidden files. This is due to the fact that the archive was created on a mac. It's safe to ignore these errors; a future release will address this. Todo: There are tons of user-defineable values (see /boot/config/plugins/ps3mediaserver/PMS.conf). I'll need to see whether to expose more vars in the form. Suggestions/Request would be much appreciated. Good news is that adding new configs should be pretty easy...
October 25, 201114 yr Hi, firstly, many thanks for getting this started! I just tried to follow the instructions but am getting a bad md5 root@Tower:/boot/config/plugins# installplg /boot/config/plugins/ps3mediaserver-1.40.0-i486-1aj.plg installing plugin: ps3mediaserver-1.40.0-i486-1aj file /boot/config/plugins/jre-6u20-i586-1aj.plg: downloading from http://dl.dropbox.com/u/2902950/unRAID/jre/jre-6u20-i586-1aj.plg ... 2011-10-25 19:44:09 URL:http://dl.dropbox.com/u/2902950/unRAID/jre/jre-6u20-i586-1aj.plg [2156/2156] -> "/boot/config/plugins/jre-6u20-i586-1aj.plg" [1] bad MD5, deleting any ideas?
October 25, 201114 yr Author Actually yes. Apologies... I changed the display name of the JRE plugin (on the Settings page) to JRE (vs "Java Runtime Environment" previously - which was just too long) in the aforementioned file, and I forgot to update the md5 after it changed in this plugin... I've since updated it. Can you redownload and try again? Thanks!
October 25, 201114 yr installled fine and works a treat! Just fired up the in-built media server on my Panasonic TV, it found the PS3 media server on my unraid server and i managed to play some DivX files without any issues! I will try a few other files (mkv etc...) using my actual PS3 tomorrow when I get a moment. But right now this looks great! I'll post more testing results tomorrow. Thanks again
October 28, 201114 yr Great work buddy! Having just heard for PS3 Media Server, the packaged worked great and I was able to get it running and use it on my xbox. Something to note, under the IP address config field, you have a note "enter if you multiple networks (e.g. VPN or Hamachi)". I have Hamachi so I put my virtual IP in there at first, but I couldn't get the server to work, so after switching it to my local IP, it did work. So i'm not sure what your intentions for this were. I also had to change the network_interface part of the config from "en1" to "eth0". I'm not sure if it defaults to that or if something went weird. Thanks again!
October 28, 201114 yr Although MPlayer gets installed, it does not run without error (I started tracking down the missing libraries, but realized that it wanted a bunch of libs dealing with graphics/vga/X Server/etc. In my experience it does not seem necessary to have it running. However, if someone wants to compile a headless version to eliminate this potential issue, that would be awesome. This is the biggest issue I've had with running PS3MS on UnRAID, FFMPEG can't parse all the thumbnails whilst MPlayer can, but given Mplayer can't run yet, it doesn't work... Also, I've spent quite abit of time finding the most up-to-date set of libraries possible. As well as using jre 6u27. See: It should also be noted that in the PMS.sh, you should increase this value (this is with a AMD Athlon X2 @ 3GHz and 4GB memory: # Execute the JVM exec "$JAVA" $JAVA_OPTS -Xmx1536M -Djava.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -jar "$PMS_JAR" "$@" To something larger than whatever default is [736?], this allows the slower machines to transcode to the full 600MB buffer, not limit itself to 2MB which makes playback basically useless [mainly with 1080p content] because it can't buffer enough before it's requested.
October 28, 201114 yr Author Something to note, under the IP address config field, you have a note "enter if you multiple networks (e.g. VPN or Hamachi)". I have Hamachi so I put my virtual IP in there at first, but I couldn't get the server to work, so after switching it to my local IP, it did work. So i'm not sure what your intentions for this were. I also had to change the network_interface part of the config from "en1" to "eth0". I'm not sure if it defaults to that or if something went weird. Sorry for the confusion. PS3 Media Server attempts to find the correct network, but can get confused if you have multiple networks. I too have Hamachi installed and since it tried to attach itself to Hamachi's IP, I had to tell it to use the "main" IP address of the server. I agree the wording of that field is not too clear, so I will attempt to reword it, possibly see if I can detect the IP myself and populate it, at least initially, that way. I'll also look into "en1" - this is probably a mistake on my part. chances are that you didn't need to modify that once the IP was correctly configured, but it's better to eliminate any possible errors. For what it's worth, the new 1.50beta of PS3 Media Server includes a changelog item of "Improved network interface choosing algorithm now skips virtual interfaces", so this may not be an issue for too much longer Thanks for the heads up and once again sorry for the confusion...
October 28, 201114 yr Author This is the biggest issue I've had with running PS3MS on UnRAID, FFMPEG can't parse all the thumbnails whilst MPlayer can, but given Mplayer can't run yet, it doesn't work... I have set the flag for using mplayer to generate thumbnails to false for this reason. I can't say that I've come across a video file that it couldn't generate a thumbnail for using its default method, but admittedly almost all of my movies are AVI and MP4's... If this is an issue, I can look into it further, but I'm not sure I'm the best person to do that. That being said, thanks for the list of packages. At first glance, it appears that for the most part, the list included in my plugin is a superset of yours, but I'll compare and make sure to include any missing ones (e.g. the libjpeg-8a). I really appreciate it. It should also be noted that in the PMS.sh, you should increase this value (this is with a AMD Athlon X2 @ 3GHz and 4GB memory: # Execute the JVM exec "$JAVA" $JAVA_OPTS -Xmx1536M -Djava.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -jar "$PMS_JAR" "$@" To something larger than whatever default is [736?], this allows the slower machines to transcode to the full 600MB buffer, not limit itself to 2MB which makes playback basically useless [mainly with 1080p content] because it can't buffer enough before it's requested. I considered making memory usage user-configurable values and but for the sake of effort , I did not. I guess I should now. (FYI, the default is 768). Here's what the PMS.sh is using currently: exec "$JAVA" $JAVA_OPTS -Xmx768M -Xss1024k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -classpath "$PMS_JARS" net.pms.PMS "$@"
October 28, 201114 yr Something to note, under the IP address config field, you have a note "enter if you multiple networks (e.g. VPN or Hamachi)". I have Hamachi so I put my virtual IP in there at first, but I couldn't get the server to work, so after switching it to my local IP, it did work. So i'm not sure what your intentions for this were. I also had to change the network_interface part of the config from "en1" to "eth0". I'm not sure if it defaults to that or if something went weird. Sorry for the confusion. PS3 Media Server attempts to find the correct network, but can get confused if you have multiple networks. I too have Hamachi installed and since it tried to attach itself to Hamachi's IP, I had to tell it to use the "main" IP address of the server. I agree the wording of that field is not too clear, so I will attempt to reword it, possibly see if I can detect the IP myself and populate it, at least initially, that way. I'll also look into "en1" - this is probably a mistake on my part. chances are that you didn't need to modify that once the IP was correctly configured, but it's better to eliminate any possible errors. For what it's worth, the new 1.50beta of PS3 Media Server includes a changelog item of "Improved network interface choosing algorithm now skips virtual interfaces", so this may not be an issue for too much longer Thanks for the heads up and once again sorry for the confusion... No worries, I know that the plugin is just getting off the ground and that its a work in progress so there will be some bugs. I'll keep checking back to see how progress is going and will test out the new versions as you push them out. Thanks again for the work!
October 31, 201114 yr Author Hello all, I have uploaded a new version that should hopefully resolve some misc. bugs and also adds/updates a few new user-defineable configuration variables (memory & network-related). Please see original post for download link and please note the one-time Upgrade Note. thx!
October 31, 201114 yr Thanks! This looks promising. So far: Rebooting the server did nothing for me, but installplg did. populating the folders seems slow, hopefully it is only this way the 1st time. I shared 2 folders, but only 1 showed up. Neither .sub or .srt seems to display with subtitles Avi plays fine, so does raw blu-ray folders. I haven't been able to get a mkv file to play yet. Anyone else have similar experiences?
November 1, 201114 yr Author populating the folders seems slow, hopefully it is only this way the 1st time. PS3 Media server keep a database of scanned files in an internal library. So hopefully what you experienced was a possible combination of disks being spun up to do a directory listing and thumbnail generation and files being added to the library db. I'm hoping subsequent reads will be quicker... I shared 2 folders, but only 1 showed up. Can you provide a bit more information on what your folders are named and how you've entered them into the settings page? I have 4 folders configured in my personal set up and a couple of the folders even have some non-alphanumeric chars in them, so I'd be interested if I forgot to escape a special char or something... Neither .sub or .srt seems to display with subtitles Avi plays fine, so does raw blu-ray folders. I haven't been able to get a mkv file to play yet. I think I have isolated the reason for the subtitles issue. I had an error in the directory when copying over the font used for subs. I will post a fix for this when I hopefully resolve the mkv issue (which I haven't been able to replicate yet - any chance for some details on the mkv you tried? SD/HD? 720p/1080p? etc...). In the interim, if you don't want to wait for the subs fix, can you try the following from the command line and restart the PS3 Media Server (using disable/enable) to see if it helps with the subs issue? cp /boot/packages/subfont.ttf /usr/share/mplayer
November 1, 201114 yr Author @rcwills: I forgot to mention that I don't think ps3 media server on linux supports sub/idx subtitles (if it does, let me know and I can research up on it ...). On windows, I think it's able to do so using a plugin (called avisynth). It does, however, do .srt's just fine...
November 1, 201114 yr I shared 2 folders, but only 1 showed up. Can you provide a bit more information on what your folders are named and how you've entered them into the settings page? I have 4 folders configured in my personal set up and a couple of the folders even have some non-alphanumeric chars in them, so I'd be interested if I forgot to escape a special char or something... So the default share is /mnt/user/Movies,/mnt/user/Tv Shows. I changed it to: /mnt/user/tv,/mnt/user/Movies Movies worked fine, but TV doesn't. I tried adding a space after the comma, as well as the order of the folders listed, didn't seem to make a difference. This has been the most frustrating issue so far. Neither .sub or .srt seems to display with subtitles Avi plays fine, so does raw blu-ray folders. I haven't been able to get a mkv file to play yet. any chance for some details on the mkv you tried? SD/HD? 720p/1080p? etc...). 1st mkv: 1280*[email protected] video is AVC, audio is AC-3. 2hr34 mins, 2.64 GB 2nd mkv: 708*[email protected] video is AVC, audio is AAC. 7mins 14 secs 256MB 3rd mkv: 1280*534@24 fps video is AVC, audio is AC-3. 1hr27mins, 4.37 GB 4th mkv: 1280*[email protected] AVC/AAC. 751MB, 43 mins 5th mkv: 1920*[email protected] VC-1/AC-3 17.8GB, 2hr 2 mins the 2nd one is the only SD source I could find. All these play fine on a PC using VLC, but not the PS3. one thing I did notice was that the files are all appended with [MEncoder]. Does that make this a transcoding issue? I left the transcoding options to default (400MB buffer, 2 cores) I forgot to mention that I don't think ps3 media server on linux supports sub/idx subtitles (if it does, let me know and I can research up on it ...) I don't know about idx, but in the subtitle options of #- Video Settings -#, there is an option called " Auto Load .srt/.sub subtitles, and it is enabled. Additionally, similar to the [MEncoder] suffix, folders with subtitle files in them say [External Subtitles], but once the video plays, I can't see them or toggle them
November 1, 201114 yr It seems updating to the 1.2 version and setting the video buffer to 1536 makes the .mkv files all run fine except for the huge blu-ray rips. I also haven't been able to play .iso files of dvds or .vob files. They just show up as empty folders
November 1, 201114 yr Author So the default share is /mnt/user/Movies,/mnt/user/Tv Shows. I changed it to: /mnt/user/tv,/mnt/user/Movies Movies worked fine, but TV doesn't. I tried adding a space after the comma, as well as the order of the folders listed, didn't seem to make a difference. This has been the most frustrating issue so far. Hmm... I just can't see anything obvious in what you entered that would cause the TV directory not to show up. No space should be needed in between the comma. This may be a silly question, but can you verify the capitalization of your TV folder and compare it to what you had entered in the config settings? the 2nd one is the only SD source I could find. All these play fine on a PC using VLC, but not the PS3. one thing I did notice was that the files are all appended with [MEncoder]. Does that make this a transcoding issue? I left the transcoding options to default (400MB buffer, 2 cores) can you type the following and press return on the command line and tell me what shows up? it's possible that a library is missing: mencoder I don't know about idx, but in the subtitle options of #- Video Settings -#, there is an option called " Auto Load .srt/.sub subtitles, and it is enabled. Additionally, similar to the [MEncoder] suffix, folders with subtitle files in them say [External Subtitles], but once the video plays, I can't see them or toggle them I figured the subtitles out. It turned out to be more than just copying over the font from a previous post (which is still necessary). External subtitles require transcoding by mencoder. A configuration setting was left over from my personal use, and it was forcing PS3 Media server to by default not transcode certain filetypes (unfortunately, MKVs aren't in the list so I still have no explanation for why it isn't working for you). I will more than likely make this a user-configurable list in my next release. I can PM you a command if you don't feel like waiting...
November 1, 201114 yr This is the biggest issue I've had with running PS3MS on UnRAID, FFMPEG can't parse all the thumbnails whilst MPlayer can, but given Mplayer can't run yet, it doesn't work... I have set the flag for using mplayer to generate thumbnails to false for this reason. I can't say that I've come across a video file that it couldn't generate a thumbnail for using its default method, but admittedly almost all of my movies are AVI and MP4's... If this is an issue, I can look into it further, but I'm not sure I'm the best person to do that. Unfortunately that means a number of my VOBs/mts/m2ts files (But not all for some reason!) just show a black or corrupted (As in random colours) thumbnail, where-as if I use PS3 MS on my Mac Pro using MPlayer to generate thumbnails, they are all fine!! So something to work on, if be it not critical. It seems updating to the 1.2 version and setting the video buffer to 1536 makes the .mkv files all run fine except for the huge blu-ray rips. I also haven't been able to play .iso files of dvds or .vob files. They just show up as empty folders Do your mkvs have subtitles (internal or external)? Reason being that if the mkv is H264/AVC with AC3 audio (i.e. formats supported by the PS3) then it doesn't transcode, just streams it. But with subtitles enabled and a subtitle source it HAS to transcode it to MP4. I've had so many issues with this ('go-to' not working, etc) that I've disabled the subtitles until the makers of PS3MS get their act together and fix it. Also, in the PS3MS conf file, the MAXIMUM buffer you can set in there is 600MB, anything over is rejected from my testing. Also, as I said previously, to enable the buffer to fill the full 600MB you set in the conf file the pms.sh script MUST have that 768M increased, I doubled it with no issues and now it buffers the full 600MB with no issues at all.
November 2, 201114 yr Author I've uploaded a new version (1.3) of the plugin. I've added 2 new fields to be user-configurable settings. These two fields allow you to specify file types (by their extension) you want to force transcoding on or ignore when transcoding. The new version should also resolve subtitle issues and an issue after restarting. Thanks! [edited for grammar & clarity]
November 2, 201114 yr Thanks for creating this script by the way. I wasted many hours reading the old ps3mediaserver page but was never able to get it to run at all. So the default share is /mnt/user/Movies,/mnt/user/Tv Shows. I changed it to: /mnt/user/tv,/mnt/user/Movies Movies worked fine, but TV doesn't. I tried adding a space after the comma, as well as the order of the folders listed, didn't seem to make a difference. This has been the most frustrating issue so far. Hmm... I just can't see anything obvious in what you entered that would cause the TV directory not to show up. No space should be needed in between the comma. This may be a silly question, but can you verify the capitalization of your TV folder and compare it to what you had entered in the config settings? grr. that fixed it. That was actually the 2nd thing I checked, but apparently the windows directory listing of tower has 'tv' in lowercase, despite the shares tab of the web interface saying 'TV' in caps. Posting this for future readers. can you type the following and press return on the command line and tell me what shows up? it's possible that a library is missing: mencoder MEncoder 20110624-4.4.4 (C) 2000-2011 Mplayer Team no file given Exiting...(error parsing command line) is that good? I don't know about idx, but in the subtitle options of #- Video Settings -#, there is an option called " Auto Load .srt/.sub subtitles, and it is enabled. Additionally, similar to the [MEncoder] suffix, folders with subtitle files in them say [External Subtitles], but once the video plays, I can't see them or toggle them I figured the subtitles out. It turned out to be more than just copying over the font from a previous post (which is still necessary). External subtitles require transcoding by mencoder. A configuration setting was left over from my personal use, and it was forcing PS3 Media server to by default not transcode certain filetypes (unfortunately, MKVs aren't in the list so I still have no explanation for why it isn't working for you). I will more than likely make this a user-configurable list in my next release. I can PM you a command if you don't feel like waiting... I can confirm that external subtitles are working
November 2, 201114 yr This is the biggest issue I've had with running PS3MS on UnRAID, FFMPEG can't parse all the thumbnails whilst MPlayer can, but given Mplayer can't run yet, it doesn't work... I have set the flag for using mplayer to generate thumbnails to false for this reason. I can't say that I've come across a video file that it couldn't generate a thumbnail for using its default method, but admittedly almost all of my movies are AVI and MP4's... If this is an issue, I can look into it further, but I'm not sure I'm the best person to do that. Unfortunately that means a number of my VOBs/mts/m2ts files (But not all for some reason!) just show a black or corrupted (As in random colours) thumbnail, where-as if I use PS3 MS on my Mac Pro using MPlayer to generate thumbnails, they are all fine!! So something to work on, if be it not critical. It seems updating to the 1.2 version and setting the video buffer to 1536 makes the .mkv files all run fine except for the huge blu-ray rips. I also haven't been able to play .iso files of dvds or .vob files. They just show up as empty folders Do your mkvs have subtitles (internal or external)? Reason being that if the mkv is H264/AVC with AC3 audio (i.e. formats supported by the PS3) then it doesn't transcode, just streams it. But with subtitles enabled and a subtitle source it HAS to transcode it to MP4. I've had so many issues with this ('go-to' not working, etc) that I've disabled the subtitles until the makers of PS3MS get their act together and fix it. Also, in the PS3MS conf file, the MAXIMUM buffer you can set in there is 600MB, anything over is rejected from my testing. Also, as I said previously, to enable the buffer to fill the full 600MB you set in the conf file the pms.sh script MUST have that 768M increased, I doubled it with no issues and now it buffers the full 600MB with no issues at all. What is the downside to transcoding everything? My tower seems to have the processing power to handle it, even when fastforwarding at 30x.
November 2, 201114 yr Author This is the biggest issue I've had with running PS3MS on UnRAID, FFMPEG can't parse all the thumbnails whilst MPlayer can, but given Mplayer can't run yet, it doesn't work... I have set the flag for using mplayer to generate thumbnails to false for this reason. I can't say that I've come across a video file that it couldn't generate a thumbnail for using its default method, but admittedly almost all of my movies are AVI and MP4's... If this is an issue, I can look into it further, but I'm not sure I'm the best person to do that. Unfortunately that means a number of my VOBs/mts/m2ts files (But not all for some reason!) just show a black or corrupted (As in random colours) thumbnail, where-as if I use PS3 MS on my Mac Pro using MPlayer to generate thumbnails, they are all fine!! So something to work on, if be it not critical. @Concorde Rules: I have tracked down all the libs necessary to get MPlayer to not return an error and abort. I do not know if this will fix things (I certainly hope so - you don't know how many times I gave up searching the internets only to pick it up again ...), but I was wondering if you were willing to try out a version of the plugin that includes all these libs (you would need to delete the existing packages and download a larger file)? This version would also make the flag to use MPlayer to generate thumbnails user-defineable and allow you to specify the thumbnail seek-position on the settings screen... thanks!
November 2, 201114 yr This is the biggest issue I've had with running PS3MS on UnRAID, FFMPEG can't parse all the thumbnails whilst MPlayer can, but given Mplayer can't run yet, it doesn't work... I have set the flag for using mplayer to generate thumbnails to false for this reason. I can't say that I've come across a video file that it couldn't generate a thumbnail for using its default method, but admittedly almost all of my movies are AVI and MP4's... If this is an issue, I can look into it further, but I'm not sure I'm the best person to do that. Unfortunately that means a number of my VOBs/mts/m2ts files (But not all for some reason!) just show a black or corrupted (As in random colours) thumbnail, where-as if I use PS3 MS on my Mac Pro using MPlayer to generate thumbnails, they are all fine!! So something to work on, if be it not critical. @Concorde Rules: I have tracked down all the libs necessary to get MPlayer to not return an error and abort. I do not know if this will fix things (I certainly hope so - you don't know how many times I gave up searching the internets only to pick it up again ...), but I was wondering if you were willing to try out a version of the plugin that includes all these libs (you would need to delete the existing packages and download a larger file)? This version would also make the flag to use MPlayer to generate thumbnails user-defineable and allow you to specify the thumbnail seek-position on the settings screen... thanks! I would be quite happy for you to send these libs over, I'll add them to my current libs folder and see what is what. [i'd rather add them to my current installation, as it enables me to keep my customised PS3MS at the cutting edge - 1.50.Beta 1 + jre 6u27, etc] Cheers CR.
November 2, 201114 yr Author @Concorde Rules: I sent you a PM with link & instructions... thanks for trying it out...
November 2, 201114 yr Replied. As I say in the PM, I get a "mplayer: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory" error! Which jre are you downloading out of interest? PS: For the next build, run the 1.50 beta 1 and jre 6u27, I've been running this for weeks with no issues.
Archived
This topic is now archived and is closed to further replies.