Compiling PS3 Media Server on OSX

For help and support with issues specific to Mac OS X
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: Compiling PS3 Media Server on OSX

Postby d34dh0r53 » Fri Jun 17, 2011 7:34 pm

Probably asked and answered, but my groking has failed to turn up anything. Have the xcode4 issues been resolved with this script or is it necessary to build with 3.2.x? I'm getting a strange memmove error and I have a feeling it's due to the xcode4 headers. Also, has anyone thought of using MacPorts libraries for the static stuff that is fairly stable and compiling the tools linking against those?

thx
d34dh0r53
 
Posts: 2
Joined: Mon Aug 24, 2009 2:16 am

Re: Compiling PS3 Media Server on OSX

Postby Raptor399 » Fri Jun 17, 2011 9:16 pm

I have not read any positive news on Xcode4 plus this script yet. All working compiles have been on 3.2.x as far as I know.
Using MacPorts to provide the required binaries would probably work just fine. Compiling everything yourself does provide maximum flexibility in what you want or do not want in the resulting binaries though.

On a side note:

The script is only meant for people that want to fiddle around with custom binaries.

SVN now contains up to date OSX binaries, which means you can skip the whole script business and build the newest PMS from SVN.
Just read the OSX_README.txt on how to build PMS.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: MEncoder Issues (Updated 12 Sep 2011)

Postby amsterdamned » Sat Sep 17, 2011 10:20 am

Hi,

I run PMS on OSX snow leopard, the renderer is a pioneer Kuro KRP500AW

Whan i use a homemade (svn, configure, make) 64 bit mencoderi get the following PMS error:
[osx/mencoder] INFO 22:56:05.613 Process /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder has a return code of 1! Maybe an error occurred... check the log file

this is the version of mencoder:
MEncoder SVN-r34106-4.2.1 (C) 2000-2011 MPlayer Team

In older version of PMS i did not had this problem. I need the 64 bit version because I have better streamng results with the 64 bit version of mencoder.

BTW when I run the ps3mediaserver-read-only/ps3mediaserver/osx/contrib/build-pms-osx.sh script with the default settings (I386) a 32 versions is made, when I change I386 in x86_64 I get errors at the fontconfig part of the script and the script is aborted.

Please some hints or suggestions.

Regards
amsterdamned
 
Posts: 10
Joined: Tue Dec 15, 2009 12:35 pm

Re: MEncoder Issues (Updated 12 Sep 2011)

Postby Raptor399 » Tue Sep 20, 2011 9:33 pm

amsterdamned wrote:I run PMS on OSX snow leopard, the renderer is a pioneer Kuro KRP500AW

Whan i use a homemade (svn, configure, make) 64 bit mencoderi get the following PMS error:
[osx/mencoder] INFO 22:56:05.613 Process /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder has a return code of 1! Maybe an error occurred... check the log file

this is the version of mencoder:
MEncoder SVN-r34106-4.2.1 (C) 2000-2011 MPlayer Team

In older version of PMS i did not had this problem. I need the 64 bit version because I have better streamng results with the 64 bit version of mencoder.

Hmmm... Is there any useful information about the mencoder crash in the debug.log?
Which version of PMS are you running?

amsterdamned wrote:BTW when I run the ps3mediaserver-read-only/ps3mediaserver/osx/contrib/build-pms-osx.sh script with the default settings (I386) a 32 versions is made, when I change I386 in x86_64 I get errors at the fontconfig part of the script and the script is aborted.

Oh, I should check that then. Has been a while since I tested that, thanks for the report! :-)
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Compiling PS3 Media Server on OSX

Postby amsterdamned » Tue Sep 20, 2011 9:52 pm

Hi Raptor,

This is what is in the debug.log:

