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 Raptor399 » Thu Dec 01, 2011 9:06 am

I'm not familiar with the Linux version of PMS, but the error is pretty clear: the required executable "mencoder" cannot be found.

Is "mencoder" installed anywhere in your path and is it executable?
Try doing one of these:
Code: Select all
which mencoder

or
Code: Select all
locate mencoder


Make sure all required executables are properly installed.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

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

Postby youngc29 » Thu Dec 01, 2011 10:49 am

yeah I checked this already :)

from the tut mplayer was installed via svn and originally was in /opt/local/mplayer/mplayer, so I moved all the files into the dir above but still no go.
currently its:
Code: Select all
DiskStation> cd /opt/local/mplayer/
DiskStation> ls -la

-rwxr-xr-x 1 admin users  56429 Nov 30 00:00 mencoder.c
-rwxr-xr-x 1 admin users   1075 Nov 30 00:00 mencoder.h
youngc29
 
Posts: 2
Joined: Wed Nov 30, 2011 2:18 pm

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

Postby synops » Thu Dec 01, 2011 7:22 pm

Hi youngc29,

what does
Code: Select all
which mencoder

return?

My suspicion - you have downloaded mencoder, but neither compiled nor installed it.
synops
 
Posts: 10
Joined: Sat Oct 22, 2011 10:55 am

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

Postby m3digi » Sun Dec 04, 2011 6:32 am

I'm still having the same issue with PMS not being able to find mencoder, as well as an issue with it trying to run 'mkfifo', which isn't anywhere on my DS409slim. My understanding is that 'mknod' has replaced it, but I don't know how to get PMS to reference mknod in place of mkfifo.

I have attached the output of my PMS debug.log file. Also, when I enter the IP address for the PMS console, should there be a web interface for configurations? All I get is a blank screen.

Thanks!

Code: Select all
[main] INFO  00:21:43.606 Starting PS3 Media Server 1.50.0
[main] INFO  00:21:43.626 by shagrath / 2008-2011
[main] INFO  00:21:43.627 http://ps3mediaserver.org
[main] INFO  00:21:43.627 http://code.google.com/p/ps3mediaserver
[main] INFO  00:21:43.628 http://ps3mediaserver.blogspot.com
[main] INFO  00:21:43.628
[main] INFO  00:21:43.629 Java: 1.7.0-Oracle Corporation
[main] INFO  00:21:43.631 OS: Linux arm 2.6.32.12
[main] INFO  00:21:43.632 Encoding: UTF-8
[main] INFO  00:21:43.633 Working directory: /opt/etc/pms
[main] INFO  00:21:43.672 Temp folder: /tmp/ps3mediaserver
[main] INFO  00:21:43.673 Logging config file: /opt/etc/pms/logback.headless.xml
[main] INFO  00:21:43.674 debug.log: /opt/etc/pms/debug.log
[main] INFO  00:21:43.675
[main] INFO  00:21:43.675 Profile directory: /opt/etc/pms
[main] INFO  00:21:43.681 Profile path: /opt/etc/pms/PMS.conf
[main] INFO  00:21:43.683 Profile status: rw
[main] INFO  00:21:43.684 Profile name: DigiStation
[main] INFO  00:21:43.685
[main] WARN  00:21:44.217 Error loading libzen: /tmp/jna3707254271318350844.tmp: libffi.so.5: cannot open shared object file: No such file or directory
[main] INFO  00:21:44.218 Loading MediaInfo library
[main] INFO  00:21:44.228 Error loading MediaInfo library: Could not initialize class com.sun.jna.Native
[main] INFO  00:21:44.229 Make sure you have libmediainfo and libzen installed
[main] INFO  00:21:44.229 The server will now use the less accurate ffmpeg parsing method
[main] INFO  00:21:44.281 Loading renderer configurations from /opt/etc/pms/renderers
[main] INFO  00:21:44.300 Loading configuration file: WMP.conf
[main] INFO  00:21:44.352 Loading configuration file: SamsungAllShare.conf
[main] INFO  00:21:44.369 Loading configuration file: Android.conf
[main] INFO  00:21:44.397 Loading configuration file: Showtime3.conf
[main] INFO  00:21:44.420 Loading configuration file: Philips.conf
[main] INFO  00:21:44.441 Loading configuration file: AirPlayer.conf
[main] INFO  00:21:44.478 Loading configuration file: XBOX360.conf
[main] INFO  00:21:44.497 Loading configuration file: Panasonic.conf
[main] INFO  00:21:44.520 Loading configuration file: SamsungWiseLink.conf
[main] INFO  00:21:44.599 Loading configuration file: WDTVLive.conf
[main] INFO  00:21:44.635 Loading configuration file: PopcornHour.conf
[main] INFO  00:21:44.661 Loading configuration file: XBMC.conf
[main] INFO  00:21:44.694 Loading configuration file: Bravia5500.conf
[main] INFO  00:21:44.744 Loading configuration file: Kuro.conf
[main] INFO  00:21:44.764 Loading configuration file: Streamium.conf
[main] INFO  00:21:44.782 Loading configuration file: PS3.conf
[main] INFO  00:21:44.825 Loading configuration file: BraviaEX.conf
[main] INFO  00:21:44.836 Loading configuration file: Realtek.conf
[main] INFO  00:21:44.857 Loading configuration file: FreecomMusicPal.conf
[main] INFO  00:21:44.880 Loading configuration file: iPad-iPhone.conf
[main] INFO  00:21:44.909 Loading configuration file: N900.conf
[main] INFO  00:21:44.924 Loading configuration file: Bravia4500.conf
[main] INFO  00:21:44.941 Loading configuration file: SonyBluray.conf
[main] INFO  00:21:45.017 Loading configuration file: FreeboxHD.conf
[main] INFO  00:21:45.051 Checking MPlayer font cache. It can take a minute or so.
[main] DEBUG 00:21:45.072 launching: mplayer
[main] INFO  00:21:45.450 Done!
[main] INFO  00:21:45.677 Searching for plugins in /opt/etc/pms/plugins
[main] INFO  00:21:45.712 No plugins found
[main] INFO  00:21:45.798 Registering transcoding engine: FFmpeg Audio
[main] INFO  00:21:45.948 Registering transcoding engine: MEncoder
[main] INFO  00:21:45.951 Registering transcoding engine: MPlayer Audio
[main] INFO  00:21:45.954 Registering transcoding engine: MEncoder Web
[main] INFO  00:21:45.956 Registering transcoding engine: MPlayer Video Dump
[main] INFO  00:21:45.957 Registering transcoding engine: MPlayer Web
[main] INFO  00:21:45.978 Registering transcoding engine: tsMuxeR
[main] INFO  00:21:45.980 Registering transcoding engine: Audio High Fidelity
[main] INFO  00:21:45.983 Registering transcoding engine: VLC Audio Streaming
[main] INFO  00:21:45.984 Registering transcoding engine: VLC Video Streaming
[main] INFO  00:21:45.988 Registering transcoding engine: Raws Thumbnailer
[main] INFO  00:21:46.066 Scanning network interface eth0 (eth0)
[main] INFO  00:21:46.069 Using address /10.15.225.70 found on network interface: name:eth0 (eth0)
[main] INFO  00:21:46.070 Created socket: /10.15.225.70:5555
[main] DEBUG 00:21:46.977 Sending ALIVE...
[main] INFO  00:21:46.998 Using the following UUID configured in PMS.conf: 33970f57-9487-356d-97ef-317b4e30b9fc
[New I/O server worker #1-1] INFO  00:21:49.915 No IP filter specified, access granted to /10.15.225.7
[New I/O server worker #1-2] INFO  00:21:49.917 No IP filter specified, access granted to /10.15.225.72
[New I/O server worker #1-1] INFO  00:21:50.011 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[pool-3-thread-1] INFO  00:21:50.111 Checking ip:10.15.225.72 for Sony Bravia EX
[New I/O server worker #1-1] INFO  00:21:50.300 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[New I/O server worker #1-2] INFO  00:21:50.341 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[pool-3-thread-1] INFO  00:21:50.372 Renderer Sony Bravia EX found on this address: 10.15.225.72
[pool-3-thread-1] DEBUG 00:21:50.458 Starting ping -c 3 -s 64000 10.15.225.72
[pool-3-thread-1] DEBUG 00:21:50.665 Unix process ID (ping): 6764
[New I/O server worker #1-1] INFO  00:21:50.721 Checking shared folder: /volume1/video
[New I/O server worker #1-1] INFO  00:21:50.722 Checking shared folder: /volume1/photo
[New I/O server worker #1-1] INFO  00:21:50.758 Checking shared folder: /volume1/music
[Thread-6] DEBUG 00:21:52.461 Stopping Unix process 6764: ping
[main] INFO  00:21:54.312 The server should now appear on your renderer
[pool-6-thread-2] DEBUG 00:21:55.839 Starting ffmpeg -ss 1 -i "/volume1/video/Concerts/BBC Sessions - Amy Winehouse.mkv" -an -an -s 320x180 -vframes 1 -f image2 pipe:
[pool-6-thread-2] DEBUG 00:21:56.136 Attaching thread: ffmpeg
[pool-6-thread-2] DEBUG 00:21:56.137 Unix process ID (ffmpeg): 6780
[Thread-16] DEBUG 00:22:00.451 Stopping Unix process 6780: ffmpeg
[New I/O server worker #1-2] INFO  00:22:01.486 Starting transcode/remux of BBC Sessions - Amy Winehouse.mkv
[New I/O server worker #1-2] DEBUG 00:22:01.596 Starting ffmpeg -vframes 1 -i "/volume1/video/Concerts/BBC Sessions - Amy Winehouse.mkv" -vcodec copy -f h264 -vbsf h264_mp4toannexb -an -y pipe:
[New I/O server worker #1-2] DEBUG 00:22:01.630 Attaching thread: ffmpeg
[Thread-19] DEBUG 00:22:01.898 FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[Thread-19] DEBUG 00:22:01.899   configuration: --enable-cross-compile --cross-prefix=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi- --arch=arm --disable-encoder=snow --disable-decoder=snow --enable-shared --disable-static --enable-gpl --enable-postproc --prefix=/opt
[Thread-19] DEBUG 00:22:01.900   libavutil version: 49.6.0
[Thread-19] DEBUG 00:22:01.900   libavcodec version: 51.54.0
[Thread-19] DEBUG 00:22:01.900   libavformat version: 52.13.0
[New I/O server worker #1-2] DEBUG 00:22:01.631 Unix process ID (ffmpeg): 6787
[Thread-19] DEBUG 00:22:01.901   libavdevice version: 52.0.0
[Thread-19] DEBUG 00:22:01.913   built on Nov 23 2010 22:02:29, gcc: 4.2.3
[Thread-19] DEBUG 00:22:01.913 [matroska @ 0x400afdf4]Ignoring seekhead entry for ID=0x1549a966
[Thread-19] DEBUG 00:22:01.913 [matroska @ 0x400afdf4]Ignoring seekhead entry for ID=0x1654ae6b
[Thread-19] DEBUG 00:22:01.914 [matroska @ 0x400afdf4]Ignoring seekhead entry for ID=0x114d9b74
[Thread-19] DEBUG 00:22:01.914 [matroska @ 0x400afdf4]Unknown entry 0x73a4 in info header
[Thread-19] DEBUG 00:22:01.914 [matroska @ 0x400afdf4]Unknown track header entry 0x55aa - ignoring
[Thread-19] DEBUG 00:22:01.915 [matroska @ 0x400afdf4]Unknown track header entry 0x23314f - ignoring
[Thread-19] DEBUG 00:22:01.915 [matroska @ 0x400afdf4]Unknown track header entry 0x55ee - ignoring
[Thread-19] DEBUG 00:22:01.916 [matroska @ 0x400afdf4]Unknown track header entry 0xaa - ignoring
[Thread-19] DEBUG 00:22:01.916 [matroska @ 0x400afdf4]Unknown track header entry 0x55aa - ignoring
[Thread-19] DEBUG 00:22:01.917 [matroska @ 0x400afdf4]Unknown track header entry 0x23314f - ignoring
[Thread-19] DEBUG 00:22:01.917 [matroska @ 0x400afdf4]Unknown track header entry 0x55ee - ignoring
[Thread-19] DEBUG 00:22:01.917 [matroska @ 0x400afdf4]Unknown track header entry 0xaa - ignoring
[Thread-19] DEBUG 00:22:01.981 Input #0, matroska, from '/volume1/video/Concerts/BBC Sessions - Amy Winehouse.mkv':
[Thread-19] DEBUG 00:22:02.183   Duration: 00:51:10.1, start: 0.000000, bitrate: N/A
[Thread-19] DEBUG 00:22:02.183     Stream #0.0: Video: h264, yuv420p, 720x404 [PAR 1:1 DAR 180:101], 25.00 tb(r)
[Thread-19] DEBUG 00:22:02.184     Stream #0.1(eng): Audio: mp3, 48000 Hz, stereo
[Thread-19] DEBUG 00:22:02.184 Output #0, h264, to 'pipe:':
[Thread-19] DEBUG 00:22:02.184     Stream #0.0: Video: 0x0000, yuv420p, 720x404, q=2-31, 1000.00 tb(c)
[Thread-19] DEBUG 00:22:02.185 Stream mapping:
[Thread-19] DEBUG 00:22:02.185   Stream #0.0 -> #0.0
[Thread-19] DEBUG 00:22:02.185 Press [q] to stop encoding
[Thread-19] DEBUG 00:22:02.186 frame=    1 fps=  0 q=-1.0 Lsize=      22kB time=0.0 bitrate=17633.6kbits/s   
[Thread-19] DEBUG 00:22:02.186 video:21kB audio:0kB global headers:0kB muxing overhead 0.163592%
[mkfifo] DEBUG 00:22:03.202 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1322976123159tsmuxerout.ts
[mkfifo] DEBUG 00:22:03.263 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1322976123107videoout
[mkfifo] DEBUG 00:22:03.265 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1322976123107ffmpegvideo
[Thread-23] DEBUG 00:22:03.466 Error :/tmp/ps3mediaserver/1322976123107ffmpegvideo (No such file or directory)
[mencoder] DEBUG 00:22:03.482 Starting mencoder -ss 0 "/volume1/video/Concerts/BBC Sessions - Amy Winehouse.mkv" -quiet -quiet -really-quiet -msglevel statusline=2 -ovc copy -nosound -mc 0 -noskip -of rawvideo -o /tmp/ps3mediaserver/1322976123107ffmpegvideo
[mkfifo] ERROR 00:22:03.526 Fatal error in process initialization:
java.io.IOException: Cannot run program "mkfifo": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.7.0]
   at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0]
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0]
   at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0]
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ~[na:1.7.0]
   ... 1 common frames omitted
[mkfifo] ERROR 00:22:03.530 Fatal error in process initialization:
java.io.IOException: Cannot run program "mkfifo": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.7.0]
   at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0]
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0]
   at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0]
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ~[na:1.7.0]
   ... 1 common frames omitted
[mencoder] ERROR 00:22:03.534 Fatal error in process initialization:
java.io.IOException: Cannot run program "mencoder": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.7.0]
   at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0]
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0]
   at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0]
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ~[na:1.7.0]
   ... 1 common frames omitted
[mkfifo] ERROR 00:22:03.536 Fatal error in process initialization:
java.io.IOException: Cannot run program "mkfifo": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.7.0]
   at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0]
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0]
   at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0]
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ~[na:1.7.0]
   ... 1 common frames omitted
[mkfifo] DEBUG 00:22:03.544 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1322976123135ffmpegaudio01
[mkfifo] ERROR 00:22:03.555 Fatal error in process initialization:
java.io.IOException: Cannot run program "mkfifo": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.7.0]
   at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0]
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0]
   at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0]
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ~[na:1.7.0]
   ... 1 common frames omitted
[mkfifo] DEBUG 00:22:03.556 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1322976123135audioout
[mkfifo] ERROR 00:22:03.564 Fatal error in process initialization:
java.io.IOException: Cannot run program "mkfifo": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.7.0]
   at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0]
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0]
   at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0]
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ~[na:1.7.0]
   ... 1 common frames omitted
[Thread-24] DEBUG 00:22:03.715 Error :/tmp/ps3mediaserver/1322976123135ffmpegaudio01 (No such file or directory)
[mencoder] DEBUG 00:22:03.772 Starting mencoder -ss 0 "/volume1/video/Concerts/BBC Sessions - Amy Winehouse.mkv" -quiet -quiet -really-quiet -msglevel statusline=2 -channels 6 -ovc copy -of rawaudio -mc 0 -noskip -oac lavc -quiet -quiet -lavcopts acodec=ac3:abitrate=448 -af lavcresample=48000 -srate 48000 -quiet -quiet -o /tmp/ps3mediaserver/1322976123135ffmpegaudio01
[mencoder] ERROR 00:22:03.776 Fatal error in process initialization:
java.io.IOException: Cannot run program "mencoder": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.7.0]
   at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0]
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0]
   at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0]
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ~[na:1.7.0]
   ... 1 common frames omitted
