Closed christianmerges closed 9 months ago
I believe the value for FFMPEG_HWACCEL is incorrect. It should be set to vaapi, or cuda, or whichever driver you are looking to use.
Regarding debugging, the first thing we should probably look at is the logs of the worker. It will probably let us know what error is being thrown.
Also, for using Nvidia GPUs I believe swarm won't work for the worker, since it requires you to specify the devices and runtime, which last time I checked swarm compose didn't support. So you might need to run that as a separate compose stack. See https://github.com/pabloromeo/clusterplex/pull/81 as an example.
I think adding the card is working, because I see the following in the container log: adding /dev/dri/card0 to video group root with id 0 permissions for /dev/dri/renderD128 are good
looks like forwarding devices is now handled by the nvidia docker plugin.
i changed the value to "cuda". Still no stream.
strangely i can the the the video playing in small thumbnail in plex dashboard.
worker logfile last lines since container start:
Codec libzmbv_decoder.so already exists. Skipping
EAE_SUPPORT => 1
EAE_EXECUTABLE => /codecs/8217c1c-4578-linux-x86_64-standard/EasyAudioEncoder/EasyAudioEncoder/EasyAudioEncoder
FFMPEG_HWACCEL => cuda
ON_DEATH: debug mode enabled for pid [709]
Computed CPU ops => 1019419
Initializing Worker 4a462f46-0372-4b36-b47d-226c3010e098|plex-worker-gpu1
Worker listening on port 3501
Worker connected on socket enzbw1ROOaz7vZj2AAAD
I removed the FFMPEG_HWACCEL variable completely für testing, and still not transcoding. It looks like the job never arrives at the worker. When transcoding is working, should there be something in the container log on the worker?
The issiue was regarding to docker network.
i forgot to add networks:
to the plex containers. I figured it out by typing "wget plex:32400" at the worker and got name resolution error. But even with the ip i was able to connect.
Describe the bug When i deploy in docker swarm with docker mods, the movie doesn't start, but in the dashboard section of plex, the time of the movie is already running. How can i debug this?
yaml
Expected behavior the worker should transcode
Server (please complete the following information):
Additional context I can see that there is a sub-folder created in the /transcode directory, but there are no files inside.