Synology [Tuto] Installation de Plex en Docker sur un NAS Synology + Transcodage Matériel / Hardware (HW)

Bonjour,

Merci pour ton retour, ça fonctionne correctement à présent.

J’ai une nouvelle question (plus je creuse plus je m’en pose…)
Quand je me connecte sur Plex (via mon MacBook Pro), j’ai une notification m’indiquant que j’ai une mise à jour à réaliser.

Peux tu me confirmer que tenter de mettre à jour Plex via mon MacBook Pro ne sert à rien puise que Plex n’est pas installé sur mon ordinateur mais sur le NAS ?

Si oui, peux-tu m’indiquer comment mettre à jour manuellement mon conteneur Plex ?

Enfin, j’ai suivi ton tutoriel Whatchtower qui devrait réaliser cela automatiquement mais je ne sais pas où insérer le labels qui indique à Watchtower de mettre à jour Plex automatiquement.
J’imagine que c’est parce que j’ai installé Plex via docker DSM et non pas Portainer ?
 
Peux tu me confirmer que tenter de mettre à jour Plex via mon MacBook Pro ne sert à rien puise que Plex n’est pas installé sur mon ordinateur mais sur le NAS ?
Je confirme. Plus précisement, il est meme installé dans un conteneur Docker sur ton NAS.

Si oui, peux-tu m’indiquer comment mettre à jour manuellement mon conteneur Plex ?
Puisque c'est une installation via Docker DSM, il faut supprimer l'image du conteneur plex dans le menu Images de Docker DSM. Puis télécharger la nouvelle image, et recréer le conteneur ( Avec la fonction Effacer dans Docker DSM ).

Par contre attention, il faut bien différencier le conteneur et Plex, le conteneur subit des mises à jour, Plex également.

Si comme dans le tuto, dans la variable environnement du a renseigner pour VERSION la valeur latest, alors redémarer le conteneur te suffira a obtenir la derniere version de Plex. Il est possible de mettre public pour rester uniquement sur les version stable meme si on possède le plex pass, ou sur docker pour que plex reste à la version du conteneur ( il se mettera donc a jour que si on met a jour le conteneur ).

J’imagine que c’est parce que j’ai installé Plex via docker DSM et non pas Portainer ?
Oui, Docker DSM ne gere pas les "labels"
 
Bonjour,

J'ai un petit soucis, j'ai bien suivi l'installation mais je n'ai pas le (hw) qui s'affiche sur la version docker, mais en version synology package je l'ai. Du coup mon processeur est beaucoup plus utilisé qu'auparavant pour le transcodage. Y'aurait-il une solution ? J'utilise un synology DS720+

Merci d'avance :)
 
Donc tu as bien ajouter /dev/dri au conteneur ? appliqué le script de permission ? et redémarrer le conteneur ?
Ou peu avoir une impression ecran du tableau de bord pendant une lecture ?
 
Screenshot_2022-08-29-18-43-00-92_59a7afbf1cddd92a5934ee885f309108.jpgOui j'ai bien édité le conteneur et activé le script pour le transcodage Plex. J'ai fais le même tuto pour jellyfin et ça fonctionne mais pas sur Plex :/
 
Dans plex tu as bien activer : Utiliser l'accélération matérielle si disponible, dans paramètres, réglages, transcodeur ?
SYalLfx.png
 
