Page 1 of 2

Serviio and Synology Ds216play

PostPosted: Wed Dec 09, 2015 12:42 pm
by Everlast
Cant find java and serviio on a repository. Only minecraft and some other crap. It means that my nas doesnt supported? Thanks.

Re: Serviio and Synology Ds216play

PostPosted: Sat Dec 12, 2015 1:26 pm
by patters
For now yes. But hopefully you can help me to get it supported.

Please log in via SSH as root (same password as for admin).
Then post back here with the results of:
  Code:
cat /proc/cpuinfo
uname -a


Thanks!

Re: Serviio and Synology Ds216play

PostPosted: Sat Dec 12, 2015 5:13 pm
by Everlast
Thank you! Here it is:

Synology> cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 0 (v7l)
BogoMIPS : 2989.26
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0

processor : 1
model name : ARMv7 Processor rev 0 (v7l)
BogoMIPS : 2989.26
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0

Hardware : STi SoC with Flattened Device Tree
Revision : 0000
Serial : 0000000000000000
Synology> uname -a

Re: Serviio and Synology Ds216play

PostPosted: Sun Dec 13, 2015 12:05 pm
by patters
It looks like you didn't hit return after the second command (uname -a).

Re: Serviio and Synology Ds216play

PostPosted: Sun Dec 13, 2015 3:08 pm
by Everlast
patters wrote:It looks like you didn't hit return after the second command (uname -a).

sorry about that
Synology> uname -a
Linux Synology 3.10.35 #5644 SMP Thu Nov 12 17:16:21 CST 2015 armv7l GNU/Linux synology_monaco_ds216play

Re: Serviio and Synology Ds216play

PostPosted: Mon Dec 14, 2015 12:17 pm
by patters
Can you try this and report the ffmpeg result?
  Code:
cd /volume1/@tmp
mkdir ffmpeg
cd ffmpeg
wget http://packages.pcloadletter.co.uk/downloads/serviio1.5-native-armhfneon.tar.xz
tar xvJf serviio1.5-native-armhfneon.tar.xz
./ffmpeg


Try to install the Java 8 package now - I've added support for the DS216play. When you look at the Java package log in Package Center do you see the HotSpot version number?

I'm interested to get the hardware transcoding working ASAP on the DS216play. Could you install VideoStation and post back here with the output from:
  Code:
/var/packages/VideoStation/target/bin/ffmpeg

Re: Serviio and Synology Ds216play

PostPosted: Tue Dec 15, 2015 12:08 pm
by nire
  Code:
./ffmpeg
ffmpeg version 2.7.1-compiled_by_patters_for_Serviio Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6.4 (crosstool-NG 1.18.0) 20130102 (prerelease)
  configuration: --arch=arm --cpu=cortex-a9 --enable-thumb --enable-cross-compile --cross-prefix=/usr/local/arm-cortexa9-linux-gnueabi/bin/arm-cortexa9-linux-gnueabi- --target-os=linux --prefix=/usr/local/arm-cortexa9-linux-gnueabi --enable-shared --disable-static --enable-pic --disable-ffplay --disable-ffserver --disable-debug --enable-pthreads --enable-libmp3lame --enable-librtmp --enable-libass --enable-libspeex --enable-gpl --enable-libx264 --enable-gnutls --pkg-config=pkg-config --extra-version=compiled_by_patters_for_Serviio
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Hyper fast Audio and Video encoder


  Code:
/var/packages/VideoStation/target/bin/ffmpeg
ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 12 2015 18:48:36 with gcc 4.8.3 (crosstool-NG git+85622fd-dirty) 20140106 (prerelease)
  configuration: --prefix=/usr/pkg --incdir='${prefix}/include/ffmpeg' --arch=armv7 --target-os=linux --cross-prefix=/usr/local/arm-cortexa9hf-linux-gnueabi/bin/arm-cortexa9hf-linux-gnueabi- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-decoder=amrnb --disable-encoder=zmbv --cc=/usr/local/arm-cortexa9hf-linux-gnueabi/bin/arm-cortexa9hf-linux-gnueabi-ccache-gcc --enable-shared --disable-static --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --disable-vaapi --enable-libfdk-aac
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder


I managed to get Java 8 installed. Logs show "Java HotSpot(TM) Embedded Client VM (build 25.65-b01, mixed mode)"

Re: Serviio and Synology Ds216play

PostPosted: Tue Dec 15, 2015 5:16 pm
by Everlast
Synology> cd /volume1/@tmp
Synology> mkdir ffmpeg
mkdir: can't create directory 'ffmpeg': File exists
Synology> cd ffmpeg
Synology> wget http://packages.pcloadletter.co.uk/down ... eon.tar.xz
--2015-12-15 21:21:47-- http://packages.pcloadletter.co.uk/down ... eon.tar.xz
Resolving packages.pcloadletter.co.uk... 82.147.22.211
Connecting to packages.pcloadletter.co.uk|82.147.22.211|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6495564 (6.2M) [application/x-tar]
Saving to: 'serviio1.5-native-armhfneon.tar.xz.1'

100%[===================================================================================================================================================================================================>] 6,495,564 907KB/s in 13s

2015-12-15 21:22:00 (497 KB/s) - 'serviio1.5-native-armhfneon.tar.xz.1' saved [6495564/6495564]

Synology> tar xvJf serviio1.5-native-armhfneon.tar.xz
fc-cache
ffmpeg
libass.so.5
libavcodec.so.56
libavdevice.so.56
libavfilter.so.5
libavformat.so.56
libavutil.so.54
libfontconfig.so.1
libfribidi.so.0
libgnutls.so.28
libhogweed.so.2
libnettle.so.4
libpostproc.so.53
librtmp.so.1
libspeex.so.1
libswresample.so.1
libswscale.so.3
libx264.so.146
Synology> ./ffmpeg
ffmpeg version 2.7.1-compiled_by_patters_for_Serviio Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.6.4 (crosstool-NG 1.18.0) 20130102 (prerelease)
configuration: --arch=arm --cpu=cortex-a9 --enable-thumb --enable-cross-compile --cross-prefix=/usr/local/arm-cortexa9-linux-gnueabi/bin/arm-cortexa9-linux-gnueabi- --target-os=linux --prefix=/usr/local/arm-cortexa9-linux-gnueabi --enable-shared --disable-static --enable-pic --disable-ffplay --disable-ffserver --disable-debug --enable-pthreads --enable-libmp3lame --enable-librtmp --enable-libass --enable-libspeex --enable-gpl --enable-libx264 --enable-gnutls --pkg-config=pkg-config --extra-version=compiled_by_patters_for_Serviio
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Re: Serviio and Synology Ds216play

PostPosted: Wed Dec 16, 2015 10:57 am
by patters
Ok thanks for that, I have enough to add support to Serviio.
That's strange about VideoStation though. That ffmpeg shows no evidence of hardware transcoding support at all. There are two possibilities - either it does not have working support (possibly coming in DSM 6.0), or perhaps there is another build of ffmpeg somewhere on the system.

Re: Serviio and Synology Ds216play

PostPosted: Wed Dec 16, 2015 12:15 pm
by nire
  Code:
find -name ffmpeg
find: ./proc/6091: No such file or directory
./usr/syno/bin/ffmpeg
./volume1/@tmp/ffmpeg
./volume1/@tmp/ffmpeg/ffmpeg
./volume1/@appstore/VideoStation/apparmor/abstractions.pkg/VideoStation/ffmpeg
./volume1/@appstore/VideoStation/bin/ffmpeg
./volume1/@appstore/VideoStation/lib/ffmpeg


Not sure if it helps you out, but i've also run ./usr/syno/bin/ffmpeg resulting in:
  Code:
SyNas> ./usr/syno/bin/ffmpeg
ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  1 2015 22:02:54 with gcc 4.8.3 (crosstool-NG git+85622fd-dirty) 20140106 (prerelease)
  configuration: --prefix=/usr/syno --incdir='${prefix}/include/ffmpeg' --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-cortexa9hf-linux-gnueabi/bin/arm-cortexa9hf-linux-gnueabi- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-decoder=amrnb --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/arm-cortexa9hf-linux-gnueabi/bin/arm-cortexa9hf-linux-gnueabi-ccache-gcc
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder

Re: Serviio and Synology Ds216play

PostPosted: Mon Dec 21, 2015 5:52 am
by Everlast
patters wrote:Ok thanks for that, I have enough to add support to Serviio.
That's strange about VideoStation though. That ffmpeg shows no evidence of hardware transcoding support at all. There are two possibilities - either it does not have working support (possibly coming in DSM 6.0), or perhaps there is another build of ffmpeg somewhere on the system.

Dear patters! Could you please let us know when you will add ds216play support to serviio. Thanks!

Re: Serviio and Synology Ds216play

PostPosted: Fri Jan 08, 2016 1:32 pm
by patters
It's done :)

Re: Serviio and Synology Ds216play

PostPosted: Mon Jan 11, 2016 10:21 pm
by wojtas40
Hi everone,

I have Serviio 1.5.2 installed on Synology DS216play/DSM 5.2. How to check if Serviio use hardware transcoding? (.mkvs freeze on Sharp Aquos TV, I must wait about 10sec to start any movie)

Wojtel

Re: Serviio and Synology Ds216play

PostPosted: Tue Jan 12, 2016 3:23 pm
by nire
patters wrote:It's done :)


Excellent!!! Thanks a million!

Working like a charm on my DS216Play.

Re: Serviio and Synology Ds216play

PostPosted: Sun Jan 17, 2016 1:52 pm
by Everlast
Very slow Serviio start on my Samsung TV(when browsing folders). From time to time "lost network connection" window during movie viewing. built-in DLNA and ds-video widget works fine. Any ideas?

Re: Serviio and Synology Ds216play

PostPosted: Sun Jan 24, 2016 10:12 pm
by wojtas40
wojtas40 wrote:Hi everone,

I have Serviio 1.5.2 installed on Synology DS216play/DSM 5.2. How to check if Serviio use hardware transcoding? (.mkvs freeze on Sharp Aquos TV, I must wait about 10sec to start any movie)

Wojtel


Anyone help?

Re: Serviio and Synology Ds216play

PostPosted: Fri Jan 29, 2016 8:28 am
by patters
It's not hardware transcoding I'm afraid. Without that feature, the DS216play is quite a weak CPU system compared to the Intel ones. The only models which are currently supported for hardware transcoding with Serviio are the DS214play and DS415play. I hope to add support for the Braswell models (DS216+, DS716+) and the DS216play later, but I will need Synology to publish their source code for DSM 6.0 first.

Re: Serviio and Synology Ds216play

PostPosted: Mon Apr 18, 2016 12:25 pm
by nire
The new videostation (version 2.0-1132) seems to have compiled ffmpeg with some different options than before:

  Code:
ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
  configuration: --prefix=/usr/pkg --incdir='${prefix}/include/ffmpeg' --arch=armv7 --target-os=linux --cross-prefix=/usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-ffserver --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-decoder=amrnb --disable-encoder=zmbv --cc=/usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ccache-gcc --enable-shared --disable-static --enable-libfdk-aac
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Hyper fast Audio and Video encoder


Is there any way I can assist you, in making Serviio for Synology DS216play, hardware encoding compatible?

Re: Serviio and Synology Ds216play

PostPosted: Tue Jan 03, 2017 7:22 am
by nire
It looks like synology finally released the gpl source code and toolkits.
https://sourceforge.net/projects/dsgpl/

Re: Serviio and Synology Ds216play

PostPosted: Thu Jan 05, 2017 11:15 pm
by patters
Yep, I spotted that just before Christmas and got new FFmpeg binaries for DSM 6.0 built. Nearly ready to release Serviio 1.8 for Synology.