Sign inSign up

relieving/set

By relieving

•Updated over 3 years ago

Image
0

351

relieving/set repository overview

⁠SET (Subtitles Extract & Translate)

This automation run inside a docker and use mkvtoolnix to extract the subtitle track from a Matroska file. It has two main parts:

⁠Extract

This is an executable that will find and extract the subtitle track (.srt, .ssa) and output it in a tmp directory for future use.

⁠Ntfy

This is an executable that connects to a Ntfy server with a provided auth token and subscribe to a topic, waiting for an event with a path to the file and the desired language. It will execute the Extract command to retrieve the subtitle track and then send, line by line, the subtitle to be translated by AWS Translate. The translated file will be added with the video file following Plex's desired pattern.

⁠Environments

NameRequiredDefaultComment
IN_TOPICYes
AUTH_TOKENYes
NTFY_URLhttps://ntfy.sh/⁠
AWS_REGIONYes
AWS_ACCESS_KEY_IDYes
AWS_SECRET_ACCESS_KEYYes

⁠Installation

⁠Docker
version: "3.3"

services: 
  set:
    image: remindful/set:v0.1
    container_name: set
    environment:
      - IN_TOPIC=
      - NTFY_URL=
      - AUTH_TOKEN=
      - AWS_REGION=
      - AWS_ACCESS_KEY_ID=
      - AWS_SECRET_ACCESS_KEY=
    volumes:
      - /path/to/tv:/tv
      - /path/to/movies:/movies
    restart: unless-stopped

Tag summary

Content type

Image

Digest

sha256:0f08e5efd…

Size

233.8 MB

Last updated

over 3 years ago

docker pull relieving/set