FAQ  •  Register  •  Login

New DS218play with ARMv8 = Serviio is dead ... plz Help!!

<<

drkeemo

Serviio newbie

Posts: 1

Joined: Sat Dec 23, 2017 1:03 pm

Post Sat Dec 23, 2017 3:25 pm

New DS218play with ARMv8 = Serviio is dead ... plz Help!!

So I've spent my weekend jumping up and down to get things work for my new Synology NAS, which I bought just for Serviio but no luck at all.
this is what I've done so far:
1- of course started here: https://pcloadletter.co.uk/2012/01/25/s ... o-package/
2- got "patter's Java 8 SE EMBEDDED " installed [below the log]
  Code:
/var/packages/java8/scripts/start-stop-status.sh: line 74: /var/packages/java8/target/ejdk1.8.0_151/linux_armv6_vfp_hflt/jre/bin/java: No such file or directory

System installed locales:
C
cs_CZ.utf8
da_DK.utf8
de_DE.utf8
en_US.utf8
es_ES.utf8
fr_FR.utf8
hu_HU.utf8
it_IT.utf8
ja_JP.utf8
ko_KR.utf8
nb_NO.utf8
nl_NL.utf8
pl_PL.utf8
POSIX
pt_BR.utf8
pt_PT.utf8
ru_RU.utf8
sv_SE.utf8
tr_TR.utf8
zh_CN.utf8
zh_TW.utf8

JAVA_HOME=/var/packages/java8/target/ejdk1.8.0_151/linux_armv6_vfp_hflt/jre
TZ=Asia/Kuwait


3- got Serviio 1.9 , but getting below error when running

  Code:
2017-12-23 05:06:54,000 Starting Serviio
/var/packages/Serviio/target/bin/serviio.sh: line 67: /var/packages/java8/target/ejdk1.8.0_151/linux_armv6_vfp_hflt/jre/bin/java: No such file or directory


4- went back and uninstalled "patter's Java 8" and then installed official Synology Java 8 Package

5- tried running Serviio again, it runs then after 10 seconds stopped with the below error log

  Code:
2017-12-23 16:48:58,590 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: FFMPEG not found. Serviio will not work properly.
java.lang.ExceptionInInitializerError
   at org.serviio.MediaServer.main(MediaServer.java:145)
Caused by: java.lang.RuntimeException: FFMPEG not found. Serviio will not work properly.
   at org.serviio.external.FFMPEGWrapper.loadFFmpegInfo(FFMPEGWrapper.java:138)
   at org.serviio.external.FFMPEGWrapper.


6- Crying at my bed all night..... please help me

below you may find the processor and DSM info:
  Code:
processor       : 0
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
model name      : ARMv8 Processor rev 4 (v8l)
BogoMIPS        : 54.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

-----------

 uname -a
Linux HakimNAS 4.4.15+ #15217 SMP Fri Nov 10 20:09:31 CST 2017 aarch64 GNU/Linux synology_rtd1296_ds218play218play
<<

k12goes4g

Serviio newbie

Posts: 1

Joined: Tue Dec 26, 2017 1:26 pm

Post Tue Dec 26, 2017 1:31 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Got exactly the same issue (also with a 218play).
Any help is highly appreciated :D
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Jan 05, 2018 4:02 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

I assume patters has to build a new package for this architecture with a new ffmpeg. unless you get ffmpeg another way somehow
<<

zoborg

Serviio newbie

Posts: 1

Joined: Sat Feb 17, 2018 4:25 pm

Post Sat Feb 17, 2018 4:33 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

I have the same problem. Is there any working solution? I tried to install synoCommunity package. There isn't...
<<

Marsi

Serviio newbie

Posts: 1

Joined: Sun Feb 18, 2018 1:37 pm

Post Sun Feb 18, 2018 1:48 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

zip wrote:I assume patters has to build a new package for this architecture with a new ffmpeg. unless you get ffmpeg another way somehow


