Can PMS be run without Mplayer, ffmpeg or Mencoder

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

Can PMS be run without Mplayer, ffmpeg or Mencoder

Postby NikNac » Tue Jan 20, 2009 1:37 am

Hi there,

I have PMS running on my Win XP machine but want to run it on a headless NAS/Media server running a stripped down version of FreeBSD 6.4. I've installed the Diablo JRE package and have tried to run PMS using the config file from 1.02.1(from a previous attempt) but the connection closed when the PS3 tries to connect. I'll post the debug log when I get home.

As mentioned I haven't been able to get PMS to run but I think it may have something to do with the fact I don't have Mplayer, ffmpeg or Mencoder installed on my FreeBSD platform. So I want to try and run it without these packages. My NAS (Celeron 700) couldn't cope with transcoding. I just want PMS to serve up my MP3s and AVIs as they are. If I need to transcode I'll use my windows machine. It's only on the odd occasion I'll need to transcode. What I love so much about PMS is the playlist feature - something I have not been able to get to work on otehr media servers I've tried. All I really want to do is simply be able to use playlists to play music so I can get rid of the hideous mess of songs on the PS3.

Is this possible.

Here is my debug log

freenas:/ftmp/pms-linux-1.03/pms-linux-1.03# ./PMS.sh console
GUI environment no available
Switching to console mode
[main] TRACE 17:42:50.420 Starting Java PS3 Media Server v1.03
[main] TRACE 17:42:50.429 by shagrath / 2008
[main] TRACE 17:42:50.430 http://ps3mediaserver.blogspot.com
[main] TRACE 17:42:50.430
[main] TRACE 17:42:50.431 Java 1.6.0_07-The FreeBSD Foundation
[main] TRACE 17:42:50.433 OS FreeBSD i386 6.4-RELEASE
[main] TRACE 17:42:50.435 Encoding: ISO8859-1
[main] TRACE 17:42:50.479 Temp folder: /var/tmp/javaps3media
java.io.IOException: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at net.pms.PMS.checkProcessExistence(PMS.java:202)
at net.pms.PMS.init(PMS.java:304)
at net.pms.PMS.get(PMS.java:867)
at net.pms.PMS.main(PMS.java:927)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 6 more
[main] 17:42:50.545 Cannot launch FFmpeg / Check the presence of /ftmp/pms-linux-1.03/pms-linux-1.03/ffmpeg ...: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
java.io.IOException: Cannot run program "mplayer": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at net.pms.PMS.checkProcessExistence(PMS.java:202)
at net.pms.PMS.init(PMS.java:307)
at net.pms.PMS.get(PMS.java:867)
at net.pms.PMS.main(PMS.java:927)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 6 more
[main] 17:42:50.637 Cannot launch MPlayer / Check the presence of /ftmp/pms-linux-1.03/pms-linux-1.03/mplayer ...: Cannot run program "mplayer": java.io.IOException: error=2, No such file or directory
java.io.IOException: Cannot run program "mencoder": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at net.pms.PMS.checkProcessExistence(PMS.java:202)
at net.pms.PMS.init(PMS.java:309)
at net.pms.PMS.get(PMS.java:867)
at net.pms.PMS.main(PMS.java:927)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 6 more
[main] 17:42:50.692 Cannot launch MEncoder / Check the presence of /ftmp/pms-linux-1.03/pms-linux-1.03/mencoder ...: Cannot run program "mencoder": java.io.IOException: error=2, No such file or directory
[main] TRACE 17:42:50.892 Registering transcoding engine FFmpeg Audio
[main] TRACE 17:42:50.954 Registering transcoding engine MEncoder
[main] TRACE 17:42:50.958 Registering transcoding engine MPlayer Audio
[main] TRACE 17:42:50.962 Registering transcoding engine MEncoder Web
[main] TRACE 17:42:50.965 Registering transcoding engine MPlayer Video Dump
[main] TRACE 17:42:50.968 Registering transcoding engine MPlayer Web
[main] TRACE 17:42:50.984 Registering transcoding engine TsMuxer
[main] TRACE 17:42:50.987 Registering transcoding engine Audio High Fidelity
[main] TRACE 17:42:50.997 Registering transcoding engine VideoLan Audio Streaming
[main] TRACE 17:42:51.000 Registering transcoding engine VideoLan Video Streaming
[main] TRACE 17:42:51.393 Scanning network interface lo0 / lo0
[main] TRACE 17:42:51.401 Scanning network interface rl0 / rl0
[main] TRACE 17:42:51.406 Using address /192.168.0.101 found on network interface: name:rl0 (rl0) index: 1 addresses: /192.168.0.101;
[main] TRACE 17:42:51.409 Created socket: /192.168.0.101:5001
[Thread-3] TRACE 17:42:51.472 Starting DLNA Server on host 192.168.0.101 and port 5001...
[main] TRACE 17:42:51.556 Using following UUID: 9f353de6-54b8-327e-9fde-b988034ba762
[main] TRACE 17:42:52.293 It's ready! You should see the server appears on XMB
[Thread-3] TRACE 17:42:52.356 Receiving a request from: 192.168.0.100
[Thread-7] TRACE 17:43:45.788 Receiving search request from 192.168.0.100! Sending DISCOVER message...
NikNac
 
Posts: 16
Joined: Mon Jan 19, 2009 5:31 am

Re: Can PMS be run without Mplayer, ffmpeg or Mencoder

Postby Topguy » Tue Jan 20, 2009 11:53 am

There could be the possibility to trick PMS to think it has the programs. You could either make some shell scripts that return Ok no matter what or make some symbolic links to a harmless program.

But I really cant see in your debug.log any reason why the link between the PS3 and server should fail. Did you try to play a file or did you just start up the server ?
Topguy
 
Posts: 219
Joined: Mon Jan 19, 2009 9:27 pm

Re: Can PMS be run without Mplayer, ffmpeg or Mencoder

Postby NikNac » Tue Jan 20, 2009 9:52 pm

Thanks Topguy,

I wasn't able to play a file - the PS3 couldn't see the media server.

So I bit the bullet and installed ffmpeg on to my FreeNAS system. No mean feat since the OS has been stripped of most FreeBSD objects, pacakges, whatever they are called. You have to install each package independantly (there is no pacakage list in the OS and Csup didn't want to work for me). But I did it and PMS works and I am just so happy.

Now I have to install Mplayer (which from what I've read includes mencoder) and I'll see what happens. I think I can disable transcoding from the PMS.conf file - I'll have a look at my windows file and see if that works.

I have to say I am pretty happy right now. After using FUPPES for so long I thought there was little else that would work until I found PMS. Once I have a few spare $$ I be sure to make a donation. Cheers
NikNac
 
Posts: 16
Joined: Mon Jan 19, 2009 5:31 am

Re: Can PMS be run without Mplayer, ffmpeg or Mencoder

Postby Topguy » Wed Jan 21, 2009 10:50 am

NikNac wrote:Thanks Topguy,

I wasn't able to play a file - the PS3 couldn't see the media server.

So I bit the bullet and installed ffmpeg on to my FreeNAS system. No mean feat since the OS has been stripped of most FreeBSD objects, pacakges, whatever they are called. You have to install each package independantly (there is no pacakage list in the OS and Csup didn't want to work for me). But I did it and PMS works and I am just so happy.

Now I have to install Mplayer (which from what I've read includes mencoder) and I'll see what happens. I think I can disable transcoding from the PMS.conf file - I'll have a look at my windows file and see if that works.

I have to say I am pretty happy right now. After using FUPPES for so long I thought there was little else that would work until I found PMS. Once I have a few spare $$ I be sure to make a donation. Cheers


I think that you should be able to view the server regardless of encoding engines. So I think you should concentrate on that instead of messing with mplayer (which I think will be a much bigger hassel than ffmpeg )

[Thread-3] TRACE 17:42:52.356 Receiving a request from: 192.168.0.100
[Thread-7] TRACE 17:43:45.788 Receiving search request from 192.168.0.100! Sending DISCOVER message...

Is this the IP address of your PS3 ?? You should see this message when you turn on the PS3. But I also know that other DLNA-software also generate these. (TVersity every 20min for example)
Topguy
 
Posts: 219
Joined: Mon Jan 19, 2009 9:27 pm

Re: Can PMS be run without Mplayer, ffmpeg or Mencoder

Postby NikNac » Wed Jan 21, 2009 7:24 pm

Thanks again Topguy. I may have been missing a pacakge which was installed when I installed ffmpeg (there were about 10 different packages I need to install before installing ffmpeg).

PMS is working fine now - loading with no problems and the PS3 can see it. I've started another post asking how to rebuild the media library. ANd one other think I've noticed is the app stops if there is no connection from the PS3 for an hour or so - that'll be another post.
NikNac
 
Posts: 16
Joined: Mon Jan 19, 2009 5:31 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: Google [Bot] and 6 guests