[main] DEBUG 22:50:18.478 Choosing java look and feel: com.apple.laf.AquaLookAndFeel
[main] INFO 22:50:21.755 Starting PS3 Media Server 1.40.0
[main] INFO 22:50:21.756 by shagrath / 2008-2011
[main] INFO 22:50:21.757 http://ps3mediaserver.org
[main] INFO 22:50:21.757 http://code.google.com/p/ps3mediaserver
[main] INFO 22:50:21.758 http://ps3mediaserver.blogspot.com
[main] INFO 22:50:21.758
[main] INFO 22:50:21.759 Java: 1.6.0_26-Apple Inc.
[main] INFO 22:50:21.759 OS: Mac OS X x86_64 10.6.8
[main] INFO 22:50:21.760 Encoding: UTF-8
[main] INFO 22:50:21.760 Working directory: /Applications/PS3 Media Server.app/Contents/Resources/Java
[main] INFO 22:50:21.789 Temp folder: /var/folders/Uu/UuQVLhooHKuPhR4djWr9jU+++TI/-Tmp-/ps3mediaserver
[main] INFO 22:50:21.790 Logging config file: internal defaults
[main] INFO 22:50:21.791
[main] INFO 22:50:21.792 Profile directory: /Users/rensensimonekaandorp/Library/Application Support/PMS
[main] INFO 22:50:21.792 Profile path: /Users/rensensimonekaandorp/Library/Application Support/PMS/PMS.conf
[main] INFO 22:50:21.793 Profile status: rw
[main] INFO 22:50:21.794 Profile name: imacrensensimone.lan
[main] INFO 22:50:21.794
[main] INFO 22:50:21.798 Loading MediaInfo library
[main] INFO 22:50:22.024 Loaded MediaInfoLib - v0.7.28
[main] INFO 22:50:22.048 Loading renderer configurations from /Applications/PS3 Media Server.app/Contents/Resources/Java/renderers
[main] INFO 22:50:22.049 Loading configuration file: Pioneer Kuro KRP500.conf
[main] INFO 22:50:22.117 Loading configuration file: PS3.conf
[main] INFO 22:50:22.134 Loading configuration file: XBOX360.conf
[main] INFO 22:50:22.138 Checking MPlayer font cache. It can take a minute or so.
[main] DEBUG 22:50:22.139 launching: osx/mplayer
[main] INFO 22:50:22.687 Done!
[main] INFO 22:50:22.739 Loading plugins from /Applications/PS3 Media Server.app/Contents/Resources/Java/plugins
[main] INFO 22:50:22.741 No plugins found
[main] INFO 22:50:22.743 Registering transcoding engine: FFmpeg Audio
[main] INFO 22:50:22.748 Registering transcoding engine: MEncoder
[main] INFO 22:50:22.749 Registering transcoding engine: MPlayer Audio
[main] INFO 22:50:22.749 Registering transcoding engine: MEncoder Web
[main] INFO 22:50:22.750 Registering transcoding engine: MPlayer Video Dump
[main] INFO 22:50:22.750 Registering transcoding engine: MPlayer Web
[main] INFO 22:50:22.752 Registering transcoding engine: TsMuxer
[main] INFO 22:50:22.752 Registering transcoding engine: Audio High Fidelity
[main] INFO 22:50:22.753 Registering transcoding engine: VLC Audio Streaming
[main] INFO 22:50:22.754 Registering transcoding engine: VLC Video Streaming
[main] INFO 22:50:22.754 Registering transcoding engine: Raws Thumbnailer
[main] INFO 22:50:22.896 Scanning network interface en0 / en0
[main] INFO 22:50:22.897 Using address /192.168.1.6 found on network interface: name:en0 (en0)
[main] INFO 22:50:22.898 Created socket: /192.168.1.6:5001
[main] DEBUG 22:50:23.151 Sending ALIVE...
[main] INFO 22:50:23.160 Using the following UUID: 49dfb793-0860-397e-961e-be8a09617015
[New I/O server worker #1-1] INFO 22:50:25.122 Renderer Pioneer Kuro KRP500A found on this address: pioneerkurokrp500aw.lan (192.168.1.8)
[New I/O server worker #1-1] DEBUG 22:50:25.150 Starting ping -c 3 -s 64000 192.168.1.8
[New I/O server worker #1-1] DEBUG 22:50:25.304 Unix process ID (ping): 25655
[Thread-10] DEBUG 22:50:27.150 Stopping Unix process 25655: ping
[main] INFO 22:50:28.381 The server should now appear on your renderer
[Thread-14] DEBUG 22:50:38.381 Sending ALIVE...
[pool-13-thread-1] DEBUG 22:50:38.905 Starting /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/ffmpeg -ss 0 -i /Volumes/WD3Thuiskamer/Films/007dieanotherday1080/fsi-007dad1080.mkv -an -an -an -an -an -an -an -an -an
[pool-13-thread-1] DEBUG 22:50:38.977 Attaching thread: osx/ffmpeg
[pool-13-thread-1] DEBUG 22:50:38.978 Unix process ID (/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/ffmpeg): 25657
[Thread-20] DEBUG 22:50:43.303 Stopping Unix process 25657: osx/ffmpeg
[New I/O server worker #1-3] INFO 22:50:43.671 Starting transcode/remux of fsi-007dad1080.mkv
[osx/mencoder] DEBUG 22:50:43.890 Starting /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder -ss 0 -quiet /Volumes/WD3Thuiskamer/Films/007dieanotherday1080/fsi-007dad1080.mkv -quiet -quiet -oac lavc -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=256:threads=2:keyint=5:vqscale=2:vqmin=3:vrc_maxrate=60000:vrc_buf_size=1835 -subcp ISO-8859-1 -subfont /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts/LucidaSansRegular.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 100 -fps 24000/1001 -ofps 24000/1001 -sub /Volumes/WD3Thuiskamer/Films/007dieanotherday1080/fsi-007dad1080.srt -af lavcresample=48000 -srate 48000 -o - -really-quiet -msglevel statusline=2
[osx/mencoder] DEBUG 22:50:44.021 Attaching thread: osx/mencoder
[osx/mencoder] DEBUG 22:50:44.024 Unix process ID (/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder): 25659
[osx/mencoder] INFO 22:50:44.025 Process /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder has a return code of 1! Maybe an error occurred... check the log file
[Thread-26] DEBUG 22:50:52.540 Stopping Unix process 25659: osx/mencoder
[Thread-14] DEBUG 22:51:02.186 Sending ALIVE...

regards
amsterdamned
 
Posts: 10
Joined: Tue Dec 15, 2009 12:35 pm

Re: Compiling PS3 Media Server on OSX

Postby Raptor399 » Tue Sep 20, 2011 10:03 pm

amsterdamned wrote:Hi Raptor,

This is what is in the debug.log:

[...]
[osx/mencoder] INFO 22:50:44.025 Process /Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder has a return code of 1! Maybe an error occurred... check the log file
[Thread-26] DEBUG 22:50:52.540 Stopping Unix process 25659: osx/mencoder

regards


Meh, that's not a lot...
I see one strange thing in that mencoder commandline in the log:


Code: Select all
/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder -ss 0 -quiet /Volumes/WD3Thuiskamer/Films/007dieanotherday1080/fsi-007dad1080.mkv -quiet -quiet -oac lavc -of mpeg -quiet -quiet -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=256:threads=2:keyint=5:vqscale=2:vqmin=3:vrc_maxrate=60000:vrc_buf_size=1835 -subcp ISO-8859-1 -subfont /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts/LucidaSansRegular.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 100 -fps 24000/1001 -ofps 24000/1001 -sub /Volumes/WD3Thuiskamer/Films/007dieanotherday1080/fsi-007dad1080.srt -af lavcresample=48000 -srate 48000 -o - -really-quiet -msglevel statusline=2

Just before the "-really-quiet" (how's that for an option name btw? ;-)) there seems to be a lone "-".
I think that's highly suspicious! Command line options usually avoid being merely dashes, and this particular one is after the "-o" option which should indicate the output file for mencoder. "-" is a highly dubious output file name; there should be a string there.

You could try and run that command line in a Terminal and see what happens. Remove all "-quiet" and "-really-quiet" options and see what happens. Then try replacing the "-" with "somefilename" and see what happens.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Compiling PS3 Media Server on OSX

Postby Raptor399 » Wed Sep 21, 2011 5:04 pm

Hmmm, the lone "-" isn't the problem. It is also present for working files and "mencoder -o -" means something like "pipe the output", which is exactly what we want.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Previous

Return to Mac OS X Support

Who is online

Users browsing this forum: No registered users and 2 guests