stevezau / plex_generate_vid_previews

Speed up the process of generating preview thumbnails for your Plex media library.
69 stars 12 forks source link

How to force CPU only encoding #10

Closed Hemues closed 2 years ago

Hemues commented 2 years ago

Hi there,

Big fan of your work. I am facing the following issue:

2022-08-16 23:52:29.529 | INFO | main:run:214 - Getting Movies from Plex

2022-08-16 23:52:31.373 | INFO | main:run:216 - Got 913 Movies from Plex ⠼ Working... 0% -:--:-- 0/913 2022-08-16 23:52:39.804 | ERROR | main:process_item:198 - NVML Shared Library Not Found ⠇ Working... 0% -:--:-- 0/913 2022-08-16 23:52:46.598 | ERROR | main:process_item:198 - NVML Shared Library Not Found ⠋ Working... 0% -:--:-- 0/913 2022-08-16 23:52:53.870 | ERROR | main:process_item:198 - NVML Shared Library Not Found ⠧ Working... 0% -:--:-- 0/913

My config:

EDIT These Vars

PLEX_URL = 'https://127.0.0.1:32400/' # If running locally, can also enter IP directly "https://127.0.0.1:32400/" PLEX_TOKEN = 'PLEXTOKEN' PLEX_BIF_FRAME_INTERVAL = 5 THUMBNAIL_QUALITY = 4 # Allowed range is 2 - 6 with 2 being highest quality and largest file size and 6 being lowest quality and smallest file size. # PLEX_LOCAL_MEDIA_PATH = '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost' TMP_FOLDER = '/dev/shm/plex_generate_previews' GPU_THREADS = 0 CPU_THREADS = 2

It should not use any GPUs, but only CPU, am I missing something ?

stevezau commented 2 years ago

looks like an issue withe the gpu tool. see https://github.com/wookayin/gpustat/issues/90 to see if it fixes your problem.

Hemues commented 2 years ago

However I installed, still no luck.

2022-08-17 09:55:16.895 | INFO | main:run:214 - Getting Movies from Plex

2022-08-17 09:55:18.819 | INFO | main:run:216 - Got 913 Movies from Plex ⠏ Working... 0% -:--:-- 0/913 2022-08-17 09:55:29.257 | ERROR | main:process_item:198 - Driver Not Loaded ⠦ Working... 0% -:--:-- 1/913 2022-08-17 09:55:31.436 | ERROR | main:process_item:198 - Driver Not Loaded ⠏ Working... 0% 0:33:27 2/913 2022-08-17 09:55:38.094 | ERROR | main:process_item:198 - Driver Not Loaded ⠧ Working... 0% 1:07:35 3/913 2022-08-17 09:55:40.276 | ERROR | main:process_item:198 - Driver Not Loaded ⠙ Working... 0% 0:55:38 4/913

Can it be that I will be able to use this script If I would have a nvidia graphics card installed physically into that machine ?

Hemues commented 2 years ago

I am using Fedora 36 linux.

stevezau commented 2 years ago

As it's a external library tool, I'd suggest you create an issue on their GitHub page. Not much I can do.

Hemues commented 2 years ago

Just and FYI: I have inserted a 1080 gtx card and it worked flawlessly. Great Job ! Ok, thanks, I will close this ticket.