Open Paradoxum opened 4 days ago
nvidia-smi in the console for the script
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?
It seemed to be running fine, then plex crashed:
plex logs: Logs.zip
I couldn't get the log of the script because it ran again immediately.
It was running without issue for a couple of hours then suddenly;
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:
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
@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.
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:
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://github.com/stevezau/plex_generate_vid_previews/assets/6451395/e9b55445-9d8d-4645-9b98-0d565e4b0e92)
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?
The script has general issues with needing permissions, so after running it I have to rush to plex and media shares and set them both r/w for all and that seems to fix the script
I just did it now a few times, and i've got almost a whole log screen of successful generations
Is there something I can put in the docker file to make it run as privileged / root ?
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.