McCloudS / subgen

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

Almost working...on unraid #54

Closed Maitresinh closed 4 months ago

Maitresinh commented 4 months ago

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:

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 commented 4 months ago

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

McCloudS commented 4 months ago

You won’t need volume if you’re using Bazarr. Your up address for the whisper provider will be your unraid ip. So for mine the full url is http://192.168.1.111:9000

On Sun, Mar 3, 2024 at 6:34 AM Maitresinh @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/McCloudS/subgen/issues/54#issuecomment-1975166643, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJACQLLIL74KFPYNPW7TCDYWMRFLAVCNFSM6AAAAABED63VLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVGE3DMNRUGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Maitresinh commented 4 months ago

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 commented 4 months ago

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

Still the same

McCloudS commented 4 months ago

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 commented 4 months ago

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

McCloudS commented 4 months ago

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

Maitresinh commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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

McCloudS commented 4 months ago

Here’s how mine looks in unraid: image

Tuumke commented 4 months ago
  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 commented 4 months ago

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

Tested again. No subs found

McCloudS commented 4 months ago

User was trying to translate into unsupported language.

Maitresinh commented 4 months ago

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

It seems it works for transcription. Thanks fkor your time