<SessionReport version="2" startTime="0" startTimestamp="Aug 29, 2022 18:16:56.576" key="/library/metadata/11322" session="ylxs0hvx1eltteg9isexoc2w" transcode="d0x9xp6rr4t7kyr49fmt7uhv">
<User id="82244447" thumb="https://plex.tv/users/8821cf1ae40f2aa0/avatar?c=1648660281" title="letrme." />
<Player address="92.167.192.201" device="Windows" machineIdentifier="2mg4fjaj4b7mmh9nnys3y6f7" model="hosted" platform="Chrome" platformVersion="104.0" product="Plex Web" remotePublicAddress="92.167.192.201" title="Chrome" version="4.89.1" local="0" relayed="0" secure="1" userID="82294447" />
<Variants>
<Variant id="486491c6-61db-4c64-afae-774ee58e9ac7" targetBitrate="1985" context="streaming" sourceVideoCodec="hevc" sourceAudioCodec="eac3" videoDecision="transcode" audioDecision="transcode" protocol="dash" container="mp4" videoCodec="h264" audioCodec="aac" audioChannels="2" transcodeHwRequested="1" transcodeHwFullPipeline="0">
<Media id="23340" videoProfile="main 10" audioChannels="2" audioCodec="aac" bitrate="1890" container="mp4" duration="3936448" height="360" optimizedForStreaming="1" protocol="dash" videoCodec="h264" videoFrameRate="24p" videoResolution="SD" width="720" selected="1">
<Part id="23340" videoProfile="main 10" bitrate="1890" container="mp4" duration="3936448" height="360" optimizedForStreaming="1" protocol="dash" width="720" decision="transcode" selected="1">
<Stream bitrate="1712" codec="h264" default="1" displayTitle="1080p (HEVC Main 10)" extendedDisplayTitle="1080p (HEVC Main 10)" frameRate="23.975999832153320" height="360" id="56697" streamType="1" width="720" decision="transcode" location="segments-video" />
<Stream bitrate="178" bitrateMode="cbr" channels="2" codec="aac" default="1" displayTitle="Fran&#231;ais (EAC3 5.1)" extendedDisplayTitle="Fran&#231;ais (EAC3 5.1)" id="56698" language="Fran&#231;ais" languageCode="fra" languageTag="fr" selected="1" streamType="2" decision="transcode" location="segments-audio" />
</Part>
</Media>
</Variant>
<Variant id="1214fc31-b9f9-43e6-9259-2d1a5dfeaf57" targetBitrate="1985" context="streaming" sourceVideoCodec="hevc" sourceAudioCodec="eac3" videoDecision="transcode" audioDecision="transcode" protocol="dash" container="mp4" videoCodec="h264" audioCodec="aac" audioChannels="2" transcodeHwRequested="1" transcodeHwFullPipeline="0">
<Media id="23340" videoProfile="main 10" audioChannels="2" audioCodec="aac" bitrate="1890" container="mp4" duration="3936448" height="360" optimizedForStreaming="1" protocol="dash" videoCodec="h264" videoFrameRate="24p" videoResolution="SD" width="720" selected="1">
<Part id="23340" videoProfile="main 10" bitrate="1890" container="mp4" duration="3936448" height="360" optimizedForStreaming="1" protocol="dash" width="720" decision="transcode" selected="1">
<Stream bitrate="1712" codec="h264" default="1" displayTitle="1080p (HEVC Main 10)" extendedDisplayTitle="1080p (HEVC Main 10)" frameRate="23.975999832153320" height="360" id="56697" streamType="1" width="720" decision="transcode" location="segments-video" />
<Stream bitrate="178" bitrateMode="cbr" channels="2" codec="aac" default="1" displayTitle="Fran&#231;ais (EAC3 5.1)" extendedDisplayTitle="Fran&#231;ais (EAC3 5.1)" id="56698" language="Fran&#231;ais" languageCode="fra" languageTag="fr" selected="1" streamType="2" decision="transcode" location="segments-audio" />
</Part>
</Media>
</Variant>
</Variants>
<SegmentList>
<Segment duration="8008" startOffset="0" endOffset="8008">
<File name="chunk-stream0-00001.m4s" type="video">
 
Dans tes logs :


