Installing PMS on NAS (Synology DS-211+)

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.

Re: Installing PMS on NAS (Synology DS-211+)

Postby Vallaquenta » Wed Jan 04, 2012 10:36 pm

Raptor399 wrote:
Vallaquenta wrote:The workaround above worked like a charm. I can now run the PSM process without any errors, however, when I try to transcode a movie, I get error messages in my log:
Code: Select all
[mencoder] ERROR 15:50:43.771 Fatal error in process initialization:
java.io.IOException: Cannot run program "mencoder": java.io.IOException: error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) ~[na:1.6.0_30]
        at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) ~[na:1.6.0_30]
        at java.lang.ProcessImpl.start(ProcessImpl.java:65) ~[na:1.6.0_30]
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ~[na:1.6.0_30]
        ... 1 common frames omitted


Any ideas?

The log is pretty clear: "Cannot run program "mencoder".
Make sure that MEncoder is installed properly and that it can be found and executed by PMS.


Oops, sorry, thought I added the locate part in. But I'm pretty sure it can be found by PMS.
Just to be sure I did a second SVN checkout and copied the files.
Here's the locate:
Code: Select all
/opt/local/mplayer/mplayer/cfg-mencoder.h
/opt/local/mplayer/mplayer/mencoder.c
/opt/local/mplayer/mplayer/mencoder.h
/opt/local/mplayer/mplayer/.svn/prop-base/cfg-mencoder.h.svn-base
/opt/local/mplayer/mplayer/.svn/prop-base/mencoder.c.svn-base
/opt/local/mplayer/mplayer/.svn/text-base/cfg-mencoder.h.svn-base
/opt/local/mplayer/mplayer/.svn/text-base/mencoder.c.svn-base
/opt/local/mplayer/mplayer/.svn/text-base/mencoder.h.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/cs/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/cs/.svn/prop-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/cs/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/de/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/de/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/en/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/en/.svn/prop-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/en/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/es/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/es/.svn/prop-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/es/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/fr/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/fr/.svn/prop-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/fr/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/hu/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/hu/.svn/prop-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/hu/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/it/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/it/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/pl/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/pl/.svn/prop-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/pl/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/ru/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/ru/.svn/prop-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/ru/.svn/text-base/mencoder.xml.svn-base
/opt/local/mplayer/mplayer/DOCS/xml/zh_CN/mencoder.xml
/opt/local/mplayer/mplayer/DOCS/xml/zh_CN/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/cfg-mencoder.h
/volume1/@optware/local/mplayer/mplayer/mencoder.c
/volume1/@optware/local/mplayer/mplayer/mencoder.h
/volume1/@optware/local/mplayer/mplayer/.svn/prop-base/cfg-mencoder.h.svn-base
/volume1/@optware/local/mplayer/mplayer/.svn/prop-base/mencoder.c.svn-base
/volume1/@optware/local/mplayer/mplayer/.svn/text-base/cfg-mencoder.h.svn-base
/volume1/@optware/local/mplayer/mplayer/.svn/text-base/mencoder.c.svn-base
/volume1/@optware/local/mplayer/mplayer/.svn/text-base/mencoder.h.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/cs/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/cs/.svn/prop-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/cs/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/de/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/de/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/en/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/en/.svn/prop-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/en/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/es/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/es/.svn/prop-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/es/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/fr/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/fr/.svn/prop-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/fr/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/hu/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/hu/.svn/prop-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/hu/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/it/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/it/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/pl/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/pl/.svn/prop-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/pl/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/ru/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/ru/.svn/prop-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/ru/.svn/text-base/mencoder.xml.svn-base
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/zh_CN/mencoder.xml
/volume1/@optware/local/mplayer/mplayer/DOCS/xml/zh_CN/.svn/text-base/mencoder.xml.svn-base



Is PMS scanning a specific directory for the mencoder files?
User avatar
Vallaquenta
 
Posts: 30
Joined: Wed Jan 04, 2012 11:00 am

Re: Installing PMS on NAS (Synology DS-211+)

Postby Raptor399 » Thu Jan 05, 2012 9:10 am

I don't see a "mencoder" in that locate output.
And "locate" wouldn't cut it; you need to be able to execute mencoder and it needs to be in the PATH.

In other words, you need to be able to do:
Code: Select all
which mencoder

or:
Code: Select all
mencoder -v

If these commands don't work, you didn't properly install mencoder.

(In all honesty: I don't understand one bit of the MEncoder download page. But with any luck installation instructions should be found there. Just know that "downloading the source from SVN" is not the same as "installing the binaries")
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Installing PMS on NAS (Synology DS-211+)

Postby Vallaquenta » Thu Jan 05, 2012 10:55 am

You're right about that one, but MPlayer is the package that contains MEncoder ;)

The which doesn't return a path. However, which mplayer does return a path.


Edit
So what I've done now is download the MPlayer from the HTTP source (MPlayer-1.0rc4) from: http://www.mplayerhq.hu/MPlayer/release ... c4.tar.bz2

this way:
Code: Select all
cd /volume1/@tmp
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2
tar zxvf MPlayer-1.0rc4.tar.bz2
mv MPlayer-1.0rc4 mplayer
cp -r /volume1/@tmp/mplayer /opt/local
cd /opt/local/mplayer
./configure
make
make install


I'm now busy with the last few steps. Will report back as soon as I'm done whether it's working or not.


Edit #2:
Just found out you can also download the latest source from: http://www.mplayerhq.hu/MPlayer/release ... ot.tar.bz2


Edit #3:
Ok, the thing I did above did work for the MEncoder part, now the only problem that's left there is the following. As soon as I try to use the MEncoder plugin, the playback crashes, as seen below with the MP4 file:
Code: Select all
[New I/O server worker #1-1] ERROR 12:37:14.596 There is no inputstream to return for [MEncoder] {Audio: AAC/Undetermined} {Sub: Embedded/Dutch}
[New I/O server worker #1-2] ERROR 12:37:26.044 There is no inputstream to return for [MEncoder] {Audio: AAC/Undetermined} {Sub: Embedded/Dutch}
[New I/O server worker #1-1] ERROR 12:37:57.973 There is no inputstream to return for I Am Number Four.mp4 [MEncoder] {External Subtitles}
[New I/O server worker #1-2] ERROR 12:38:09.443 There is no inputstream to return for I Am Number Four.mp4 [MEncoder] {External Subtitles}


However, with a plain AVI file, it does work, although when trying to transcode the file, it crashes once more.
Code: Select all
[New I/O server worker #1-1] ERROR 12:39:12.763 There is no inputstream to return for The Hangover Part II.avi [MEncoder]
[New I/O server worker #1-2] ERROR 12:39:24.143 There is no inputstream to return for The Hangover Part II.avi [MEncoder]
User avatar
Vallaquenta
 
Posts: 30
Joined: Wed Jan 04, 2012 11:00 am

Re: Installing PMS on NAS (Synology DS-211+)

Postby luukx20 » Fri Jan 13, 2012 9:33 pm

Hi,

Thanks for the guide, it's pretty clear for someone like me with very little experience with these kind of things.
After alot of struggling, trying, reading and googling, I got as far as the very last step without (I think) any problems.

Although, when I type

Code: Select all
./PMS.sh


I get the following output:

Code: Select all
./PMS.sh: exec: line 52: java: not found



Did something go wrong while installing java?
User avatar
luukx20
 
Posts: 9
Joined: Fri Jan 13, 2012 9:28 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby Vallaquenta » Fri Jan 13, 2012 9:36 pm

luukx20 wrote:Hi,

Thanks for the guide, it's pretty clear for someone like me with very little experience with these kind of things.
After alot of struggling, trying, reading and googling, I got as far as the very last step without (I think) any problems.

Although, when I type

Code: Select all
./PMS.sh


I get the following output:

Code: Select all
./PMS.sh: exec: line 52: java: not found



Did something go wrong while installing java?


Yup. Try to download and install version 6.30 for your system, that should do the trick.
User avatar
Vallaquenta
 
Posts: 30
Joined: Wed Jan 04, 2012 11:00 am

Re: Installing PMS on NAS (Synology DS-211+)

Postby luukx20 » Fri Jan 13, 2012 10:33 pm

Vallaquenta wrote:
luukx20 wrote:Hi,

Thanks for the guide, it's pretty clear for someone like me with very little experience with these kind of things.
After alot of struggling, trying, reading and googling, I got as far as the very last step without (I think) any problems.

Although, when I type

Code: Select all
./PMS.sh


I get the following output:

Code: Select all
./PMS.sh: exec: line 52: java: not found



Did something go wrong while installing java?


Yup. Try to download and install version 6.30 for your system, that should do the trick.



Thanks for the quick answer, I followed the steps to install "ejre1.6.0_30", I also modified the "opt/etc/profile" and the "etc/profile" files,
do the profile files have alot to do with wether or not PMS.sh can execute java?

Because I'm not sure if I modified the files correctly, this is what they look like:

/opt/etc/profile
Code: Select all
#
# Bash initialization script
#

PS1="[\u@\h \W]$ "
PATH=/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
JAVA_HOME=/opt/java/ejre1.6.0_30

export PS1 PATH LD_LIBRARY_PATH JAVA_HOME



/etc/profile
Code: Select all
#/etc/profile: system-wide .profile file for ash.
PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin"
umask 022
#This fixes the backspace when telnetting in.
#if [ "$TERM" != "linux" ]; then
#        stty erase
#fi
PGDATA=/var/service/pgsql
export PATH PGDATA
HOME=/root
export HOME
TERM=${TERM:-cons25}
export TERM
PAGER=more
export PAGER
PS1="`hostname`> "
alias dir="ls -al"
alias ll="ls -la"
ulimit -c unlimited
PATH=/opt/java/ejre1.6.0_30/bin:/opt/bin:/opt/sbin:$PATH
JAVA_HOME=/opt/java/ejre1.6.0_30
export JAVA_HOME
User avatar
luukx20
 
Posts: 9
Joined: Fri Jan 13, 2012 9:28 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby Vallaquenta » Fri Jan 13, 2012 10:40 pm

@Luuk:

I've had a look at my own install and it is the same as yours, so your PMS should be working. Have you done:
Code: Select all
jar uf /opt/local/pms-linux-1.50.0/pms.jar /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/libjnidispatch.so



Other question: any clues as to why my MEncoder/MPlayer isn't working?
User avatar
Vallaquenta
 
Posts: 30
Joined: Wed Jan 04, 2012 11:00 am

Re: Installing PMS on NAS (Synology DS-211+)

Postby luukx20 » Fri Jan 13, 2012 10:46 pm

Vallaquenta wrote:@Luuk:

I've had a look at my own install and it is the same as yours, so your PMS should be working. Have you done:
Code: Select all
jar uf /opt/local/pms-linux-1.50.0/pms.jar /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/libjnidispatch.so



Other question: any clues as to why my MEncoder/MPlayer isn't working?



Okay thanks, I did the jar uf thing on my desktop (windows7), took me a while to figure out how to do it, but I'm pretty sure I did it right,
and then I just copied the pms.jar back to the nas.

As I haven't been able to get PMS running, I don't know if MEncoder/MPlayer will work for me, the fact that it doesn't work for you scares me though,
I don't wanna run into that problem as well lol.
User avatar
luukx20
 
Posts: 9
Joined: Fri Jan 13, 2012 9:28 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby Vallaquenta » Fri Jan 13, 2012 10:48 pm

Hm, have you tried issueing the command on your NAS? If the jar doesn't work, try to gjar it, so that:
Code: Select all
jar uf /opt/local/pms-linux-1.50.0/pms.jar /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/libjnidispatch.so


becomes:
Code: Select all
gjar uf /opt/local/pms-linux-1.50.0/pms.jar /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/libjnidispatch.so
User avatar
Vallaquenta
 
Posts: 30
Joined: Wed Jan 04, 2012 11:00 am

Re: Installing PMS on NAS (Synology DS-211+)

Postby luukx20 » Fri Jan 13, 2012 10:54 pm

Vallaquenta wrote:Hm, have you tried issueing the command on your NAS? If the jar doesn't work, try to gjar it, so that:
Code: Select all
jar uf /opt/local/pms-linux-1.50.0/pms.jar /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/libjnidispatch.so


becomes:
Code: Select all
gjar uf /opt/local/pms-linux-1.50.0/pms.jar /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/libjnidispatch.so



Gjar doesn't work, again, telling me that java couldn't be found, I must've done something wrong somewhere.
User avatar
luukx20
 
Posts: 9
Joined: Fri Jan 13, 2012 9:28 pm

PreviousNext

Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 4 guests