stevezau / plex_generate_vid_previews

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

Generic error in an external library', ' Error initializing a simple filtergraph', 'Error opening output file #39

Open Paradoxum opened 4 days ago

Paradoxum commented 4 days ago

I managed to generate thumbs using the exact same docker file for all my libraries 1 by 1 by adding the paths each time, now I have only TV Shows left, and I am getting this:

image

s5wCGGb 1

It looks like it is able to generate some.. but errors on a lot of them. Even episodes from the same series/release torrent etc. I tried clearing Plex's Cache Codecs and Drivers and letting it get them again which sometimes fixes an error, but not working now.

Any ideas?

Here's a little more, seems to generate some eps but that error on others; image

https://stackoverflow.com/questions/41761684/avcodec-encode-video2-return-542398533-generic-error-in-an-external-library-onl

https://stackoverflow.com/questions/77751538/ffmpega-general-error-in-an-external-library-occurred-when-using-ffmpeg6-1s-av

https://github.com/nyanmisaka/ffmpeg-rockchip/issues/5

Never seen this error before. exact same docker file as other libraries. it seems able to do some episodes of the same series but fails on others?

image

Edit: https://github.com/blakeblackshear/frigate/issues/690 Says something about the error being not able to find your GPU.

https://www.reddit.com/r/Tdarr/comments/qis38p/device_setup_failed_for_decoder_on_input_stream/

https://www.reddit.com/r/ispyconnect/comments/umpmj0/agent_dvr_cant_get_hw_decoding_working/

Strange that it doesn't work at first then does etc.

Paradoxum commented 4 days ago

nvidia-smi in the console for the script

image

I ran it again, and it seems like it skipped the show down to starting with D, so not sure what's gone on with those C shows it couldn't do?

image

Paradoxum commented 4 days ago

It seemed to be running fine, then plex crashed: image

plex logs: Logs.zip

I couldn't get the log of the script because it ran again immediately.

Paradoxum commented 4 days ago

It was running without issue for a couple of hours then suddenly;

vyxZ03v 1

Paradoxum commented 3 days ago

I think I have the root cause of this. The script becomes unable to write anything in the Plex share. I have to go here, outside of the shares: image

and then set R/W all on the Plex share which contains all the plex metadata. Doing it on anything inside that doesn't work, the script needs R/W to the Plex container.

So, I also don't know why it keeps reverting my changes it must be another docker or even plex doing it, but how do I make the script run as like pure root so I don't even need to change permissions?

Thanks

stevezau commented 2 days ago

@Paradoxum getting your file permissions right is beyond the scope of this script..

But.. you might want to look at the --user option when starting the container.. Suggest you start it as the same user who owns the plex files.