Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Almost working...on unraid #54

Closed
Maitresinh opened this issue Mar 3, 2024 · 20 comments
Closed

Almost working...on unraid #54

Maitresinh opened this issue Mar 3, 2024 · 20 comments

Comments

@Maitresinh
Copy link

Maitresinh commented Mar 3, 2024

What a wonderfull app. I've tried to add it on my Unraid server, usring plex and bazarr, to ger french and spanish subs.

What i've done sor far :

1/ Use Docker compose with that file below. Downloaded and installed

#docker-compose.yml
version: '2'
services:
subgen:
container_name: subgen
tty: true
image: mccloud/subgen
environment:
- "WHISPER_MODEL=medium"
- "WHISPER_THREADS=4"
- "PROCADDEDMEDIA=True"
- "PROCMEDIAONPLAY=False"
- "NAMESUBLANG=aa"
- "SKIPIFINTERNALSUBLANG=fra"
- "PLEXTOKEN=tokenhere"
- "PLEXSERVER=http://plexserver:32400"
- "JELLYFINTOKEN=token here"
- "JELLYFINSERVER=http://jellyfin:8096"
- "WEBHOOKPORT=8090"
- "CONCURRENT_TRANSCRIPTIONS=2"
- "WORD_LEVEL_HIGHLIGHT=False"
- "DEBUG=True"
- "USE_PATH_MAPPING=False"
- "PATH_MAPPING_FROM=/tv"
- "PATH_MAPPING_TO=/Volumes/TV"
- "TRANSCRIBE_DEVICE=cpu"
- "CLEAR_VRAM_ON_COMPLETE=True"
- "HF_TRANSFORMERS=False"
- "HF_BATCH_SIZE=24"
- "MODEL_PATH=./models"
- "UPDATE=False"
- "APPEND=False"
volumes:
- /mnt/user/video/films
- /mnt/user/video/series
ports:
- "9000:9000"

I'm not 100 % sure on the Volumes (addded the complete path) and path mapping from/too (my "series" volume is mapped under "TV" in Sonarr/Bazarr, but i don't know if subgen will find it

2 - I've addd it to bazarr with local server (127. ...) and open a port on my router.
i've added it too as a webhook

Anyway, when i search a sub with bazar, nothing is found. Same thing on plex.

Help ?

@Maitresinh
Copy link
Author

If i would know how to get the logs, i could post it on the Whisper Discord...

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024 via email

@Maitresinh
Copy link
Author

thanks.

Changed in bazarr to http://192.168.1.111:9000/ (port is open)
Search on a serie : no subs founds.

do i have to borrow any volume in the .yml ?

@Maitresinh
Copy link
Author

Edit (affter reading again your post) : added my own unraid (local) ip, with port 9000.

Still the same

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024

Looks like you're using a slightly older subgen (<1-2 days ago). Set your WEBHOOKPORT to 9000 and you might be good. What do your subgen logs say, and are you able to access http://yourunraidip:9000/docs?

I changed the default port and added the ability to change the port and some documentation fell through the gaps.

@Maitresinh
Copy link
Author

"You accessed this request incorrectly via a GET request. See https://github.com/McCloudS/subgen for proper configuration"

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024

That means the port is exposed and all good (and accessable). Try your Bazarr again with it set to http://yourunraidip:9000

@Maitresinh
Copy link
Author

Tested. Nothing found

Below the / doc

FastAPI
0.1.0
OAS 3.1
/openapi.json
default

GET
/
Handle Get Request

GET
/detect-language
Handle Get Request

POST
/detect-language
Detect Language

GET
/emby
Handle Get Request

POST
/emby
Receive Emby Webhook

GET
/asr
Handle Get Request

POST
/asr
Asr

GET
/jellyfin
Handle Get Request

POST
/jellyfin
Receive Jellyfin Webhook

GET
/webhook
Handle Get Request

POST
/webhook
Print Warning

GET
/plex
Handle Get Request

POST
/plex
Receive Plex Webhook

POST
/tautulli
Receive Tautulli Webhook

POST
/batch
Batch

Schemas
Body_asr_asr_postExpand allobject
Body_detect_language_detect_language_postExpand allobject
Body_receive_emby_webhook_emby_postExpand allobject
Body_receive_jellyfin_webhook_jellyfin_postExpand allobject
Body_receive_plex_webhook_plex_postExpand allobject
Body_receive_tautulli_webhook_tautulli_postExpand allobject
HTTPValidationErrorExpand allobject
ValidationErrorExpand allobject

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024

That shows subgen working properly, you just have a misconfiguration in Bazarr then. What is your whisper-provider settings and how are you searching for subtitles? Simple way is just a manual search to see if whisper is showing up. You also may need to reset the providers if whisper is showed as failed.

@Maitresinh
Copy link
Author

My Whisper setting on bazarr

http://mylocalipunraid:9000
Connection/response timeout in seconds
5
Transcription/translation timeout in seconds
3600
Logging level


To look for the subs, i'm going to the serie detail (epsiodes), select one episode and look for subtiles.
I've also done a global search

By the way, how do i use it under Plex ? Just looking for subs ?

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024

Under system does it show the whisper provider good? Bazarr probably marked the provider as bad while you were configuring it.

For plex, the subtitles will show under subtitles. If you’re talking about the plex integration, it will run whisper on file add or file play.

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024

Also if you don’t meet the minimum score, whisper will never run. Bazarr sets it as a low static score so virtually anything can replace it.

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024

Past that, you’ll have to go into the bazarr discord for support, as the subgen container is working and bazarr configuration stuff is beyond my knowledge.

@Maitresinh
Copy link
Author

I'm doing the test on a show already in my plex, withtout subs (The Newsreader)

Provider "status" : good

thanks for your help anyway, i will ask @discord

@Maitresinh
Copy link
Author

Last but not least : how can i get the logs ?

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024

Here’s how mine looks in unraid:
image

@Tuumke
Copy link

Tuumke commented Mar 3, 2024

  1. might want to remove the token for plex
  2. volumes aren't mounted properly?
    You have
volumes:
- /mnt/user/video/films
- /mnt/user/video/series

While it should be something like:

  volumes:
    - /mnt/user/video/films:/filmes
    - /mnt/user/video/series:/series

Notice the : between left side (actual file path on system) and right side (mount point inside the docker)

@Maitresinh
Copy link
Author

thanks @Tuumke i mentionned i wasn't sure about that.

Tested again. No subs found

@McCloudS
Copy link
Owner

McCloudS commented Mar 3, 2024

User was trying to translate into unsupported language.

@McCloudS McCloudS closed this as completed Mar 3, 2024
@Maitresinh
Copy link
Author

yes i did :-
...and dicovered lingarr.

It seems it works for transcription.
Thanks fkor your time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants