Skip to content

Create subtitles with Whisper AI for your media files in Bazarr

Notifications You must be signed in to change notification settings

McCloudS/slim-bazarr-subgen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slim bazarr subgen

slim bazarr subgen uses Whisper AI models to automatically create subtitles for your media files in Bazarr.

It is simply a slimmed down version of McCloudS’ subgen (thank you for making your code available!) which never worked for me without ugly hacks.

I did this because I wanted subtitles for a TV show this evening and McCloudS/subgen (again) would suddenly not start for whatever reason, and I didn’t care anymore to find out why.

Note
slim bazarr subgen only includes functionality required for Bazarr subtitle generation

The idea is to have a reliable subtitle service on a much smaller code base which makes it easier to maintain, extend and use.

Design decisions

  • caches and models go to /tmp (RAM)

  • remove everything not needed for Bazarr

  • less is more

Assumptions

  • you use Docker

  • you have an Nvidia GPU and nvidia-container-toolkit (but works with CPU as well)

  • you have a proper amount of RAM reserved for tmpfs in /tmp

Alternatives

You might like those better:

Run

docker-compose up --build; docker-compose down --remove-orphans

Configuration

Look at docker-compose.yml for limited configuration options.

Bazarr

How to configure Bazarr to use Whisper AI subtitle creation: https://wiki.bazarr.media/Additional-Configuration/Whisper-Provider/

Important
Default port is 8090

About

Create subtitles with Whisper AI for your media files in Bazarr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.2%
  • Dockerfile 4.2%
  • Shell 0.6%