archienz / ps3mediaserver

Automatically exported from code.google.com/p/ps3mediaserver
0 stars 0 forks source link

Mac OS X support #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There is currently no support for OSX.

I tried running the Linux version but got the following java error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file

The java version on OSX is Java(TM) 2 Runtime Environment, Standard Edition
(build 1.5.0_16-b06-284)

I'm guessing Java 6 is required.

Original issue reported on code.google.com by robinmul...@gmail.com on 17 Dec 2008 at 6:23

GoogleCodeExporter commented 9 years ago
Nope, these don't work on 10.5 at least. Thanks for your effort though.

I'll try to make some new builds today that should work.

Original comment by robinmul...@gmail.com on 12 Jan 2009 at 2:21

GoogleCodeExporter commented 9 years ago
Ok, try this one. In theory it should work. Intel only.

Original comment by robinmul...@gmail.com on 12 Jan 2009 at 3:38

Attachments:

GoogleCodeExporter commented 9 years ago
The ones I compiled were only 10.4 and I think intel only.

And that last mplayer you uploaded works here on my tiger. :)

Original comment by Sp1der...@gmail.com on 12 Jan 2009 at 5:19

GoogleCodeExporter commented 9 years ago
If at all possible, could you please tell me how you compiled it ?
I spent over 24 hrs trying, I tried via leopard, tiger and I even attempted to 
cross 
compile via ubuntu.

Cheers.

Original comment by Sp1der...@gmail.com on 12 Jan 2009 at 5:23

GoogleCodeExporter commented 9 years ago
It's quite difficult. You can follow the instructions in the wiki you posted 
but you
have to do a couple more things that aren't mentioned there.

Add -search_paths_first to your LDFLAGS and remove all references to 
/usr/X11/include
in your config.mak after configure. Even if you disable x11 there will still be
references for some reason. Also you need to explicitly reference freetype else 
it
will take the X11 one, that was the problem my earlier build had. I used this
configure in the end:

./configure --disable-x11 --disable-gl --enable-apple-remote --prefix=$MPPREFIX
--with-freetype-config=$MPPREFIX/bin/freetype-config

Of course you will need to build all libraries statically and so on. All my 
libs are
also build as a universal binary but haven't had any success getting mplayer as
universal binary. I'll work on that next but it's not a high priority, in most 
cases
PPC users will not be able to use PSM properly anyway. Also, by building it as 
UB you
will lose the MMX and SSE support but that can be worked around.

Original comment by robinmul...@gmail.com on 12 Jan 2009 at 6:59

GoogleCodeExporter commented 9 years ago
Cheers, I, might have another go when I've got another day or two free :)

Original comment by Sp1der...@gmail.com on 12 Jan 2009 at 7:05

GoogleCodeExporter commented 9 years ago
Right, I've made a test build of PSM that includes new binaries of mplayer, 
mencoder
and ffmpeg that should be 10.4 compatible.

Could you try this out on your PS3 with different files on 10.4? I've already 
tested
it on 10.5 and it works fine there.

If it works this will make it into the next release.

http://files.exonet.nl/ps3/PSM.zip

Thanks for your help!

Original comment by robinmul...@gmail.com on 12 Jan 2009 at 7:45

GoogleCodeExporter commented 9 years ago
Intel only btw.

Original comment by robinmul...@gmail.com on 12 Jan 2009 at 7:46

GoogleCodeExporter commented 9 years ago
The binaries are working ok, i even get thumbnails shown on my playstation. The
problem is that the streaming of transcoded files is still not working. I get 
the
following message:

[Thread-914] TRACE 20:36:23.539 Starting transcode of Chuck - S02E07 - Chuck 
Versus
The Fat Lady.avi
[mkfifo] TRACE 20:36:23.742 Process mkfifo has a return code of 1! Maybe an 
error
occured... check the log file

Original comment by kouzinop...@gmail.com on 13 Jan 2009 at 6:36

GoogleCodeExporter commented 9 years ago
I'm getting the same issue as kouzinopoulos.

The buffer starts going in negative figures aswell.
I've added the debug log.

Original comment by Sp1der...@gmail.com on 13 Jan 2009 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
Not sure what could cause this. Could you remove /tmp/javaps3media/ just to be 
sure?
I've seen some issues with that.

Original comment by robinmul...@gmail.com on 13 Jan 2009 at 9:41

GoogleCodeExporter commented 9 years ago
Removing /tmp/javaps3media seems to fixed the problem. Thank you!

