/medb

Automatically encode your media libraries and save a ton of space!

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Media Encoding Dashboard

The goal of this application is to uniformly encode media libraries to be served through whatever applicable means (Plex / Other). Libraries are independantly configurable which allows you to set quality standards however you would like!

Preview

dashboard preview

Dependencies

HandBrake

Must be installed or provided to the environment, the application will look for the binary HandBrakeCLI as indicated by the default install:

sudo apt install handbrake-cli

Handbrake must have the scan option (latest versions)

Database

The following database servers are supported:

  • MySQL 5.7+
  • MariaDB

Configuration

All configuration is handled via. the .env file, copy the .env.example file and fill it out accordingly

Build

Using the included makefile

make build

Otherwise

VERSION=0.1.0
BUILD=$(shell git rev-parse HEAD)
TARGET=main
LDFLAGS=-ldflags "-X main.Version=$(VERSION) -X main.Build=$(BUILD)"

go build $(LDFLAGS) -o $(TARGET) cmd/medb/main.go

Run

  1. Ensure the binary is executable:
chmod +x main
  1. Run the binary!
./main