I have synology 418.
I have installed ffmpeg from
https://github.com/m4tt075/spksrc/relea ... -3.3.3-arm

But the serviio does not start, with error FFMPEG not found.

  Code:
2018-02-19 01:34:55,823 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "/var/packages/Serviio/target/bin/ffmpeg": error=2, No such file or directory
java.io.IOException: Cannot run program "/var/packages/Serviio/target/bin/ffmpeg": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
   at org.serviio.external.ProcessExecutor.run(ProcessExecutor.java:136)
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method)
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
   at java.lang.ProcessImpl.start(ProcessImpl.java:134)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
   ... 1 more
2018-02-19 01:34:55,832 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: FFMPEG not found. Serviio will not work properly.
java.lang.ExceptionInInitializerError
   at org.serviio.MediaServer.main(MediaServer.java:145)
Caused by: java.lang.RuntimeException: FFMPEG not found. Serviio will not work properly.
   at org.serviio.external.FFMPEGWrapper.loadFFmpegInfo(FFMPEGWrapper.java:138)
   at org.serviio.external.FFMPEGWrapper.<clinit>(FFMPEGWrapper.java:111)
   ... 1 more
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Wed Feb 21, 2018 11:51 am

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Good news everyone. I think I may have got this working, but I have no x18 series NAS to test on. As a first step, please can you install my Java SE Embedded 8 package. I have added experimental support for the full Java 8 JDK which is the only flavour to have an aarch64 build. In the package log, does it show the Java version details e.g.:
  Code:
java version "1.8.0_161"
Java(TM) SE Embedded Runtime Environment (build 1.8.0_161-b12, headless)
Java HotSpot(TM) Embedded Client VM (build 25.161-b12, mixed mode)

System installed locales:
C
cs_CZ.utf8
da_DK.utf8
de_DE.utf8
en_US.utf8
es_ES.utf8
fr_FR.utf8
hu_HU.utf8
it_IT.utf8
ja_JP.utf8
ko_KR.utf8
nb_NO.utf8
nl_NL.utf8
pl_PL.utf8
POSIX
pt_BR.utf8
pt_PT.utf8
ru_RU.utf8
sv_SE.utf8
tr_TR.utf8
zh_CN.utf8
zh_TW.utf8

JAVA_HOME=/var/packages/java8/target/ejdk1.8.0_161/linux_i586/jre
TZ=Europe/Dublin

LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

istvanp

Serviio newbie

Posts: 5

Joined: Wed Feb 21, 2018 4:42 pm

Post Wed Feb 21, 2018 4:56 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Hi

Thanks a lot for your help, I've installed the new version (1.8.0_161-0046). I can see the lines you mentioned.
Serviio started and I was able to see the console, but unfortunately it crashed after a few seconds.

The log contains this:
  Code:
2018-02-21 17:11:35,741 INFO  [ProfileManager] User profiles definition (user-profiles.xml) not found, using built-in profiles only
2018-02-21 17:11:35,996 INFO  [PluginCompilerThread] Looking for plugins at /volume1/public/serviio/plugins
2018-02-21 17:11:36,000 INFO  [UpdateChecker] Checking if a new version is available
2018-02-21 17:11:36,014 INFO  [PluginCompilerThread] Started looking for plugins
2018-02-21 17:11:36,190 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "/var/packages/Serviio/target/bin/ffmpeg": error=2, No such fil
e or directory
java.io.IOException: Cannot run program "/var/packages/Serviio/target/bin/ffmpeg": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at org.serviio.external.ProcessExecutor.run(ProcessExecutor.java:136)
Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
        at java.lang.ProcessImpl.start(ProcessImpl.java:134)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 1 more
2018-02-21 17:11:36,198 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: FFMPEG not found. Serviio will not work properly.
java.lang.ExceptionInInitializerError
        at org.serviio.MediaServer.main(MediaServer.java:145)