Original comment by kouzinop...@gmail.com on 13 Jan 2009 at 9:57

GoogleCodeExporter commented 9 years ago
The problem I'm having with every build and solution I try is this:  Traces 
always says:

[main] TRACE 17:35:12.922 Using forced address 192.168.0.140
[main] TRACE 17:35:12.923 Created socket: /192.168.0.140:5001
[Thread-11] TRACE 17:35:12.937 Starting DLNA Server on host 192.168.0.140 and 
port 5001 ...
[main] TRACE 17:35:12.949 Unable to retrieve MAC address for UUID creation: 
using a random one...
[main] TRACE 17:35:12.956 Using following UUID: 
a89415fc-1d8c-4255-8d29-f958546a38c1
[Thread-11] TRACE 17:35:13.439 Receiving a request from: 192.168.0.170
[main] TRACE 17:35:13.579 It's ready! You should see the server appears on XMB

Well, the problem is the "Status" tab has a large red x and the message "PS3 
has not been found.  Is it on?  
You can also check traces and/or configuration, or also the debug.log file" and 
the PS3 sees no media servers, 
besides the one on my NAS.  Any ideas?  UPnP is on for everything, and works 
quite well usually.  Both the PS3 
and the computer (and the NAS) are on a gigabit router, wired, though the 
laptop sometimes is wireless 
(802.11n) and it behaves the same.

Original comment by afra...@gmail.com on 13 Jan 2009 at 10:44

GoogleCodeExporter commented 9 years ago
I'm having the same problem was afranke, PS3 and iMac connected wirelessly via 
Apple Time Capsule.  MediaLink 
works fine though.

Original comment by SD.Cress...@gmail.com on 14 Jan 2009 at 12:13

GoogleCodeExporter commented 9 years ago
First off, excellent job on PS3 Media Server.  As mentioned, the 
mencoder/mplayer/ffmpeg binaries included are 
Intel only.  The latest builds of PS3 Media Server run under Java 1.5, so we 
can now run it on PPC (PPC Tiger only 
supports Java 1.5 so previously we could not), but unfortunately, we cannot 
transcode on PPC until we get 
Universal or PPC specific builds of the required binaries for transcoding; if 
this could happen, PPC macs could 
finally have a solution for PS3 transcoding - any chance this is a possibility?

Original comment by mpbartho...@gmail.com on 14 Jan 2009 at 2:13

GoogleCodeExporter commented 9 years ago
See Issue 124 about PPC.

Original comment by robinmul...@gmail.com on 14 Jan 2009 at 11:06

GoogleCodeExporter commented 9 years ago
I've found if you have crossover installed (Intel only again) you can run the 
windows version.
You have to install java 6 under crossover then PMS.
It seem to run more stable, well atleast for me, and you get to use tsMuxer to 
transcode your MKVs which is the big plus for me.

Original comment by Sp1der...@gmail.com on 14 Jan 2009 at 12:30

GoogleCodeExporter commented 9 years ago
I am also having the same problem as afranke and SD.Cresswell.  Any chance 
anyone has
figured this out?  Thanks

Original comment by wefly...@yahoo.com on 14 Jan 2009 at 5:13

GoogleCodeExporter commented 9 years ago
I had also the error with a negative mkfifo... Removing the content of the 
folder /tmp/javaps3media worked for 
me, but I have to do it often.

Thanks for this huge soft !

Original comment by sylvain....@gmail.com on 15 Jan 2009 at 7:39

GoogleCodeExporter commented 9 years ago
mkfifo error here too, seems to be related to the name not clearing eg title 1 
will play from a VIDEO_TS, but the 
next VIDEO_TS won't play because title 1 already exists

Original comment by WezTay...@gmail.com on 17 Jan 2009 at 6:38

GoogleCodeExporter commented 9 years ago
Yeah I'm seeing the mkfifo problem more often now as well. I'll have a look 
what can
be done about it.

Original comment by robinmul...@gmail.com on 17 Jan 2009 at 1:59

GoogleCodeExporter commented 9 years ago
First of all, thanks for this wonderful software. I'm using it in my Linux box 
and it
works almost perfectly. The problem is that it is not powerful enough to 
transcode HD
movies, so I'm trying to install ps3mediaserver in my new MacBook laptop (Intel 
and
Leopard). I installed it last week (ps3m v1.02.1) and it worked perfectly, but 
now, I
don't know why, I can't play .mkv files. The strange thing is that it worked 
well
with the same file that I'm trying to play now. I removed the /tmp/javaps3media,
removed and installed new mplayer versions from here and macports ... no 
success with
mkv files (mencoder starts but it seems that the PS3 is not receiving the 
stream).
Any clue?

Original comment by Jaime.Ga...@gmail.com on 18 Jan 2009 at 4:57

GoogleCodeExporter commented 9 years ago
Please include your debug.log.

Original comment by robinmul...@gmail.com on 18 Jan 2009 at 7:09

GoogleCodeExporter commented 9 years ago

Original comment by robinmul...@gmail.com on 18 Jan 2009 at 7:26

GoogleCodeExporter commented 9 years ago
Thanks for you help. My debug.log ....

Original comment by Jaime.Ga...@gmail.com on 18 Jan 2009 at 8:05

Attachments:

GoogleCodeExporter commented 9 years ago
I don't see anything weird happening. What error does the PS3 give? When you go 
into
the transcoded folder it doesn't work either?

Try killing any leftover mencoder processes with killall -9 mencoder

Original comment by robinmul...@gmail.com on 18 Jan 2009 at 9:16

GoogleCodeExporter commented 9 years ago
Version 1.03 is now up, it should fix some of the issues reported here. Let me 
know
if this version fixes any problems you might be having.

Original comment by robinmul...@gmail.com on 18 Jan 2009 at 10:05

GoogleCodeExporter commented 9 years ago
Same problem with 1.03. I'am trying with the Transcode folder cause this is a 
mkv
file. In the PS3 I get a blank screen and no audio.
I remove the application sending it to the trash folder. Do I have to do 
something
more to make a clean install?

Original comment by Jaime.Ga...@gmail.com on 18 Jan 2009 at 11:13

GoogleCodeExporter commented 9 years ago
The last two OSX versions leave me with an absent menubar icon. Its no big deal 
of course but just wanted to 
let the developer know.

Original comment by expand...@gmail.com on 20 Jan 2009 at 6:22

GoogleCodeExporter commented 9 years ago
I'm on the latest Mac OS X Leopard, and there's some sort of problem that shows 
up
more often than not. Race condition? Most files to be transcoded I try give
"Corrupted data" - but sometimes it works - and that can be on the same file. 
Looking
at the traces I can see that the problem is that the "corrupted data" occasions 
are
when PMS cannot find the temp mencoder/mplayer instances.

Since it works sometimes, and sometimes not, even though nothing changes on the
server and it can vary with the exact same files, I'm leaning towards race 
condition
when copying temp files.

Java 1.5.0_16

(Btw, I also get lots of mencoder/mplayer instances that need manual killing)

Original comment by tsangb...@gmail.com on 21 Jan 2009 at 7:07

GoogleCodeExporter commented 9 years ago
I am still unable to connect with the PS3 with my Imac. Windows works fine, but 
I
cannot connect with the IMac which is faster than my PC. I am using a Time 
machine as
my router.  I get a endless loop of UNPN network execption:  Address already in 
use 
then java.net Bindexecption:  address already in use.  

Has anyone else had similar problems and fixed this?

Original comment by wefly...@yahoo.com on 21 Jan 2009 at 8:38

GoogleCodeExporter commented 9 years ago
1/03 didn't fix my problem - Traces still says it's working but the big red X 
indicates it isn't, and it doesn't show up in XMB.  Could the problem be 
related to 
Medialink?

Original comment by SD.Cress...@gmail.com on 21 Jan 2009 at 11:06

GoogleCodeExporter commented 9 years ago
@SD.Cresswell

Yes, it could well be. I've seen people on the forums saying that removing 
Medialink
worked for them. Try that first.

@wefly...@yahoo.com

Your issue might be the same as above. Do you have any other upnp servers 
running
(like Medialink)? If not, try forcing your network device and ip address in the
application settings.

Original comment by robinmul...@gmail.com on 22 Jan 2009 at 12:03

GoogleCodeExporter commented 9 years ago
For everyone having issues with mkfifo, hanging mencoder processes or needing 
to kill
the app sometimes. This is a known issue and we are working on a fix that's 
currently
in testing.

Original comment by robinmul...@gmail.com on 22 Jan 2009 at 12:05

GoogleCodeExporter commented 9 years ago
I realized that Sonos desktop was enabled.  That fixed the Endless loop 
problem.  Now
I am in the same boat as SD Cresswell.  Traces says it is enabled but still a 
big red X.

Original comment by wefly...@yahoo.com on 22 Jan 2009 at 4:18

