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 markdark » Mon Nov 21, 2011 12:33 pm

synops you are my hero :) And I have to learn reading information correctly. Now I have compiled to correct libffi and PMS starts as it should be! Thanks for your help also.

I will generate a install documentation for other users as well. I will post it here also, maybe you want to do a review of it also.
markdark
 
Posts: 13
Joined: Wed Nov 16, 2011 5:07 pm

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

Postby synops » Mon Nov 21, 2011 1:07 pm

install documentation is very good idea. I would like to support.

Next steps would be to tune the PMS.conf file.

Have you tried to stream some videos?
synops
 
Posts: 10
Joined: Sat Oct 22, 2011 10:55 am

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

Postby markdark » Mon Nov 21, 2011 1:27 pm

PMS is up and running. I installed PMS because I want to be able to view SopCast streams on my TV. So I added the WEB.conf to the configurations. Standard there is a France 24 channel you can watch. But when I start this channel I get the error that the data type is not supported on my PS3. This is incorrect because I was able to do this with my Ubuntu laptop. So it should be able to play as well on the Synology. I found this in the debug.log:
Code: Select all
[main] INFO  13:18:26.210 Starting PS3 Media Server 1.50.0
[main] INFO  13:18:26.257 by shagrath / 2008-2011
[main] INFO  13:18:26.260 http://ps3mediaserver.org
[main] INFO  13:18:26.261 http://code.google.com/p/ps3mediaserver
[main] INFO  13:18:26.262 http://ps3mediaserver.blogspot.com
[main] INFO  13:18:26.264
[main] INFO  13:18:26.265 Java: 1.6.0_27-Sun Microsystems Inc.
[main] INFO  13:18:26.266 OS: Linux arm 2.6.32.12
[main] INFO  13:18:26.268 Encoding: UTF-8
[main] INFO  13:18:26.268 Working directory: /opt/local/pms-linux-1.50.0
[main] INFO  13:18:26.299 Temp folder: /tmp/ps3mediaserver
[main] INFO  13:18:26.304 Logging config file: /opt/local/pms-linux-1.50.0/logback.headless.xml
[main] INFO  13:18:26.306 debug.log: /opt/local/pms-linux-1.50.0/debug.log
[main] INFO  13:18:26.307
[main] INFO  13:18:26.309 Profile directory: /opt/local/pms-linux-1.50.0
[main] INFO  13:18:26.310 Profile path: /opt/local/pms-linux-1.50.0/PMS.conf
[main] INFO  13:18:26.312 Profile status: rw
[main] INFO  13:18:26.317 Profile name: markdark-nas
[main] INFO  13:18:26.317
[main] INFO  13:18:27.482 Loading MediaInfo library
[main] INFO  13:18:27.825 Loaded MediaInfoLib - v0.7.51
[main] INFO  13:18:27.972 Loading renderer configurations from /opt/local/pms-linux-1.50.0/renderers
[main] INFO  13:18:27.999 Loading configuration file: PS3.conf
[main] INFO  13:18:28.098 Loading configuration file: Showtime3.conf
[main] INFO  13:18:28.133 Loading configuration file: AirPlayer.conf
[main] INFO  13:18:28.177 Loading configuration file: SonyBluray.conf
[main] INFO  13:18:28.211 Loading configuration file: Android.conf
[main] INFO  13:18:28.250 Loading configuration file: Kuro.conf
[main] INFO  13:18:28.266 Loading configuration file: Philips.conf
[main] INFO  13:18:28.282 Loading configuration file: Bravia5500.conf
[main] INFO  13:18:28.293 Loading configuration file: XBMC.conf
[main] INFO  13:18:28.347 Loading configuration file: PopcornHour.conf
[main] INFO  13:18:28.354 Loading configuration file: FreeboxHD.conf
[main] INFO  13:18:28.364 Loading configuration file: XBOX360.conf
[main] INFO  13:18:28.374 Loading configuration file: Panasonic.conf
[main] INFO  13:18:28.410 Loading configuration file: WMP.conf
[main] INFO  13:18:28.428 Loading configuration file: BraviaEX.conf
[main] INFO  13:18:28.474 Loading configuration file: Samsung.conf
[main] INFO  13:18:28.510 Loading configuration file: WDTVLive.conf
[main] INFO  13:18:28.528 Loading configuration file: FreecomMusicPal.conf
[main] INFO  13:18:28.536 Loading configuration file: Bravia4500.conf
[main] INFO  13:18:28.554 Loading configuration file: N900.conf
[main] INFO  13:18:28.577 Loading configuration file: Streamium.conf
[main] INFO  13:18:28.584 Loading configuration file: iPad-iPhone.conf
[main] INFO  13:18:28.614 Loading configuration file: Realtek.conf
[main] INFO  13:18:28.649 Checking MPlayer font cache. It can take a minute or so.
[main] DEBUG 13:18:28.650 launching: mplayer
[main] INFO  13:18:28.960 Done!
[main] INFO  13:18:29.136 Searching for plugins in /opt/local/pms-linux-1.50.0/plugins
[main] INFO  13:18:29.145 No plugins found
[main] INFO  13:18:29.351 Registering transcoding engine: FFmpeg Audio
[main] INFO  13:18:29.451 Registering transcoding engine: MEncoder
[main] INFO  13:18:29.454 Registering transcoding engine: MPlayer Audio
[main] INFO  13:18:29.457 Registering transcoding engine: MEncoder Web
[main] INFO  13:18:29.459 Registering transcoding engine: MPlayer Video Dump
[main] INFO  13:18:29.460 Registering transcoding engine: MPlayer Web
[main] INFO  13:18:29.473 Registering transcoding engine: tsMuxeR
[main] INFO  13:18:29.475 Registering transcoding engine: Audio High Fidelity
[main] INFO  13:18:29.478 Registering transcoding engine: VLC Audio Streaming
[main] INFO  13:18:29.479 Registering transcoding engine: VLC Video Streaming
[main] INFO  13:18:29.481 Registering transcoding engine: Raws Thumbnailer
[main] INFO  13:18:29.536 Scanning network interface eth0 (eth0)
[main] INFO  13:18:29.539 Using address /192.168.1.200 found on network interface: name:eth0 (eth0)
[main] INFO  13:18:29.541 Created socket: /192.168.1.200:5555
[main] DEBUG 13:18:30.794 Sending ALIVE...
[main] INFO  13:18:30.822 Using the following UUID configured in PMS.conf: 997dafd7-a399-3f18-8304-9341dd2de3cb
[New I/O server worker #1-1] INFO  13:18:33.891 No IP filter specified, access granted to /192.168.1.10
[New I/O server worker #1-1] INFO  13:18:33.992 Renderer Playstation 3 found on this address: 192.168.1.10
[pool-3-thread-1] DEBUG 13:18:34.138 Starting ping -c 3 -s 64000 192.168.1.10
[New I/O server worker #1-1] INFO  13:18:34.214 No IP filter specified, access granted to /192.168.1.90
[pool-3-thread-1] DEBUG 13:18:34.220 Unix process ID (ping): 4040
[Thread-7] DEBUG 13:18:34.238 ping: permission denied (are you root?)
[pool-3-thread-1] INFO  13:18:34.269 Process ping has a return code of 1! Maybe an error occurred... check the log file
[New I/O server worker #1-1] INFO  13:18:34.279 Renderer WMP found on this address: 192.168.1.90
[pool-3-thread-1] DEBUG 13:18:34.282 Starting ping -c 3 -s 64000 192.168.1.90
[Thread-10] DEBUG 13:18:34.287 ping: permission denied (are you root?)
[pool-3-thread-1] DEBUG 13:18:34.288 Unix process ID (ping): 4046
[pool-3-thread-1] INFO  13:18:34.338 Process ping has a return code of 1! Maybe an error occurred... check the log file
[main] INFO  13:18:35.907 The server should now appear on your renderer
[Thread-6] DEBUG 13:18:36.147 Stopping Unix process 4040: ping
[Thread-9] DEBUG 13:18:36.296 Stopping Unix process 4046: ping
[Thread-12] DEBUG 13:18:45.916 Sending ALIVE...
[New I/O server worker #1-1] INFO  13:18:59.955 Checking shared folder: /volume1/video
[New I/O server worker #1-1] INFO  13:18:59.959 Checking shared folder: /volume1/photo
[New I/O server worker #1-1] INFO  13:18:59.977 Checking shared folder: /volume1/music
[New I/O server worker #1-2] INFO  13:19:05.316 Starting transcode/remux of France 24
[mkfifo] DEBUG 13:19:05.406 Starting mkfifo --mode=777 /tmp/ps3mediaserver/VLC1321877945330.ts
[mkfifo] DEBUG 13:19:05.480 Unix process ID (mkfifo): 4085
[vlc] DEBUG 13:19:05.577 Starting vlc -I dummy --sout #transcode{vcodec=mp2v,vb=4096,fps=25,scale=1,acodec=mp2a,ab=128,channels=2}:standard{access=file,mux=ts,dst="/tmp/ps3mediaserver/VLC1321877945330.ts"} mms://stream1.france24.yacast.net/f24_liveen vlc://quit
[vlc] DEBUG 13:19:05.606 Reading pipe: /tmp/ps3mediaserver/VLC1321877945330.ts
[Thread-18] DEBUG 13:19:05.685 VLC media player 0.9.9a Grishenko
[Thread-18] DEBUG 13:19:05.688 [00000001] main libvlc debug: VLC media player - version 0.9.9a Grishenko - (c) 1996-2009 the VideoLAN team
[Thread-18] DEBUG 13:19:05.689 [00000001] main libvlc debug: libvlc was configured with ./configure  '--build=i386-pc-linux-gnu' '--host=arm-none-linux-gnueabi' '--target=arm-none-linux-gnueabi' '--prefix=/opt' '--enable-v4l' '--disable-v4l2' '--enable-bonjour' '--enable-x264' '--enable-dvbpsi' '--enable-a52' '--enable-dvdnav' '--with-dvdnav-config-path=/home/slug/optware/cs08q1armel/staging/opt/bin' '--enable-faad' '--enable-flac' '--disable-gnutls' '--enable-mpc' '--enable-ncurses' '--enable-ogg' '--enable-png' '--disable-remoteosd' '--enable-shout' '--enable-speex' '--enable-vorbis' '--disable-alsa' '--disable-dca' '--disable-glx' '--disable-gnomevfs' '--disable-libcdio' '--disable-libcddb' '--disable-screen' '--disable-sdl' '--disable-wxwidgets' '--disable-skins2' '--disable-x11' '--disable-nls' '--disable-static' 'build_alias=i386-pc-linux-gnu' 'host_alias=arm-none-linux-gnueabi' 'target_alias=arm-none-linux-gnueabi' 'CC=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-gcc' 'LDFLAGS= -L/home/slug/optware/cs08q1armel/staging/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link,/home/slug/optware/cs08q1armel/staging/opt/lib ' 'CPPFLAGS=-O2   -pipe -I/home/slug/optware/cs08q1armel/staging/opt/include -I/home/slug/optware/cs08q1armel/staging/opt/include/ncurses' 'CPP=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-gcc -E' 'CXX=/home/slug/optware/cs08q1armel/toolchain/arm-2008q1/bin/arm-none-linux-gnueabi-g++' 'PKG_CONFIG_PATH=/home/slug/optware/cs08q1armel/staging/opt/lib/pkgconfig'
[Thread-18] DEBUG 13:19:05.690 [00000001] main libvlc debug: translation test: code is "C"
[Thread-18] DEBUG 13:19:07.266 [00000292] inhibit interface error: Failed to connect to the D-Bus session daemon: /opt/bin/dbus-launch terminated abnormally with the following error: Autolaunch requested, but X11 support not compiled in.
[Thread-18] DEBUG 13:19:07.267 Cannot continue.
[Thread-18] DEBUG 13:19:07.268
[Thread-18] DEBUG 13:19:07.268 [00000292] main interface error: no suitable interface module
[Thread-18] DEBUG 13:19:07.268 [00000001] main libvlc error: interface "inhibit,none" initialization failed
[Thread-18] DEBUG 13:19:07.275 [00000294] dummy interface: using the dummy interface module...
[Thread-18] DEBUG 13:19:07.367 [00000301] main mux error: no sout mux module matched "ts"
[Thread-18] DEBUG 13:19:07.368 [00000299] stream_out_standard stream out error: no suitable sout mux module for `file/ts:///tmp/ps3mediaserver/VLC1321877945330.ts'
[Thread-18] DEBUG 13:19:07.369 [00000297] stream_out_transcode stream out error: cannot create chain
[Thread-18] DEBUG 13:19:07.370 [00000296] main stream output error: stream chain failed for `transcode{vcodec=mp2v,vb=4096,fps=25,scale=1,acodec=mp2a,ab=128,channels=2}:standard{access=file,mux=ts,dst="/tmp/ps3mediaserver/VLC1321877945330.ts"}'
[Thread-18] DEBUG 13:19:07.371 [00000295] main input error: cannot start stream output instance, aborting
[Thread-18] DEBUG 13:19:07.455 [00000306] dummy demux: command `quit'
[Thread-18] DEBUG 13:19:07.814 [00000288] main playlist error: could not create /root/.local: Permission denied
[Thread-18] DEBUG 13:19:07.815 [00000288] main playlist error: could not create /root/.local/share: Permission denied
[Thread-18] DEBUG 13:19:07.815 [00000288] main playlist error: could not create /root/.local/share/vlc: Permission denied
[Thread-18] DEBUG 13:19:07.816 [00000001] main libvlc error: could not create /root/.cache: Permission denied
[Thread-18] DEBUG 13:19:09.335 [00000001] main libvlc error: could not create /root/.cache/vlc: Permission denied
[Thread-12] DEBUG 13:19:10.166 Sending ALIVE...
[vlc] DEBUG 13:19:10.250 Attaching thread: vlc
[vlc] DEBUG 13:19:10.252 Unix process ID (vlc): 4090
[vlc] DEBUG 13:19:10.284 Stopping Unix process 4085: mkfifo
[Thread-24] DEBUG 13:19:15.457 Stopping Unix process 4090: vlc
[Thread-12] DEBUG 13:19:23.123 Error while sending periodic alive message: sleep interrupted
[Thread-5] INFO  13:19:23.124 Sending BYEBYE...
[Thread-5] DEBUG 13:19:25.809 Forcing shutdown of all active processes
[Thread-5] INFO  13:19:25.846 Stopping server on host 192.168.1.200 and port 5555...

I don't know exactly which error/problem is creating this, but if you look at the debug.log there are a few interesting entries:
Code: Select all
[Thread-18] DEBUG 13:19:07.266 [00000292] inhibit interface error: Failed to connect to the D-Bus session daemon: /opt/bin/dbus-launch terminated abnormally with the following error: Autolaunch requested, but X11 support not compiled in.
[Thread-18] DEBUG 13:19:07.267 Cannot continue.
[Thread-18] DEBUG 13:19:07.268
[Thread-18] DEBUG 13:19:07.268 [00000292] main interface error: no suitable interface module
[Thread-18] DEBUG 13:19:07.268 [00000001] main libvlc error: interface "inhibit,none" initialization failed
[Thread-18] DEBUG 13:19:07.275 [00000294] dummy interface: using the dummy interface module...
[Thread-18] DEBUG 13:19:07.367 [00000301] main mux error: no sout mux module matched "ts"
[Thread-18] DEBUG 13:19:07.368 [00000299] stream_out_standard stream out error: no suitable sout mux module for `file/ts:///tmp/ps3mediaserver/VLC1321877945330.ts'
[Thread-18] DEBUG 13:19:07.369 [00000297] stream_out_transcode stream out error: cannot create chain
[Thread-18] DEBUG 13:19:07.370 [00000296] main stream output error: stream chain failed for `transcode{vcodec=mp2v,vb=4096,fps=25,scale=1,acodec=mp2a,ab=128,channels=2}:standard{access=file,mux=ts,dst="/tmp/ps3mediaserver/VLC1321877945330.ts"}'
[Thread-18] DEBUG 13:19:07.371 [00000295] main input error: cannot start stream output instance, aborting
[Thread-18] DEBUG 13:19:07.455 [00000306] dummy demux: command `quit'
[Thread-18] DEBUG 13:19:07.814 [00000288] main playlist error: could not create /root/.local: Permission denied
[Thread-18] DEBUG 13:19:07.815 [00000288] main playlist error: could not create /root/.local/share: Permission denied
[Thread-18] DEBUG 13:19:07.815 [00000288] main playlist error: could not create /root/.local/share/vlc: Permission denied
[Thread-18] DEBUG 13:19:07.816 [00000001] main libvlc error: could not create /root/.cache: Permission denied
[Thread-18] DEBUG 13:19:09.335 [00000001] main libvlc error: could not create /root/.cache/vlc: Permission denied

@synops: Are you able to start the Web TV channel named 'France 24'?
markdark
 
Posts: 13
Joined: Wed Nov 16, 2011 5:07 pm

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

Postby markdark » Mon Nov 21, 2011 1:28 pm

synops wrote:Have you tried to stream some videos?


Yes I have. All streaming is working properly, except the Web TV streams. See previous post.
markdark
 
Posts: 13
Joined: Wed Nov 16, 2011 5:07 pm

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

Postby synops » Mon Nov 21, 2011 2:04 pm

France 24 does not play on my NAS either. Here is what I get:
Code: Select all
[New I/O server worker #1-2] INFO  13:53:59.308 Starting transcode/remux of France 24
[mkfifo] DEBUG 13:53:59.310 Starting mkfifo --mode=777 /tmp/ps3mediaserver/VLC1321880039308.ts
[mkfifo] DEBUG 13:53:59.313 Unix process ID (mkfifo): 31780
[vlc] DEBUG 13:53:59.465 Starting vlc -I dummy --sout #transcode{vcodec=mp2v,vb=4096,fps=25,scale=1,acodec=mp2a,ab=128,channels=2}:standard{access=file,mux=ts,dst="/tmp/ps3mediaserver/VLC1321880039308.ts"} mms://stream1.france24.yacast.net/f24_liveen vlc://quit
[vlc] DEBUG 13:53:59.479 Reading pipe: /tmp/ps3mediaserver/VLC1321880039308.ts
[Thread-12117] DEBUG 13:53:59.508 VLC is not supposed to be run as root. Sorry.
[Thread-12117] DEBUG 13:53:59.509 If you need to use real-time priorities and/or privileged TCP ports
[Thread-12117] DEBUG 13:53:59.509 you can use vlc-wrapper (make sure it is Set-UID root first and
[Thread-12117] DEBUG 13:53:59.509 cannot be run by non-trusted users first).
[New I/O server worker #1-2] ERROR 13:54:10.588 There is no inputstream to return for France 24 [VLC Video Streaming]
[Thread-12118] DEBUG 13:54:10.591 Stopping Unix process 31785: vlc
[Thread-12118] DEBUG 13:54:10.596 Stopping Unix process 31780: mkfifo


Note:
Code: Select all
[Thread-12117] DEBUG 13:53:59.508 VLC is not supposed to be run as root. Sorry.


Any Idea? Are you running pms as root?

Here is what I have installed via ipkg:
> ipkg install ffmpeg
> ipkg install vlc
> ipkg install libmpeg2
> ipkg install x264
> ipkg install transcode
> ipkg install lame
> ipkg install freetype
> ipkg install fontconfig
synops
 
Posts: 10
Joined: Sat Oct 22, 2011 10:55 am

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

Postby markdark » Mon Nov 21, 2011 2:19 pm

synops wrote:Any Idea? Are you running pms as root?


First time I ran it as root, but got the same error. So I chowned the complete PMS folder to the user admin and group users, for example:
Code: Select all
chown -R admin:users /opt/local/pms-linux-1.50.0/

Then I started PMS again under the user 'admin'. Then I ran into new errors, but I solved them by executing the next command (as root):
Code: Select all
dbus-uuidgen --ensure

Now when I start PMS I can stream everything besides the France 24 channel. I am now stuck on the errors I posted here.
markdark
 
Posts: 13
Joined: Wed Nov 16, 2011 5:07 pm

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

Postby m3digi » Sat Nov 26, 2011 1:47 pm

I've been trying to do this install on a DS409slim following the guide created by markdark and synops. I have encountered several issues each step of the way and would be grateful for assistance in resolving them.

1. Install, Extract and Compile of Media Info

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


System returns: 'make: *** No rule to make target `install'. Stop.'

2. I am also unable to run the 'jar uf' command. When running the command, the following message is returned: '-ash: jar: not found'

Here is the code from my /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.7.0/
export PS1 PATH LD_LIBRARY_PATH JAVA_HOME


Here is the code from /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=/volume1/@database/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.70/bin:/opt/bin:/opt/sbin:$PATH
JAVA_HOME=/opt/java/ejre1.7.0/
export JAVA_HOME

I have checked the path statements in my /opt/etc/profile and /etc/profile several times and it looks just as the guide states. Is there anything I can do to verify that my paths are set up correctly and/or the existence of the jar command? I have tried Java 1.6 as well and have gotten the same result.

Any assistance is very much appreciated.
m3digi
 
Posts: 5
Joined: Sat Nov 26, 2011 1:38 pm

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

Postby synops » Sat Nov 26, 2011 5:25 pm

Hi m3digi,

1. run "./configure" and the "make", before "make install"?
Make sure both have completed successfully (without errors) before you run "make install".

2. To run "jar uf" you need the java sdk.
So, I did it on my desktop machine (ubuntu) and then copied the modified pms.jar file back to the nas.

Regards
synops
 
Posts: 10
Joined: Sat Oct 22, 2011 10:55 am

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

Postby bqsjayce » Sat Nov 26, 2011 9:01 pm

Hello,

For your problem, test the commande with "./jar" instead of "jar". The jar file is in the @tmp directory.

I do the tutorial but when i start ./PMS.sh nothind appear (I have no debug.log too)

Anyone have a idea ?

Sorry but I'm french :)
bqsjayce
 
Posts: 5
Joined: Sat Nov 26, 2011 8:59 pm

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

Postby bqsjayce » Sat Nov 26, 2011 9:02 pm

in the tutorial correct the following lines :

JAVA_HOME=/opt/java/ejre1.6.0_27/
with
JAVA_HOME=/opt/java/ejre1.6.0_27
bqsjayce
 
Posts: 5
Joined: Sat Nov 26, 2011 8:59 pm

PreviousNext

Return to Linux/Unix Support

Who is online

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