Caused by: java.lang.RuntimeException: FFMPEG not found. Serviio will not work properly.
        at org.serviio.external.FFMPEGWrapper.loadFFmpegInfo(FFMPEGWrapper.java:138)
        at org.serviio.external.FFMPEGWrapper.<clinit>(FFMPEGWrapper.java:111)
        ... 1 more


I tried to install FFMPEG from synoCommunity but no luck. Unfortunately Serviio is not recognizing it.
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Wed Feb 21, 2018 11:46 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Try uninstalling the Serviio package and reinstalling it now. I have just updated it with an ARM 64bit build of FFmpeg 3.4.2 and all dependent libraries. I kept the package version number the same to avoid disturbing existing installs, so you will need to remove it completely and reinstall the package.

Please let me know if it works. If it does there is one more thing I want you to try.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

istvanp

Serviio newbie

Posts: 5

Joined: Wed Feb 21, 2018 4:42 pm

Post Thu Feb 22, 2018 7:49 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Thanks a lot!
Reinstalling solved the crash. It works for me now!

You are great!
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Thu Feb 22, 2018 9:41 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

That's great news. As I mentioned, I have a favour to ask which will really help all DS218play owners: I believe I may have been able to compile it in a way that enables the hardware H.264 encoding features of that Realtek SoC which the system is based around. Unfortunately FFmpeg cannot use the H.264 and HEVC hardware decoder capabilities yet, but the encoder should work which will still be very useful.

You will need to connect to your NAS via SSH. To do this firstly in DSM Control Panel navigate to Terminal, then Enable SSH.
Now download PuTTY if you use Windows. Don't get the MSI installer, you only need the EXE file further down the page.

Connect PuTTY to the IP address of your NAS (leave all the settings on default values) and log in using the 'admin' user and password from the NAS.
If you use a Mac instead you can use the Mac OS Terminal utility (Applications > Utilities > Terminal). Then type the command:
  Code:
ssh admin@x.x.x.x -p yyy

Where x.x.x.x is the IP address of your NAS and yyy is the port number you assigned for SSH in the DSM control panel.

Once you are connected you need to run the following command:
  Code:
sudo -i

You will then be prompted to enter the admin password a second time. Now you are the root user who has full permission. Now please run the following command which should register the hardware codecs if successful:
  Code:
cd /var/packages/Serviio/target/lib
omxregister-bellagio /var/packages/Serviio/target/lib/realtek

