Jump to content

Customize MeTube to auto-download/remux subtitles and more


FunkyBuddha

Recommended Posts

Posted

In this example, we will:

  • Create a docker service that can be integrated to Gluetun (VPN Client)
  • Define custom directories for config and temp (ramdisk)
  • Allow MeTube to index (completed, failed, etc.) downloaded files
  • Add parameters to YT-DL to:
    • Download and automatically remux subtitles to mp4
    • Update the file date based on download date
    • Change file permissions

Docker Compose:

Quote

  metube1:
    image: ghcr.io/alexta69/metube
    container_name: metube1
    environment:
      CUSTOM_DIRS: true
      STATE_DIR: "/config"
      TEMP_DIR: "/ramdisk"
      DOWNLOAD_DIRS_INDEXABLE: true
      YTDL_OPTIONS: '{"writesubtitles":true,"subtitleslangs":["en","-live_chat"],"updatetime":false,"postprocessors":[{"key":"Exec","exec_cmd":"chmod 0664","when":"after_move"},{"key":"FFmpegEmbedSubtitle","already_have_subtitle":false},{"key":"FFmpegMetadata","add_chapters":true}]}'

    restart: unless-stopped
#    ports:
#      - "8081:8081"
    volumes:
      - /path/to/AppData/Config/metube3:/config:rw
      - /path/to/Downloads/complete/youtube:/downloads:rw
      - /tmp/ramdisk/metube:/ramdisk:rw
    network_mode: "service:gluetun1"

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...