Jump to content
XPEnology Community

Asrock J5040 HW Transcoding


javikobcn

Recommended Posts

Hi, i just assembled a nas with that specs: Asrock J5040 2x8gb ddr4 an 4tb hdd on 918+ and DSM 7.1.0-42661
And i want to install the i915 drivers for HW transcoding but im totally noob and im looking for a step by step guide to do that, someone can give me a hand? 😅

 

Sorry for my english.

Link to comment
Share on other sites

Hi, I investigated a little more and I tried this commands and that's what they said:

 

root@NASTY:~# cat /usr/syno/etc/codec/activation.conf
cat: /usr/syno/etc/codec/activation.conf: No such file or directory
root@NASTY:~# cd /dev/dri
root@NASTY:/dev/dri# ls
card0  renderD128

 

 

Why I have /dev/dri folders and card0 and renderD128 but not activation.conf and how I can give it?

When I play a movie in plex i get my cpu at 100% of ussage...

Link to comment
Share on other sites

On 5/10/2022 at 9:01 PM, javikobcn said:

When I play a movie in plex i get my cpu at 100% of ussage...

J5040 has a iGPU with the id 0x3184 and thats native supported by synology's i915 driver

together with the firmware files it provides the devices you see in /dev/dri and with these the intel quick sync support is working

the activation.conf is realted to syno's own tools like videostation and even plex needs a licese (plexpass) to use hardware transcoding

one of the few free tools to support intel qsv on synology is jellyfin

about syno's tools and the activation you can read here

https://xpenology.com/forum/topic/24864-transcoding-without-a-valid-serial-number/

https://xpenology.com/forum/topic/49961-synocodectool-patch-for-dsm-70/

 

Link to comment
Share on other sites

18 hours ago, IG-88 said:

J5040 has a iGPU with the id 0x3184 and thats native supported by synology's i915 driver

together with the firmware files it provides the devices you see in /dev/dri and with these the intel quick sync support is working

the activation.conf is realted to syno's own tools like videostation and even plex needs a licese (plexpass) to use hardware transcoding

one of the few free tools to support intel qsv on synology is jellyfin

about syno's tools and the activation you can read here

https://xpenology.com/forum/topic/24864-transcoding-without-a-valid-serial-number/

https://xpenology.com/forum/topic/49961-synocodectool-patch-for-dsm-70/

 

Thanky you very much!
I'm gonna try to install jellyfin and read about syno's tools and activation.

Link to comment
Share on other sites

Yes, i have installed and configured but i think something is wrong with HW transcodding because i cant play 4k content via web or chromecast. Without transcodding no problem but the cpu runs at +90% obviously and the video keeps stuttering all the time....

Here is some screen captures of my HW transcodding config and the movie info, error, etc.

https://imgur.com/a/UXbwIwM

 

Can you tell me if this 1080 H264 movie the HW transcodding is working?

And what's the best settings for use HW transcodding with my processor? I have tried Intel Quick Sync and VAAPI and I have the same results.

Link to comment
Share on other sites

2 hours ago, javikobcn said:

Can you tell me if this 1080 H264 movie the HW transcodding is working?

 

jellyfin does try to encode ahead (there is a predefined folder for the result that can be seen in the admin config for replay) and that - i guess - consumes the cpu/gpu power to the >90%

activate "Throttle Transcodes" in the admin replay menu (last entry in the same menu where you activated the qsv support), in my system that reduced the load to about 25% when watching in transcode mode in browser (bluray to 10Mbps 720p)

 

you could also try to rename /lib/modules/i915.ko and disable qsv that way (reboot, there should be nothing in /dev/dri)

then try to activate hardware transcoding in jellyfin ... even if you would be able to activte there should be no transcoded picture on replay

 

Edited by IG-88
Link to comment
Share on other sites

On 5/16/2022 at 5:35 PM, javikobcn said:

There is a method to downgrade or change the version?

