When someone say that harware transcoding is not working on TOS5, it should also specify the NAS model as we have different situations now.
- For the new models with JasperLake CPU N5095/N4505 (Fx-x23, Tx-x23), hardware transcoding is broken in TOS 5.1 and TM have to fix it probably with a new kernel.
- For the older models, hardware transcoding is broken due to a missing parameter in Plex startup script (to be fixed by plex)
This can also be fixed by users with SSH knowledge, the issue is that the plex user is not added to the video group which have access to video card.
Is a one time change.
In order to fix it, connect with SSH and:
- check if the user plex is already part of the video group
Code: Select all
id "plex" | grep "(video)"
Code: Select all
usermod -aG video "plex"
Check again if the change was done
Code: Select all
id "plex" | grep "(video)"
Code: Select all
uid=1009(plex) gid=6(media) groups=6(media),28(video)
Code: Select all
Apr 12, 2023 20:04:59.436 [0x7efd6c042b38] INFO - Plex Media Server v1.31.2.6783-9209b39b4 - TerraMaster TNAS F2-221 x86_64 - build: linux-x86_64 terramaster-tos5 - GMT 08:00
Apr 12, 2023 20:04:59.437 [0x7efd6c042b38] INFO - Linux version: TOS 5.1.31-00348, language: en-US
Apr 12, 2023 20:04:59.437 [0x7efd6c042b38] INFO - Processor: 2-core Intel(R) Celeron(R) CPU J3355 @ 2.00GHz
Apr 12, 2023 20:05:59.567 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] TPU: hardware transcoding: using hardware decode accelerator vaapi
Apr 12, 2023 20:05:59.567 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] TPU: hardware transcoding: zero-copy support present
Apr 12, 2023 20:05:59.567 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] TPU: hardware transcoding: using zero-copy transcoding
Apr 12, 2023 20:05:59.568 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [Universal] Using local file path instead of URL: /Volume1/Movies/
Apr 12, 2023 20:05:59.568 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] Codecs: hardware transcoding: testing API vaapi
Apr 12, 2023 20:05:59.571 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x32315659 -> yuv420p.
Apr 12, 2023 20:05:59.571 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x30323449 -> yuv420p.
Apr 12, 2023 20:05:59.571 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x3231564e -> nv12.
Apr 12, 2023 20:05:59.571 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x32595559 -> yuyv422.
Apr 12, 2023 20:05:59.571 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x59565955 -> uyvy422.
Apr 12, 2023 20:05:59.571 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x48323234 -> yuv422p.
Apr 12, 2023 20:05:59.571 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x58424752 -> rgb0.
Apr 12, 2023 20:05:59.572 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x58524742 -> bgr0.
Apr 12, 2023 20:05:59.572 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Format 0x30313050 -> p010le.
Apr 12, 2023 20:05:59.572 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Created surface 0x4000000.
Apr 12, 2023 20:05:59.572 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] [FFMPEG] - Direct mapping possible.
Apr 12, 2023 20:05:59.573 [0x7efd691e7b38] DEBUG - [Req#18b/Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi