McCloudS / subgen

Autogenerate subtitles using OpenAI Whisper Model via Jellyfin, Plex, Emby, Tautulli, or Bazarr
MIT License
532 stars 48 forks source link

Setting up via Unraid #37

Closed DMD770 closed 7 months ago

DMD770 commented 7 months ago

I'm a bit loss on how to set this up via Unraid. I tried to do the add container, but it would not take any link repository. I get the idea how the file directory is supposed to be. but im just unable to add it via container if that make sense.

McCloudS commented 7 months ago

Here's a screenshot of mine... They should at least get you up and running. If you aren't going to use a GPU, use mccloud/subgen:cpu. Go to your Docker page, at the bottom there is an "Add container" button. To add the "Host Keys" you just click "add another path, port, variable, label, or device" (at the bottom the Add Container page) and choose variable. The variables you can change are at: https://github.com/McCloudS/subgen#variables

image image image The only difference between a preconfigured unraid 'app' is it autofill these fields for you, but you can always create them yourself.

DMD770 commented 7 months ago

I got the subgen to stay on, however how do i know if it working? i see it loaded everything till "starting webhook!" and nothing afterward. do you have a way to know that it work beside if it generating the subtiles?

McCloudS commented 7 months ago

I forgot to mention, assuming you have the unraid nvidia driver plugin installed, you need to edit the docker settings (same way you created it), enable advanced in the top right and add the command in the picture for GPU. image

Whether or not it’s working depends on which provider (Plex, Emby, Jellyfin, Bazarr, or Tautulli) you’re trying to use and which triggers (play or media add) you have configured via the environment variables.

DMD770 commented 7 months ago

the GPU is now working, so i think it not doing anything because nothing has happened, in the log it say starting webhook but nothing pass that, tried playing a video to see if it will generate the sub after a certain time. nothing, so im thinking it is the directory to tv/movies. I have attached a few of photo of my library in jellyfin, then setting in jellyfin container, and my subgen container. i think im supposed to have the setting from jellyfin library directory match the subgen?

Jellyfin Library image Subgen Container image Jellyfin Container image

McCloudS commented 7 months ago

In subgen, you just need a single path, to match Jellyfin. So it would be: host path /mnt/user/data/media and container path: /media

Make sure you have your Jellyfin address and API key set as well!

DMD770 commented 7 months ago

jellyfis hook didn't work, so i went with bazaar because that was much simpler, and it worked almost right away after rebooting subgen. it seem doing the job. but do you know if using bazaar, will it automatically generate the subtile right away when scanning the disk?

McCloudS commented 7 months ago

It will be based on your bazarr settings and whether it’s able to find subs from other configured providers. Whisper defaults to a static score that is low (I think 66), so most providers will outscore it.

DMD770 commented 7 months ago

I saw that via bazaar website about whisper static score, so i scored it at 50 and it still doesn't "auto-download" the whisper. that is a odd behavior... but if you do it manually via interactive search and choose whisper it works.