GoogleCodeExporter commented 9 years ago
Nevermind...IT WORKS.  I plugged in my IP address manually and selected a higher
port.  Now it streams wonderfully.

However, I AM having the mencoder crash that is listed above.

Mark

Original comment by wefly...@yahoo.com on 22 Jan 2009 at 6:13

GoogleCodeExporter commented 9 years ago
Used the same method as weflyswa@yahoo.com to get it going for me too, it even 
exists happily with Medialink.  
It doesn't play any sound when transcoding mkv files as yet, but I'll have a 
tinker and a look around to find a fix.

Original comment by SD.Cress...@gmail.com on 23 Jan 2009 at 1:05

GoogleCodeExporter commented 9 years ago
Where can I find the configuration file web.conf?

Original comment by MrDoub...@gmail.com on 26 Jan 2009 at 6:43

GoogleCodeExporter commented 9 years ago
/Applications/PS3 Media Server.app/Contents/Resources/Java/WEB.conf

Original comment by Sp1der...@gmail.com on 26 Jan 2009 at 7:14

GoogleCodeExporter commented 9 years ago
I noticed with 1.03 the box for enhanced multicore support is not able to be
selected.  I have 2 cores and it worked with 1.02.  Any one else have this 
issue?

Original comment by wefly...@yahoo.com on 31 Jan 2009 at 2:22

GoogleCodeExporter commented 9 years ago
this is a new option, only available on Windows, who enables a special mencoder
build, who is not (yet?) included in OSX package - so nothing different with 
1.02 on OSX

Original comment by ps3mediaserver@gmail.com on 31 Jan 2009 at 10:12

GoogleCodeExporter commented 9 years ago
oh, sorry.  I have also been playing with the Windows version, so I guess that's
where I saw it.  I think the OSX version is better so far, with a little 
tweaking it
will be a fantastic app.  Thanks again for all your hard work.

MEncoder still crashing quite a bit on OSX with certain files

Original comment by wefly...@yahoo.com on 31 Jan 2009 at 4:37

GoogleCodeExporter commented 9 years ago
Still crashing on feature length films.  I watched several tv shows with no 
MEncoder
crashes.  Once I try to watch a feature film, always a MEconder has crashed 
warning.

Original comment by wefly...@yahoo.com on 1 Feb 2009 at 5:13

GoogleCodeExporter commented 9 years ago
I always get the same message:  Mencoder has a return code of 139!  Maybe an 
error
occurred.  Check the log file

Original comment by wefly...@yahoo.com on 1 Feb 2009 at 5:20

GoogleCodeExporter commented 9 years ago
More trials continue between the windows version and OSX.  The faster chip, 
Windows
in my case, does a far job of streaming with no crashes and minimal stutter.  
OSX
does a better job overall with a lesser CPU, however I cannot watch most .mkv's
because after a minimal amount of time, unless it it a smaller file such as a tv
program, I receive a Mencoder error..ALWAYS.  Not so with the windows version.  
The
windows version always seems to run out of buffer and stutter which the OSX 
version
does NOT do.  If it were not for the crashing in Mencoder, the OSX version 
would be
perfect.!!!

Original comment by wefly...@yahoo.com on 1 Feb 2009 at 6:39

GoogleCodeExporter commented 9 years ago
We are working on a solution for mencoder crashes and mkfifo problems but it's 
proven
to be difficult to solve for now.

Original comment by robinmul...@gmail.com on 1 Feb 2009 at 12:12

GoogleCodeExporter commented 9 years ago
Again, thanks for your hard work.  Still better than everything else out there.

Original comment by wefly...@yahoo.com on 1 Feb 2009 at 7:33

GoogleCodeExporter commented 9 years ago
maybe we can close this general issue, and open more specific ones from now on 
? I'd 
like to not have a forum here :p

Original comment by ps3mediaserver@gmail.com on 6 Feb 2009 at 9:56

GoogleCodeExporter commented 9 years ago
Sure, the main purpose of this issue was OSX support, which we have for a while 
now :) 

There are already issues on all the other stuff that's going on for OSX. Please 
post
there or use the forums for more general issues.

Original comment by robinmul...@gmail.com on 6 Feb 2009 at 11:34

GoogleCodeExporter commented 9 years ago
Thanks a lot guys!
Had an issue with ffmpeg crashing (OSX 10.5.8), solved by using precompiled 
ffmpeg, mencoder and mplayer (comment 107), just replaced old binaries inside 
ps3 media server app with new ones. 

Original comment by pooka....@gmail.com on 14 Dec 2011 at 9:23