depends on what you have done, the link you provided is about docker and the ffmpeg update was done with "apt" and that would not work in DSM, only i the docker container

the thing i wrote above would be to install ffmpeg and jellyfin through the dsm package center by adding  synocommunity.com as source as you can read here

https://synocommunity.com/

the original dsm version files can usually extracted from the *.pat file

there is a way to patch /usr/syno/sbin/synoarchive and extract the new 7.x *.pat files

https://xpenology.com/forum/topic/57204-dsm71-beta/?do=findComment&comment=267257

 

and if that does not work you could still install the dsm version in question to a single empty disk and copy the files you need after install to usb to bring the to your damaged installation

 

Link to comment
Share on other sites

On 5/20/2022 at 12:14 AM, IG-88 said:

depends on what you have done, the link you provided is about docker and the ffmpeg update was done with "apt" and that would not work in DSM, only i the docker container

the thing i wrote above would be to install ffmpeg and jellyfin through the dsm package center by adding  synocommunity.com as source as you can read here

https://synocommunity.com/

the original dsm version files can usually extracted from the *.pat file

there is a way to patch /usr/syno/sbin/synoarchive and extract the new 7.x *.pat files

https://xpenology.com/forum/topic/57204-dsm71-beta/?do=findComment&comment=267257

 

and if that does not work you could still install the dsm version in question to a single empty disk and copy the files you need after install to usb to bring the to your damaged installation

 

Do you mean an installation of the version of dsm that I use on my nas as if it were an installation from 0 and then once inside the nas copy the necessary filesfrom the usb to my dsm via ssh?
If so, is there a post to use as a guide?

Link to comment
Share on other sites

On 5/20/2022 at 12:14 AM, IG-88 said:

the thing i wrote above would be to install ffmpeg and jellyfin through the dsm package center by adding  synocommunity.com as source as you can read here

https://synocommunity.com/

I have installed the package from synocomunity but now i can't use hw acceleration because i receive this message: "This content is not compatible with this device and cannot be played: It cannot be obtained from the server in a compatible format".
I think the only solution is do the usb installation to restore the damaged installation and pray for not need to reinstall all the dsm...

Edited by javikobcn
Link to comment
Share on other sites

On 5/21/2022 at 11:46 AM, javikobcn said:

Do you mean an installation of the version of dsm that I use on my nas as if it were an installation from 0 and then once inside the nas copy the necessary filesfrom the usb to my dsm via ssh?

thats meant to be done only for one or a few files you exactly know you changed and did not make a copy of the files before that to restore them

you also need to restore things like the executable flag if needed

 

On 5/21/2022 at 11:46 AM, javikobcn said:

If so, is there a post to use as a guide?

no that no normal operation and from the question i'd guess you dont have enough linux experience to handle it so that might not be a good option for you,  even on a windows system its not that easy to restore a whole system by just copying files from another disk

 

On 5/21/2022 at 11:53 AM, javikobcn said:

I think the only solution is do the usb installation to restore the damaged installation and pray for not need to reinstall all the dsm..

i'd suggest doing a test install with one empty disk and try to install dsm and then install the packages and to see if you can get it working an a fresh/normal installation, if you could always remove all partitions of that disks and start over with a new install if things go wrong

if you get it working that way you might find out too what you did wrong with you current install

its also possible to use a working installation on a single disk to replace the system of a already install system on a multi disk install, thats one method to do a downgrade and there is a howto for that

https://xpenology.com/forum/topic/12778-tutorial-how-to-downgrade-from-62-to-61-recovering-a-bricked-system/

it can be used for any version as you use the new single disk as master to replace the system partitions on the other disks, the downside it to loose the whole old config

 

 

Link to comment
Share on other sites

Ok i'm decided to reinstall the dsm by 0.
I am not able to follow the instructions to try to restore the files as you have indicatedbut i need to know if i will lost all the files of the hard disk or only the dsm files? I only have one hard disk without partitions.

Greetings.

Edited by javikobcn
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...