Please reply back with a copy paste of any messages that are displayed (with PuTTY you just select the text with the mouse and it's already in the clipboard, right-click in the PuTTY window is paste).

Please can you also capture the output from this command afterwards:
  Code:
cat ${HOME}/.omxregister


Now you can disable SSH in DSM if you want to put everything back how it was.

Thanks!
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

istvanp

Serviio newbie

Posts: 5

Joined: Wed Feb 21, 2018 4:42 pm

Post Fri Feb 23, 2018 6:35 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

I've ran your command, here is the output:
  Code:
OMX-could not load /var/packages/Serviio/target/lib/realtek/libvpu.so: libion.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libvp9.so: libion.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libRTK_lib.so: libion.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libOMX.realtek.video.dec.so: libRTKOMX_OSAL_RTK.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libOMX.realtek.image.enc.so: libRTKOMX_OSAL_RTK.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libOMX.realtek.video.enc.so: libRTKOMX_OSAL_RTK.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libRTKAllocator.so: libhardware.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libOMX.realtek.video.dec.vp9.so: libRTKOMX_OSAL_RTK.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libOMX.realtek.audio.dec.so: libRTKAllocator.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libRTKOMX_OSAL_RTK.so: libion.so: cannot open shared object file: No such file or directory
OMX-could not load /var/packages/Serviio/target/lib/realtek/libOMX_Core.so: libRTK_lib.so: cannot open shared object file: No such file or directory


The second command did not write any output.

Please let me know if I can help some more.
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Fri Feb 23, 2018 7:05 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Ok, thanks for that. Please can you try installing the Synology VideoStation package in Package Centre and then try the same commands again. Looks like it may be expecting the files to be in a specific path.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

istvanp

Serviio newbie

Posts: 5

Joined: Wed Feb 21, 2018 4:42 pm

Post Fri Feb 23, 2018 11:21 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

I already had VideoStation installed, when I executed the command. Do you mean to reinstall it?
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Fri Feb 23, 2018 11:39 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

No, that's fine. I'm out of ideas at the moment. Will post back here if I think of something. Thanks!
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Sun Feb 25, 2018 1:05 am

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Please can you try:
  Code:
cd /var/packages/Serviio/target/lib/realtek
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/packages/Serviio/target/lib/realtek ../omxregister-bellagio -v .
cat ${HOME}/.omxregister
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

istvanp

Serviio newbie

Posts: 5

Joined: Wed Feb 21, 2018 4:42 pm

Post Sun Feb 25, 2018 10:01 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Sure, this was the output:
  Code:

 Scanning directory ./

 Scanning library ./libvpu.so

 Scanning library ./libhardware.so

 Scanning library ./libvp9.so

 Scanning library ./libRTK_lib.so

 Scanning library ./libOMX.realtek.video.dec.so

 Scanning library ./libOMX.realtek.image.enc.so

 Scanning library ./libOMX.realtek.video.enc.so

 Scanning library ./libRTKAllocator.so

 Scanning library ./libOMX.realtek.video.dec.vp9.so
OMX-could not load ./libOMX.realtek.audio.dec.so: ./libOMX.realtek.audio.dec.so: undefined symbol: AUDIO_RPC_ToAgent_Destroy_0

 Scanning library ./libhwse_kylin.so

 Scanning library ./libRTKOMX_OSAL_RTK.so

 Scanning library ./libOMX_Core.so

 Scanning library ./libjpu.so

 Scanning library ./libion.so

 0 OpenMAX IL ST static components in 0 libraries succesfully scanned
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Tue Feb 27, 2018 10:05 am

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Thanks. I think that's the end of the road. Looks like no way to use any of the hardware codec features of this SoC in FFmpeg. Not particularly important if your renderer device has comprehensive format support, but it would have been nice.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

tmm1

Serviio newbie

Posts: 1

Joined: Wed Jul 25, 2018 12:59 am

Post Wed Jul 25, 2018 1:05 am

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

I don't think it is necessary to register the OMX libraries with the bellagio runtime.

The ffmpeg decoder will try to load libOMX_Core.so and pull the required function pointers, so setting LD_LIBRARY_PATH before calling ffmpeg should be enough. There's also a -omx_libname option which can be used to specify a different library filename.
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Mon Sep 10, 2018 12:16 pm

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

tmm1 wrote:I don't think it is necessary to register the OMX libraries with the bellagio runtime.

The ffmpeg decoder will try to load libOMX_Core.so and pull the required function pointers, so setting LD_LIBRARY_PATH before calling ffmpeg should be enough. There's also a -omx_libname option which can be used to specify a different library filename.


Do you have viable test hardware for this? The FFmpeg for aarch64 on my repo still has support for Bellagio and it includes its binaries if you are able to experiment. As you previously documented in the comment section of my blog, the Realtek OMX plugins are contained in the the VideoStation package so you can install that and add the relevant path to LD_LIBRARY_PATH.

Access the Synology package download archive https://archive.synology.com/download/Package/spk/VideoStation/2.4.6-1594/.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

korttoma

Serviio newbie

Posts: 1

Joined: Mon Aug 19, 2019 7:39 am

Post Mon Aug 19, 2019 7:45 am

Re: New DS218play with ARMv8 = Serviio is dead ... plz Help!

Has there been any more recent attempts to support Serviio on the DS218Play?
Just got myself a DS218Play and I would really like to use Serviio on it but I did not even manage to install "Java SE Embedded 8".
Testing PLEX media server at the moment but I like serviio more since I have been using it for years on my older DS214Play.

Br,
Tomas
Next

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 15 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.