December 21, 201015 yr In the short term, does anyone have a quick way of stopping/starting PS3MS? If not, i am tempted to just comment out the relevant lines in my go script to diable ps3ms, then reboot the server (all so ps3ms doesnt keep writing ridiculous amounts of info into that debug file!) If you have unMenu installed You can probably create some Start and Stop buttons for use on the user scripts page. That is exactly what I did for the Crashplan service that is installed on my server. Yup, sounds like a good bit of advice. So i guess to start the service manually i would create a new unMenu user script which just replicates what is currently in the "go script" ? : cd /boot/custom/ps3ms installpkg jre-6u11-i586-1.tgz cd /boot/custom/ps3ms/mencoder installpkg *.tgz cd /boot/custom/ps3ms ./PMS.sh The question is, how do i stop/kill the PS3MS and thus stop it logging to the debug.log file? What processes do i need stop and how is this best achieved? thanks edit: i found this post on the ps3ms forum http://ps3mediaserver.org/forum/viewtopic.php?f=3&t=3739&p=16561&hilit=debug+flash#p16561 what is that linking that is referred to in the final post?
December 21, 201015 yr Yup, sounds like a good bit of advice. So i guess to start the service manually i would create a new unMenu user script which just replicates what is currently in the "go script" ? : cd /boot/custom/ps3ms installpkg jre-6u11-i586-1.tgz cd /boot/custom/ps3ms/mencoder installpkg *.tgz cd /boot/custom/ps3ms ./PMS.sh I would leave the install stuff: [code]cd /boot/custom/ps3ms installpkg jre-6u11-i586-1.tgz cd /boot/custom/ps3ms/mencoder installpkg *.tgz in the go script so that PS3MS is installed on every boot, it is just not started. Then I would add this stuff to the script to start PS3MS cd /boot/custom/ps3ms ./PMS.sh The question is, how do i stop/kill the PS3MS and thus stop it logging to the debug.log file? What processes do i need stop and how is this best achieved? Take a look at the Airvideo Start and Stop buttons. If you do not see them in the User Scripts section then that means you have never installed Airvideo. To see what the code for those buttons would look like take a look through the airvideo-unmenu-package.conf file and you should see the comments that will direct you further.[/code]
December 21, 201015 yr ok great, i think i am set with the install/start stuff. So here is what i found in the AirVideo conf file you mentioned: #create the button to stop airvideo PACKAGE_INSTALLATION echo "#UNMENU_RELEASE \$Revision: 75 \$ \$Date: 2010-04-25 22:20:22 -0400 (Sun, 25 Apr 2010) \$" > "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "#define USER_SCRIPT_LABEL Stop AirVideo" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "#define USER_SCRIPT_DESCR This will stop the AirVideo service from running so that the array can be stopped cleanly" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "#define USER_SCRIPT_TEST test -x /boot/packages/AirVideoServerLinux.jar && echo \"Stop AirVideo\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "set -xv" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "av_pid=\$(ps -ef | grep AirVideo | grep -v grep | awk '{print\$2}');" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "test \"\$av_pid\" != \"\" && kill \$av_pid" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" My linux knowledge is quite crap to say the least, but i thing the last three lines are the ones that actually kill the process. I just dont really know how to interpret them fully and apply the same logic to the PS3MS...
December 21, 201015 yr I'm coming close to the conclusion that ps3ms just isn't ready for primetime on unraid. Lots of squeezing a square peg into a round hole is required. unRAID was never really designed to be used like we are trying to use it. unRAID is first and foremost a media storage device. We are trying to get it to do many more and different things than it was designed to do. Of course. I'm not blaming unRAID. And I'm glad for anyone who's got ps3ms running smoothly. But it appears to be a crapshoot whether any given user will get to that point or not.
December 21, 201015 yr ok great, i think i am set with the install/start stuff. So here is what i found in the AirVideo conf file you mentioned: #create the button to stop airvideo PACKAGE_INSTALLATION echo "#UNMENU_RELEASE \$Revision: 75 \$ \$Date: 2010-04-25 22:20:22 -0400 (Sun, 25 Apr 2010) \$" > "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "#define USER_SCRIPT_LABEL Stop AirVideo" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "#define USER_SCRIPT_DESCR This will stop the AirVideo service from running so that the array can be stopped cleanly" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "#define USER_SCRIPT_TEST test -x /boot/packages/AirVideoServerLinux.jar && echo \"Stop AirVideo\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "set -xv" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "av_pid=\$(ps -ef | grep AirVideo | grep -v grep | awk '{print\$2}');" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "test \"\$av_pid\" != \"\" && kill \$av_pid" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" My linux knowledge is quite crap to say the least, but i thing the last three lines are the ones that actually kill the process. I just dont really know how to interpret them fully and apply the same logic to the PS3MS... It is these lines: PACKAGE_INSTALLATION echo "av_pid=\$(ps -ef | grep AirVideo | grep -v grep | awk '{print\$2}');" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" PACKAGE_INSTALLATION echo "test \"\$av_pid\" != \"\" && kill \$av_pid" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo" that do the work. Basically, in the first line we try to find the pid (process ID) of the Airvideo process, assign it to a variable (av_id). In the second line we test to see if av_pid=="" and if it is not we send the kill command. Do google searches for "ps", "grep", and "awk" to figure out what the first line is doing exactly. The "|" character is a pipe and we are passing the output of "ps -ef" to "grep"
December 26, 201015 yr I had that problem as well. Needed to update to the latest ALSA libraries. cd /boot/custom/ps3ms/mencoder wget http://slackware.osuosl.org/slackware-current/slackware/l/alsa-lib-1.0.23-i486-1.txz installpkg alsa-lib-1.0.23-i486-1.txz You'll also want to remove the old alsa-lib-1.0.15-i486-1.tgz from that directory and edit your /boot/config/go script to installpkg *.tgz *.txz Not sure there's any reason the Mencoder libraries linked on the wiki page should include the 0.15 version instead of the 0.23 version. But the alternate ffmpeg (i486 version) definitely chokes on the older alsa libraries. Thanks for the link Vindes. The updated ALSA libraries cleared up my headache too. I'm up and running now on my first unRAID build. I plan on transferring a couple movies from my PC to the server overnight and will check for/tune any stuttering in the morning. Everything appeared fine on the sample mkv I just played.
December 26, 201015 yr Then I would add this stuff to the script to start PS3MS cd /boot/custom/ps3ms ./PMS.sh Hi, I tried to add this to a start button in unmenu. However whenever i click the start button which has this as its code. PS3MS starts, but freezes the webpage tower:8080 Any way around this?
December 26, 201015 yr Then I would add this stuff to the script to start PS3MS cd /boot/custom/ps3ms ./PMS.sh Hi, I tried to add this to a start button in unmenu. However whenever i click the start button which has this as its code. PS3MS starts, but freezes the webpage tower:8080 Any way around this? Apparently your shell script has an open file descriptor, so the web-page waits until all its output is complete. Try something like cd /boot/custom/ps3ms nohup ./PMS.sh >/dev/null 2>&1 & or cd /boot/custom/ps3ms echo "sh -c PMS.sh" | at now
December 26, 201015 yr Thank you so much! Fixed it. Wish I knew these things. Such a noob. So much to learn. Now to have the make 360 see unraid from the button press. It does see the PS3MS when i run the script in a terminal, but doesnt by the button press. Afraid the debug.log has something to do with it.
December 26, 201015 yr Thank you so much! Fixed it. Wish I knew these things. Such a noob. which script example did you use?
December 26, 201015 yr The first version. was looking at how to hide the errors and getting the syntax right.
January 26, 201115 yr Absolutly love how I got this working, runs really well but few issues where I tried looking through the thread to work out: When I start it, my command prompt is just full of scrolling ...SENDING ALIVE messages and I cannot do anything else, restart server etc. Is there a way to control the server again after this is running? I added a user script to start the server, but cannot work out one to shut it off, does anyone have one I can use? - this may also solve my "....SENDING ALIVE" messages.
January 27, 201115 yr Hi, has anybody got DTS audio streaming/working? If so what does your PMS.conf file look like? cheers
February 14, 201115 yr Absolutly love how I got this working, runs really well but few issues where I tried looking through the thread to work out: When I start it, my command prompt is just full of scrolling ...SENDING ALIVE messages and I cannot do anything else, restart server etc. Is there a way to control the server again after this is running? I added a user script to start the server, but cannot work out one to shut it off, does anyone have one I can use? - this may also solve my "....SENDING ALIVE" messages. I have the same problem. Were you able to resolve it? I need unraid to stream to my xbox 360 (it doesn't even need to transcode anything).
February 15, 201115 yr When I start it, my command prompt is just full of scrolling ...SENDING ALIVE messages and I cannot do anything else, restart server etc. Is there a way to control the server again after this is running? I added a user script to start the server, but cannot work out one to shut it off, does anyone have one I can use? - this may also solve my "....SENDING ALIVE" messages. It spams that stuff to the console. If you're sitting at your system you can hit alt-F2, alt-F3, alt-F1 to switch amongst different console windows. If you don't want it spamming the main console go to alt-F2 first and run it there, then go back to alt-F1 and you wont see it. I used to have it auto-start with the server and if I wanted to use the console I'd go to alt-F2 to do whatever I needed to do. in the start script you should also be able to redirect the output to /dev/null but I haven't tried that.
February 17, 201115 yr * Warning high probability n00b question, please excuse me * I got PS3MediaServer running really nicely on my unRAID 4.7 install, everything is basically flawless, with the exception that I cannot for the life of me seem to successfully move it to disk1 or cache to alleviate the excessive writes to flash I am sure it's making whilst transcoding. I've looked pretty much everywhere I could think of (WIKI included) and while people mentioned it, I didn't see any instructions. I guessed I needed to create a symbolic link to the physical location on "/mnt/disk1/ps3ms" for example, but when I tried to do that in "/boot/custom" if just barfed complaining the operation wasn't permitted. Does anybody have any advice on how to get this working? Cheers in advance!
February 21, 201115 yr Hi all. Yet another great application to make unraid even better. As usual though, not being very familiar with linux, I was thinking I was having trouble because of linux. Everything seems to work properly except for the music section. It seems that the only way to get the mp3's to play is to include every folder that directly contains the mp3's in the folder = statement in the PS3.conf file. I would have thought I could just add /mnt/usr/Music and then access the subdirectoies through the xbox. So far the only way I have been able to get the mp3's to play is to add /mnt/usr/Music/artist/album to the folder statement and then of course I only get access to that one album. Since I have over 200,000 tracks all in the directory structure /mnt/usr/Music/artist/album I would have to add maybe 10,000 or more entries in the folder statement. This would be ridiculous. Is there any other way? This is actually the main reason I was trying this software, just so I can access my music while playing games on the xbox 360. The movies and pictures are really just a bonus. I would hate to have to convert the unraid box to a windoze box just to listen to my own music while racing Forza Motorsport 3. Thanks. edit: I have been looking at v1.20.412 on a windoze box and it has a media library/cache function. When enabled it will scan your folders and subdirectories for media files. This seems to fix the access problem to the music, although it does take a long time it only has to be done once. One problem though, the way to scan all system folders is by pressing a button, although I think I can access this through http://192.168.1.3:5001/console/home (or whatever IP address your box is given on your network). Just wondering now if anyone has tried v1.20.412 on unraid? Does it all work OK with the same libraries or should I hunt for the newest libraries too?
February 22, 201115 yr Question: I know there is mention of an interface does it look like this for everybody? http://mac.softpedia.com/progScreenshots/PS3-Media-Server-Screenshot-50401.html I tried to view http://tower:5001 and all I get is a blank screen. I didn't install the Java environment because I already had it installed, but funny thing is I'm kinda half sure where it is. Of course I'm at work so I can't type in paths.
March 14, 201115 yr mkny13, I would delete installation and start over. I used the instructions found at http://bloggyvonbloggerstein.blogspot.com/2010/03/ps3mediaserver-on-unraid.html There is obviously something not right about your install. Kryspy My first post on here, as I have set up my unraid server, and am now busy transferring lots of data. I have followed the instructions on this blog, and the wiki, but have found a stumbling block. The FFmpeg link appears to be dead. Anywhere else to download it? Thanks for your help.
March 14, 201115 yr I guessed I needed to create a symbolic link to the physical location on "/mnt/disk1/ps3ms" for example, but when I tried to do that in "/boot/custom" if just barfed complaining the operation wasn't permitted. Does anybody have any advice on how to get this working? Cheers in advance! This has worked for me. Choose a linux directory that is built on the fly within memory to copy the ps3 media server files to. As an example, I'm utilizing the /var directory. This way you can create a link to /dev/null. I believe that linking is not allowed from a flash drive that is FAT(xx) formatted but you can link within the directories that are loaded into memory. As an example: My script does the following: # Create directories & Move ps3ms stuff to var directory mkdir /var/custom mkdir /var/custom/ps3ms mkdir /var/custom/ps3ms/pms cp -r /boot/custom/ps3ms/pms/* /var/custom/ps3ms/pms # Remove the debug.log (just in case) & Link debug.log to dev/null cd /var/custom/ps3ms/pms rm debug.log ln -s /dev/null debug.log # Initiate pms.sh cd /var/custom/ps3ms/pms ./PMS.sh hope this helps
March 15, 201115 yr My first post on here, as I have set up my unraid server, and am now busy transferring lots of data. I have followed the instructions on this blog, and the wiki, but have found a stumbling block. The FFmpeg link appears to be dead. Anywhere else to download it? Thanks for your help. My first post on the forum too! I had trouble with that link and have just had success using an alternative package: [ftp=ftp://ftp.slackware.org.uk/people/alien/restricted_slackbuilds/ffmpeg/pkg/12.1/]ftp://ftp.slackware.org.uk/people/alien/restricted_slackbuilds/ffmpeg/pkg/12.1/[/ftp] I found this googling around for an alien ffmpeg package. It is working for me so far. Good luck.
March 15, 201115 yr Only stumbling block for me is the fact that there either isn't a Mediainfo file or a functioning one. This results for me in no thumbnails for Video files. Kryspy
March 17, 201115 yr Can PS3mediaserver be used to stream video to a PS3 using an ATOM based unRAID? Is i3 a better choice?
March 31, 201115 yr Soooooo, Anyone have thumbnails working in PS3 Mediaserver for video files? If so what are your settings??? Kryspy
Archived
This topic is now archived and is closed to further replies.