Code:
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: testing h264_vaapi (encoder)
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: testing API vaapi
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Could not create hardware context for h264_vaapi
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: testing h264_nvenc (encoder)
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: testing API nvenc
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] ERROR - [Req#1a1/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] ERROR - [Req#1a1/Transcode] [FFMPEG] - Could not dynamically load CUDA
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Could not create hardware context for h264_nvenc
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: testing h264 (decoder) with hwdevice vaapi
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: testing API vaapi
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Could not create hardware context for h264
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: testing h264 (decoder) with hwdevice nvdec
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: testing API nvdec
Aug 29, 2022 18:53:44.443 [0x7fecb6bf0b00] ERROR - [Req#1a1/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Aug 29, 2022 18:53:44.443 [0x7fecb6bf0b00] ERROR - [Req#1a1/Transcode] [FFMPEG] - Could not dynamically load CUDA
Aug 29, 2022 18:53:44.443 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Aug 29, 2022 18:53:44.443 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Could not create hardware context for h264

Par contre, je ne sais pas comment les interpréter, mais il y effectivement un soucis
Vérifie tes PUID/GUID
 
Il faudrait aussi vérifier les permissions du dossier /dev/dri
 
Dans tes logs :


Code:
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: testing h264_vaapi (encoder)
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: testing API vaapi
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Could not create hardware context for h264_vaapi
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: testing h264_nvenc (encoder)
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: testing API nvenc
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] ERROR - [Req#1a1/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] ERROR - [Req#1a1/Transcode] [FFMPEG] - Could not dynamically load CUDA
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Could not create hardware context for h264_nvenc
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: testing h264 (decoder) with hwdevice vaapi
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: testing API vaapi
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Could not create hardware context for h264
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: testing h264 (decoder) with hwdevice nvdec
Aug 29, 2022 18:53:44.442 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: testing API nvdec
Aug 29, 2022 18:53:44.443 [0x7fecb6bf0b00] ERROR - [Req#1a1/Transcode] [FFMPEG] - Cannot load libcuda.so.1
Aug 29, 2022 18:53:44.443 [0x7fecb6bf0b00] ERROR - [Req#1a1/Transcode] [FFMPEG] - Could not dynamically load CUDA
Aug 29, 2022 18:53:44.443 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Aug 29, 2022 18:53:44.443 [0x7fecb6bf0b00] DEBUG - [Req#1a1/Transcode] Could not create hardware context for h264

Par contre, je ne sais pas comment les interpréter, mais il y effectivement un soucis
Vérifie tes PUID/GUID
Alors je viens de créer un utilisateur "plex" qui a accès au dossier docker/plex + les fichiers de ma vidéotheque mais rien n'a changé pourtant j'ai le bon GUID/PUID :/
Message automatiquement fusionné :

Il faudrait aussi vérifier les permissions du dossier /dev/dri
C'est à dire ?
 
C'est à dire ?
Faut vérifier via un ls -la, en ssh ?

Sinon lavant derrière version de Plex pose soucis sur le transcode hw qui ne fonctionne plus : enfin sur les contenus hdr , testé et vérifie chez moi…
Il faut la VERSION=1.28.0.5999-97678ded3 (pour l’image de linuxserver)
Il y a une issue sur le GH à ce propos, mais j’ai pas le lien ?
 
voilà ce que ça donne pour l'utilisateur plex :
total 100
drwxr-xr-x 26 root root 4096 Aug 23 21:36 .
drwxr-xr-x 26 root root 4096 Aug 23 21:36 ..
lrwxrwxrwx 1 root root 7 Jun 23 19:47 bin -> usr/bin
drwxr-xr-x 3 root root 4096 Jul 22 01:20 boot
-rw-r--r-- 1 root root 40 Aug 12 22:15 checksum.syno
drwxr-xr-x 7 root root 0 Aug 12 22:15 config
drwxr-xr-x 17 root root 14120 Aug 13 20:32 dev
drwxr-xr-x 49 root root 4096 Aug 29 19:36 etc
drwxr-xr-x 42 root root 4096 Aug 12 22:08 etc.defaults
drwxr-xr-x 2 root root 4096 Apr 1 11:48 initrd
lrwxrwxrwx 1 root root 7 Jun 23 19:47 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Jun 23 19:47 lib32 -> usr/lib32
lrwxrwxrwx 1 root root 7 Jun 23 19:47 lib64 -> usr/lib
drwxr-xr-x 3 root root 4096 Aug 12 22:14 .log.junior
drwx------ 2 root root 4096 Apr 1 11:48 lost+found
drwxr-xr-x 2 root root 4096 Apr 1 11:48 mnt
drwxr-xr-x 2 root root 4096 Jun 23 19:48 .old_patch_info
drwx--x--x 3 root root 4096 Jun 23 21:34 opt
dr-xr-xr-x 543 root root 0 Oct 30 2019 proc
-rw------- 1 root root 1024 Aug 12 22:15 .rnd
drwx------ 2 root root 4096 Jun 23 20:29 root
drwxr-xr-x 55 root root 3100 Aug 29 20:02 run
lrwxrwxrwx 1 root root 8 Jun 23 19:47 sbin -> usr/sbin
drwxr-xr-x 3 root root 4096 Jul 22 01:20 .syno
srwxr-xr-x 1 root root 0 Aug 23 21:36 syno_etcd_client:2379
-rw-r--r-- 1 root root 20480 Aug 12 22:15 SynoUpgrade.tar
dr-xr-xr-x 12 root root 0 Aug 12 22:14 sys
drwxr-xr-x 2 root root 4096 Jun 26 12:35 .system_info
drwxrwxrwt 22 root root 2860 Aug 29 20:03 tmp
drwxr-xr-x 2 root root 4096 Jul 22 01:20 tmpRoot
drwxr-xr-x 12 root root 4096 Jul 26 06:20 usr
drwxr-xr-x 15 root root 4096 Aug 12 22:15 var
drwxr-xr-x 12 root root 4096 Jun 23 19:47 var.defaults
drwxr-xr-x 1 root root 1438 Aug 12 22:14 volume1
drwxr-xr-x 1 root root 674 Aug 12 22:14 volume2
 
total 0
drwxr-xr-x 2 root root 80 Aug 12 22:14 .
drwxr-xr-x 17 root root 14120 Aug 13 20:32 ..
crw------- 1 root root 226, 0 Aug 12 22:14 card0
crw-rw-rw- 1 root videodriver 226, 128 Aug 12 22:14 renderD128
 
@P4sh0u regarde mon message précédent ☺️ Essaye d’installer la version que j’indique.

Ps : je te conseille très fortement d’installer puis d’utiliser Portainer pour le déploiement des conteneurs ☺️
Essaye de voir si tu ne peux pas accéder à la ligne de commande ssh ?