Thanks again for the quick reply Amir,
as for your questions:
1)No there is nothing different in the debug.log that i see in terms of when i run the application as a daemon vs when i run it directly from its folder:
# /etc/init.d/PS3MediaServer Start
or
# sh ./PMS.sh
I see this error in both cases:
[main] TRACE 21:22:30.653 Error in MediaInfo Library loading: Unable to load library 'mediainfo': libmediainfo.so: cannot open shared object file: No such file or directory
[main] TRACE 21:22:30.654 Make sure you have libmediainfo and libzen installed
[main] TRACE 21:22:30.654 The server will now use the less accurate ffmpeg parsing method
but i don't think it has anything to do with the problem i am having.
I found 3 scripts in the forum here for an init.d script and i tried them all [here are the results of that ]:
1)
viewtopic.php?f=3&t=902 --> I did this one first and i noticed that on bootup the server starts but i can't watch anything because the PS3 can't decode any files, it says Currpted Data
With this script i can Start/Stop the daemon with the #/etc/init.d/PS3MediaServer Start and #/etc/init.d/PS3MediaServer Stop
so then i tried this one
2)
viewtopic.php?f=3&t=902 --> The script in sanju's post and everything seemed to work. The server started at bootup and i was able to watch most videos. With this script i CANNOT Start/Stop the daemon with the #/etc/init.d/PS3MediaServer Start and #/etc/init.d/PS3MediaServer Stop
However the problem here was that it wasn't able to play any HD videos. MKV and m2ts was not playing. normal avi was fine. I saw same behavior when i run the application as a daemon vs when i run it directly from its folder:
# /etc/init.d/PS3MediaServer Start
or
# sh ./PMS.sh
meaning in both ways it wouldn't play MKV, m2ts ...
At this point i figured it had something to do with FFMPEG. so i followed the tutorial here :
viewtopic.php?f=3&t=3437 untill the last step because i didn't want to use the BETA unstable version of the media server. Once that installation was done i ran # sh ./PMS.sh from the old application folder and voila it can now play the MKV and m2ts files. But then when i ran it as the daemon using # /etc/init.d/PS3MediaServer Start i am back to not being able to play the MKV, m2ts
At this point i searched for another init.d script and found the following:
3)
viewtopic.php?f=3&t=154&start=40 and tried it. In this one i can 'start' and 'stop' the daemon and the server starts up at bootup. But again i have the problem of not being able to play the videos (MKV, M2ts ...).
So i also noticed that the 'PATH' inside the init.d script has to be right and if i am missing folders it won't work properly.
this is what i have
PMS_ROOT=/opt/pms
PATH=$PMS_ROOT:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/local/lib
As i mentioned before i am running Ubuntu 9.04 without X as a server in my basement and so i need the PS3Media server to launch and run as a daemon at bootup or even starting it through ssh terminal is fine at this point. When i launch it as # sh ./PMS.sh from terminal through ssh it launches the app on my laptop and everything works fine until i close the ssh connection, then no more PS3 media server. But if i run it from init.d script through ssh it keeps running after the ssh connection is closed, however i can't watch the MKV files. I looked everywhere for a solution but i have not been successful.
The GIST here is that PS3 Media Server is installed and working perfectly fine without any problems (plays all the expected video formats properly) on the server. The problem i am having is when i launch it as a service with an init.d script i cannot watch MKV, m2ts videos.
Thanks again for the help everyone and i apologize for the long post..
.