Hardware Transcoding auf DSM 7 trotz Plex Packaging 2.0 im Docker funktioniert nicht

Moin Leute

Ich bin vor kurzen von ner DS418play DSM 6.2 auf de DS1520+ migriert. Dabei wurde automatisch DSM 7 installiert. Das korrekte Installieren von Plex mit dem neuem User/Ordner PlexMediaServer hab ich durch und Plex läuft “eigentlich”.

Die letzten Tage hat es mich überrascht, dass Videos die vorhin problemlos mit (hw) gestreamt werden konnten, nun alle 2-3 Sekunden buffern. Betrifft eigentlich hauptsächlich Animes, die im MKV-Format daher kommen.

Bin auf meiner Problemsuche auf das hier gestossen und hab Plex im Docker Container zum laufen gekriegt:

Habe dabei die “Alternative”-Route durchgemacht, mit passendem UID und GID (bei mir gleiche wie in der Anleitung):

sudo docker run \
-d \
--name plex \
--network=host \
-e TZ="MEZ" \
-e LANG="de-CH.UTF-8" \
-e PLEX_UID=297536 \
-e PLEX_GID=297536 \
-h dockerplex \
-v /volume1/PlexMediaServer/AppData:"/config/Library/Application Support" \
-v /volume1/PlexMediaServer/AppData/tmp:/tmp \
-v /volume1/PlexMediaServer/AppData/tmp:/transcode \
-v /volume1:/volume1 \
--device=/dev/dri:/dev/dri \
plexinc/pms-docker:plexpass

Nur leider hat sich das Problem mit der buffern bei (hw) nicht gelöst.
Hat jemand ne Idee, weswegen das sein könnte, habe ich irgend etwas übersehen?

Server Version#: 1.25.0.5220-7000
Player Version#: viele verschiedene

ich muss diesen sudo ohne die Zeile
-v /volume2:/volume2 \

laufen lassen, da sonst mein Terminal die Meldung bringt:
docker: Error response from daemon: Bind mount failed: ‘/volume2’ does not exists.

geht darum die (hw) nicht korrekt bei mir?

Ich muss fragen, wie viele “Volume” gibt’s ?

Normal oder USB ?

nur volume 1, da ist alles drauf.
deswegen wundert es mich, dass in der anleitung von volume 2 die rede ist.
ist das für User gedacht, die nicht alles auf Volume1 haben?

Das erklärt aber nicht, wieso es bei mir mit der (hw) trotzdem buffert…

Also versteh ich das richtig, (hw) sollte nur funktionieren, wenn der docker container läuft.
wenn stattdessen das normale paket vom Paket-Zentrum läuft, steht dann (hw) gar nicht erst zur verfügung oder sollte es noch schlechter laufen, als es bei mi jetzt der docker container tut?

Wann nur Volume 1 gibt,

Von SSH als ‘root’, bitte versuchen -

sudo bash
chnod 777 /dev/dri /dev/dri/*

Danach,

sudo docker run \
-d \
--name plex \
--network=host \
-e TZ="MEZ" \
-e LANG="de-CH.UTF-8" \
-e PLEX_UID=297536 \
-e PLEX_GID=297536 \
-h dockerplex \
-v /volume1/PlexMediaServer/AppData:"/config/Library/Application Support" \
-v /volume1/PlexMediaServer/AppData/tmp:/tmp \
-v /volume1/PlexMediaServer/AppData/tmp:/transcode \
-v /volume1:/volume1 \
--device=/dev/dri:/dev/dri \
plexinc/pms-docker:plexpass

Wann es funktioniert, werden wir ein “Scheduled Task” schreiben.

admin@DS1520:/$ sudo -i
Password: 
root@DS1520:~# sudo bash
bash-4.4# chnod 777 /dev/dri /dev/dri/*
bash: chnod: command not found
bash-4.4# sudo bash
bash-4.4# chmod 777 /dev/dri /dev/dri/*
bash-4.4# sudo docker run \
> -d \
> --name plex \
> --network=host \
> -e TZ="MEZ" \
> -e LANG="de-CH.UTF-8" \
> -e PLEX_UID=297536 \
> -e PLEX_GID=297536 \
> -h dockerplex \
> -v /volume1/PlexMediaServer/AppData:"/config/Library/Application Support" \
> -v /volume1/PlexMediaServer/AppData/tmp:/tmp \
> -v /volume1/PlexMediaServer/AppData/tmp:/transcode \
> -v /volume1:/volume1 \
> --device=/dev/dri:/dev/dri \
> plexinc/pms-docker:plexpass
255f6683a9bc1fe764958f5a05b4c4087637edc599cdfd7967e831e44d5b2b46
bash-4.4# 

mit chmod

Das Buffering wurde damit aber nicht gelöst…

Log files please ? (DEBUG)

Plex Media Server Logs_2021-11-16_16-37-30.zip (2.6 MB)

Hope this helps.
Do you want me to provide the video file?

@Oliver-Lopez-Otero

  "location": "segments-audio"
}
Nov 16, 2021 16:36:51.222 [0x7fe15b0acb38] INFO - [Plex for Samsung] [Oliver Lopez Otero:5jug580k7ulsqwtasmu39buj]   subtitleStream: {
  "burn": "1",
  "codec": "ass",
  "default": true,
  "displayTitle": "Deutsch Forced (ASS)",
  "extendedDisplayTitle": "Deutsch (Forced ASS)",
  "forced": true,
  "id": "207401",
  "language": "Deutsch",
  "languageCode": "deu",
  "languageTag": "de",
  "requiredBandwidths": "1,1,1,1,1,1,1,1",
  "selected": true,
  "streamType": 3,
  "title": "Deutsch",
  "decision": "burn",
  "location": "segments-video"
}
Nov 16, 2021 16:36:51.222 [0x7fe15b0acb38] INFO - [Plex for Samsung] [Oliver Lopez Otero:5jug580k7ulsqwtasmu39buj]   augmentations with profile: Generic
Nov 1

Subtitles disable a portion of HW assist.

  1. HW decode
  2. CPU burning of subtitles
  3. HW encode

CPU usage still high! :slight_smile:

Change player settings - Subtitle burning – Only Image Formats (nicht “Automatisch”)

Do I need to change this setting in the plex web settings or on every client app?

Yes, in each player, change the default from Automatic → Only Image Formats.

Well it works on my TV, streams seem to run smoothly without buffering, so thank you Sir.
You are worth your weight in gold!

Now I gotta make sure, every one of my 22 Plex users changes this setting on their devices… :ok_hand:

Ich muss mich enschuldigen. Seit lange habe ich fast kein Wort Deutsch gesprochen order geschrieben. :slight_smile:

I have come across an issue with setting this up.

Some clients like my Samsung Smart TV, can‘t use Direct Play on .mkv files with ASS subtitels, so they use HW.
Before the „Upgrade“ to the DS1520+ and DSM 7, this is how it should look:

But now on my TV, because Plex doesn’t burn them in automatic and shows subtitles only on the bottom, all German subtitles you see on the picture are show one above each other at the bottom.

And all clients who use Plex on PS4‘s, there looks to be no option to set up „only Image Format“, so on their PS4 it keeps buffering.
Is there any other workaround for this, then changing the subtitle burning option?

Why do subtitles suddenly disable a portion of HW assist? Is it again because of DSM 7? On my previous DS418play with DSM 6 these videos streamed with subtitles burning on automatic and the new DS1520+ has a much powerful CPU.

@ChuckPa
This is how it looks on my Samsung TV now with the subtitles not beeing burned in.

I forget how the Samsung app is structured but don’t you have control over where the subtitles are placed?

I have control of placement in my Shield app
In my LG web app (should be almost the same as the Samsung app)

The TV doesn’t have full support for the ASS format.
AFAIR, if you select “only image formats”, you lose almost all formatting of ASS subtitles. The server will basically extract the pure text and send this unformatted to the TV.
If you want and need the full formatting, you will have to let the server burn-in the subs. i.e. set “Burn Subtitles” to “Always”

Yes I can. And it seems, that exactly there is the problem. Animes with fansubs often have ASS subtitles and these can have the subtitle-text all over the frame like in my example. Depending on where the japanese text is, that is been overwritten with the subtitle text.

The Plex App on my Samsung TV overrides this positioning with the one set up under „Subtitle Position“, so all text is shown in my place at the bottom.

Surprinsingly I connected an Apple TV to my Samsung TV and with Subtitles burning on „always“ and forcing it to do HW by dissabling direct play in the settings, it doesn‘t buffer at all. I think it has to do with a settings option the Samsung TV doesn‘t have, translated in english it would be called like „Embedded subtitle formatting“. With this one ON, it seem to override the Subtitle Position Setting.

So the high CPU ussage on the Samsung Plex App while HW didn‘t actually come from the burning in of the subtitle, more from the having to move the subtitle from its position in the ASS-file to the one specified in the settings.

That could be solved by adding this feature to the Samsung Plex App. Is there a reason thos feature isn‘t in the Samsung Plex App?

Can you confirm that with the current log file?

So the high CPU ussage on the Samsung Plex App while HW didn‘t actually come from the burning in of the subtitle, more from the having to move the subtitle from its position in the ASS-file to the one specified in the settings.

Plex Media Server Logs_2021-11-17_19-29-19.zip (5.3 MB)