[linux/tsMuxeR] DEBUG 00:22:03.882 Starting /opt/etc/pms/linux/tsMuxeR /tmp/ps3mediaserver/pms-tsmuxer.meta /tmp/ps3mediaserver/1322976123159tsmuxerout.ts
[linux/tsMuxeR] DEBUG 00:22:03.952 Reading pipe: /tmp/ps3mediaserver/1322976123159tsmuxerout.ts
[linux/tsMuxeR] ERROR 00:22:03.954 Fatal error in process initialization:
java.io.FileNotFoundException: /tmp/ps3mediaserver/1322976123159tsmuxerout.ts (No such file or directory)
   at java.io.RandomAccessFile.open(Native Method) ~[na:1.7.0]
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) ~[na:1.7.0]
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:118) ~[na:1.7.0]
   at net.pms.io.PipeProcess.getInputStream(PipeProcess.java:128) ~[pms.jar:na]
   at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:129) ~[pms.jar:na]
[linux/tsMuxeR] DEBUG 00:22:03.959 Stopping Unix process 6809: linux/tsMuxeR
[Thread-10] DEBUG 00:22:04.321 Sending ALIVE...
[Thread-18] DEBUG 00:22:04.631 Stopping Unix process 6787: ffmpeg
[New I/O server worker #1-2] ERROR 00:22:13.991 There is no inputstream to return for BBC Sessions - Amy Winehouse.mkv [MEncoder]
[Thread-10] DEBUG 00:22:28.231 Sending ALIVE...
[Thread-5] INFO  00:22:28.549 Sending BYEBYE...
[New I/O server worker #1-2] INFO  00:22:29.143 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[New I/O server worker #1-2] INFO  00:22:29.174 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[New I/O server worker #1-1] INFO  00:22:29.196 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[New I/O server worker #1-1] INFO  00:22:29.712 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[New I/O server worker #1-1] INFO  00:22:29.746 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[New I/O server worker #1-1] INFO  00:22:29.771 Media renderer was not recognized. Possible identifying HTTP headers: User-Agent: INTEL_NMPR/2.1 DLNADOC/1.50 Intel MicroStack/1.0.1423
[Thread-5] DEBUG 00:22:31.922 Forcing shutdown of all active processes
[Thread-5] INFO  00:22:31.923 Stopping server on host 10.15.225.70 and port 5555...
m3digi
 
Posts: 5
Joined: Sat Nov 26, 2011 1:38 pm

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

Postby bestmitbbs » Fri Dec 16, 2011 7:27 pm

Tried to follow mark's guide on the installation. Got a problem at the following step:
Code: Select all
root@yournas> cd /volume1/@tmp/
root@yournas> tar zxvf MediaInfo_CLI_0.7.51_GNU_FromSource.tar.bz2
root@yournas> cd /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfo/Project/GNU/CLI
root@yournas> make install
##############
here:
output: make: *** No rule to make target `install'.  Stop.

#############

then I tried to use ./configure –enable-shared=yes
Here are the output:

Code: Select all
checking build system type... armv5tel-unknown-linux-gnu
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking host system type... armv5tel-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /opt/arm-none-linux-gnueabi/bin/ld
checking if the linker (/opt/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes
checking for /opt/arm-none-linux-gnueabi/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /opt/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/opt/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /opt/arm-none-linux-gnueabi/bin/ld
checking if the linker (/opt/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes
checking whether the g++ linker (/opt/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/opt/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /opt/bin/install -c
./configure: line 18844: libmediainfo-config: command not found
./configure: line 18854: pkg-config: command not found
configure: error: libmediainfo configuration is not found
#############################


Please help, seems like libmediainfo-config and pkg-config, libmediainfo configuration are not found. Thanks a lot!
Last edited by Raptor399 on Sat Dec 17, 2011 8:06 am, edited 1 time in total.
Reason: Edited for code fragments
bestmitbbs
 
Posts: 7
Joined: Mon Dec 12, 2011 7:36 am

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

Postby Northguy » Mon Jan 02, 2012 12:17 am

Hello all,

Followed Marks HOWTO to the letter and managed to get PMS running on my DS212+. Now i need to configure it. I was hoping to use X11 Forwarding in order to use the GUI of PMS. I found a freeware windows terminal with an X server (http://mobaxterm.mobatek.net/), but cannot manage to SSH with X11 forwarding. The trouble is already, which sshd_config i need to adjust. doing a `find´ on ssh* already yielded 3 different sshd_config files on my NAS. Anyone experience on that level?

all ssh* related files I could find:

Code: Select all
DiskStation> find -name ssh*
./opt/etc/sshd_config
./opt/share/file/magic/ssh
./etc/ssh
./etc/ssh/ssh_host_key
./etc/ssh/ssh_host_key.pub
./etc/ssh/ssh_host_ecdsa_key
./etc/ssh/sshd_config
./etc/ssh/ssh_host_dsa_key
./etc/ssh/ssh_host_dsa_key.pub
./etc/ssh/ssh_host_rsa_key.pub
./etc/ssh/ssh_host_rsa_key
./etc/ssh/ssh_host_ecdsa_key.pub
./etc/pam.d/sshd
./var/run/sshd.pid
./volume1/@optware/etc/sshd_config
./volume1/@optware/share/file/magic/ssh
./usr/syno/sbin/sshd
./usr/syno/bin/ssh
./usr/syno/bin/ssh-keygen
./lib/perl5/5.8.6/URI/ssh.pm
./etc.defaults/ssh
./etc.defaults/ssh/sshd_config
./etc.defaults/pam.d/sshd
DiskStation>
Northguy
 
Posts: 2
Joined: Mon Jan 02, 2012 12:05 am

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

Postby martbhell » Mon Jan 02, 2012 7:03 pm

Northguy: you might want to make an "ls -l" on those sshd_config files. Are they maybe symlinks?
If you have more than one, it might be that your NAS is pointing to one, or has several sshd running.
You could try to change a setting for sshd through your NAS's settings and then see which of the sshd_config files that are/is changed.
CLI tool you can use to compare: diff
martbhell
 
Posts: 2
Joined: Mon Jan 02, 2012 6:34 pm

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

Postby Northguy » Mon Jan 02, 2012 10:29 pm

@martbhell:

Thanks for your reply. I did a quick investigation, but couldn't sort it out at first. But inspecting the PuTTY eventlog showed the following error:

Code: Select all
debug1: Remote: No xauth program; cannot forward with spoofing


With a little help, I noticed that ssh on the Synology box looks for xauth in a hard-coded path:"
Code: Select all
DiskStation> strings /usr/syno/sbin/sshd|grep xauth
/usr/X11R6/bin/xauth
xauthlocation
maxauthtries
No xauth program; cannot forward with spoofing.


Solution, create a directory with a symlink to the proper xauth location:

Code: Select all
DiskStation> ls -l
total 0
lrwxrwxrwx 1 root root 14 2012-01-02 21:00 xauth -> /opt/bin/xauth
DiskStation>


When using a properly configured PuTTYand the freeware X-Deep/32 X server I am now able to run Xterm in an X environment on my PC. So the X11 forwarding is functioning.

Starting ./PMS.sh still results in

Code: Select all
GUI environment not available
Switching to console mode


I looked around in this forum, and found some references. But the offered work-around in this thread doesn't seem to work. Anybody got a clue to get the GUI working in an X-window over SSH?

EDIT:
looking further into my problem I found the following error in the PMS console output:
Code: Select all
Toolkit error: Can't load library: /volume1/@appstore/java7/jre/lib/arm/xawt/libmawt.so


The mentioned xawt directory is missing in the installed Java version. I am suspecting that this is the problem. Will look into it further later this week.

EDIT2: investigations end. It seems pointless as there is only a headless version of Java for ARMv5. Without the headful version it will not be possible to get the GUI working in an X-window over SSH. :-(
Last edited by Northguy on Wed Jan 04, 2012 7:03 pm, edited 1 time in total.
Northguy
 
Posts: 2
Joined: Mon Jan 02, 2012 12:05 am

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

Postby Vallaquenta » Wed Jan 04, 2012 11:19 am

@bestmitbbs

The workaround is to firstly install libzen and libmediainfo, so first do:
Code: Select all
root@yournas> cd /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library
root@yournas> ./configure –enable-shared=yes
root@yournas> make
root@yournas> make install
root@yournas> cp /usr/local/lib/libzen.so* /usr/lib/
root@yournas> cd /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library
root@yournas> ./configure –enable-shared=yes
root@yournas> make
root@yournas> make install
root@yournas> cp /usr/local/lib/libmediainfo.so* /usr/lib/


Then do:
Code: Select all
root@yournas> cd /volume1/@tmp/
root@yournas> tar zxvf MediaInfo_CLI_0.7.51_GNU_FromSource.tar.bz2
root@yournas> cd /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfo/Project/GNU/CLI
root@yournas> ./configure
root@yournas> make
root@yournas> make install






I'm having an issue at the last step. I firstly got the error as well about not being able to find libzen.so and fixed it by using bqsjayce's workaround.
Now I'm getting the following error:
Code: Select all
[main] WARN  11:20:53.153 Error loading libzen: /tmp/jna7244940828944026198.tmp: libffi.so.5: cannot open shared object file: No such file or directory



Locate libzen returns:
Code: Select all
/lib/libzen.so
/lib/libzen.so.0
/lib/libzen.so.0.0.0
/usr/local/lib/libzen.a
/usr/local/lib/libzen.la
/usr/local/lib/libzen.so
/usr/local/lib/libzen.so.0
/usr/local/lib/libzen.so.0.0.0
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/libzen-config
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/libzen-config.in
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/libzen.la
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/libzen.pc
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/libzen.pc.in
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/.libs/libzen.a
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/.libs/libzen.la
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/.libs/libzen.lai
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/.libs/libzen.so
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/.libs/libzen.so.0
/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library/.libs/libzen.so.0.0.0


Maybe I should add a symlink?
Code: Select all
ln -s /lib/libzen.so.5 /lib/libzen.so.0





EDIT:
Ok, so at this step:
Code: Select all
root@yournas> make install # did not work for us, so we just copied the created libs to /usr/libs
root@yournas> cp .libs libffi.s* /usr/lib

You should make it clear that IF make install works for you, the lib files are NOT saved in the current working directory, but in the /usr/local/lib. Therefore the command
Code: Select all
root@yournas> cp .libs libffi.s* /usr/lib

Will not work and should be changed to:
Code: Select all
root@yournas> cp /usr/local/lib/libffi.s* /usr/lib



EDIT #2:
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
GUI environment not available
Switching to console mode
[New I/O server worker #1-1] WARN  15:50:28.064 The directory /volume1/photo does not exist. Please remove it from your Shared folders list on the Navigation/Share Settings tab
[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
[New I/O server worker #1-1] ERROR 15:50:54.929 There is no inputstream to return for [MEncoder] {Audio: AAC/Undetermined} {Sub: Embedded/Dutch}
[mencoder] ERROR 15:50:55.174 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
[New I/O server worker #1-2] ERROR 15:51:06.389 There is no inputstream to return for [MEncoder] {Audio: AAC/Undetermined} {Sub: Embedded/Dutch}


Any ideas?
User avatar
Vallaquenta
 
Posts: 30
Joined: Wed Jan 04, 2012 11:00 am

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

Postby Raptor399 » Wed Jan 04, 2012 9:17 pm

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.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

PreviousNext

Return to Linux/Unix Support

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests