Whatbox Logo
Login for certain variables to be updated with your slot's information

Wiki > Handbrake

At this time, Whatbox servers have limited support for containers. It may stop working at any time.

A random port number between 10000 and 32767 is needed and will be used to access Handbrake. The port number 27637 has automatically been generated and will be used throughout this article, but can be changed if needed.

Connect to your slot using SSH

  1. Create ~/handbrake/handbrake.yml

     mkdir -p ~/handbrake && touch ~/handbrake/handbrake.yml
    
  2. Open the file with nano ~/handbrake/handbrake.yml and add the text in this text box to the file

     version: "3.9"
     
     services:
       handbrake:
         container_name: handbrake
         image: ghcr.io/jlesage/handbrake:latest
         ports:
           - "27637:5800"
         environment:
           - PUID=0
           - PGID=0
           - UMASK=002
           - TZ=UTC
         volumes:
           - /home/user/handbrake:/config:rw
           - /home/user/handbrake/storage:/storage:ro
           - /home/user/handbrake/watch:/watch:rw
           - /home/user/handbrake/output:/output:rw
         pull_policy: always
         restart: unless-stopped
    

    Save the file by pressing Ctrl+S then exit nano with Ctrl+X

  3. Run the handbrake container briefly

     podman-compose -f ~/handbrake/handbrake.yml up
    

    Wait until lines stop populating then Press Ctrl+C

    Wait again then Press Ctrl+C

  4. Start Handbrake

    podman-compose -f ~/handbrake/handbrake.yml down && podman-compose -f ~/handbrake/handbrake.yml up -d

After returning to your shell prompt, handbrake will be accessible at http://server.whatbox.ca:27637 (it may take several seconds to start responding) You must add authentication immediately when prompted - select "Forms" and fill in a username and password.

To update handbrake, run this command to restart into the latest version: podman-compose -f ~/handbrake/handbrake.yml down && podman-compose -f ~/handbrake/handbrake.yml up -d